Sha256: afc1e9defdb999de58efe139a7b188a40fa949411ca27ff44326d1bf72008f09

Contents?: true

Size: 640 Bytes

Versions: 22

Compression:

Stored size: 640 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 */
void mtex2MML_remove_last_char(char* str);

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

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

#ifdef __cplusplus
}
#endif

#endif /* ! STRING_EXTRAS_H */

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
mathematical-1.6.20 ext/mathematical/mtex2MML/src/string_extras.h
mathematical-1.6.18 ext/mathematical/mtex2MML/src/string_extras.h
mathematical-1.6.14 ext/mathematical/mtex2MML/src/string_extras.h
mathematical-1.6.13 ext/mathematical/mtex2MML/src/string_extras.h
mathematical-1.6.12 ext/mathematical/mtex2MML/src/string_extras.h
mathematical-1.6.11 ext/mathematical/mtex2MML/src/string_extras.h
mathematical-1.6.10 ext/mathematical/mtex2MML/src/string_extras.h
mathematical-1.6.9 ext/mathematical/mtex2MML/src/string_extras.h
mathematical-1.6.8 ext/mathematical/mtex2MML/src/string_extras.h
mathematical-1.6.7 ext/mathematical/mtex2MML/src/string_extras.h
mathematical-1.6.6 ext/mathematical/mtex2MML/src/string_extras.h
mathematical-1.6.5 ext/mathematical/mtex2MML/src/string_extras.h
mathematical-1.6.4 ext/mathematical/mtex2MML/src/string_extras.h
mathematical-1.6.3 ext/mathematical/mtex2MML/src/string_extras.h
mathematical-1.6.2 ext/mathematical/mtex2MML/src/string_extras.h
mathematical-1.6.1 ext/mathematical/mtex2MML/src/string_extras.h
mathematical-1.6.0 ext/mathematical/mtex2MML/src/string_extras.h
mathematical-1.5.12 ext/mathematical/mtex2MML/src/string_extras.h
mathematical-1.5.0 ext/mathematical/mtex2MML/src/string_extras.h
mathematical-1.4.2 ext/mathematical/mtex2MML/src/string_extras.h