70 int c_streq(
const char *a,
const char *b);
124 char *
c_strreplace(
char *src,
const char *pattern,
const char *repl);
193 #if defined(_WIN32) || defined(WITH_ICONV) 212 #define c_free_locale_string(x) SAFE_FREE(x) 214 #define c_free_locale_string(x) (void)x char * c_utf8_from_locale(const mbchar_t *str)
Convert a platform locale string to utf8.
int c_strlist_add(c_strlist_t *strlist, const char *string)
Add a string to the stringlist.
int c_streq(const char *a, const char *b)
Compare to strings if they are equal.
char * c_uppercase(const char *str)
Uppercase a string.
char * c_strreplace(char *src, const char *pattern, const char *repl)
Replace a string with another string in a source string.
cynapses libc macro definitions
c_strlist_t * c_strlist_new(size_t size)
Create a new stringlist.
char * c_lowercase(const char *str)
Lowercase a string.
void c_strlist_destroy(c_strlist_t *strlist)
Destroy the memory of the stringlist.
Structure for a stringlist.
size_t size
Size of strings allocated.
char ** vector
The string vector.
c_strlist_t * c_strlist_expand(c_strlist_t *strlist, size_t size)
Expand the stringlist.
mbchar_t * c_utf8_to_locale(const char *wstr)
Convert a utf8 encoded string to platform specific locale.
size_t count
The count of the strings saved in the vector.