Sha256: daa13f721341d3723d6ef466839b1b6b3dbfd8b2f320be8436c3ddbf4c07df48

Contents?: true

Size: 622 Bytes

Versions: 3

Compression:

Stored size: 622 Bytes

Contents

/* Added methods for string manipulation */

#ifndef STRING_EXTRAS_H
#define STRING_EXTRAS_H

#include "../deps/uthash/utstring.h"

// all for str_replace
#include <stdio.h>
#include <string.h>
#include <stdlib.h>

#ifdef __cplusplus
extern "C" {
#endif

// Remove the final character in a string
extern void remove_last_char(char* str);

// Remove the first character in a string
extern void remove_first_char(char* str);

// replace a substr in a string with a replacement
extern char * str_replace(char *string, const char *substr, const char *replacement);

#ifdef __cplusplus
}
#endif

#endif /* ! STRING_EXTRAS_H */

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mathematical-1.3.0 ext/mathematical/mtex2MML/src/string_extras.h
mathematical-1.2.2 ext/mathematical/mtex2MML/src/string_extras.h
mathematical-1.2.1 ext/mathematical/mtex2MML/src/string_extras.h