Go to the documentation of this file.
70 int c_streq(
const char *a,
const char *b);
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
void c_strlist_destroy(c_strlist_t *strlist)
Destroy the memory of the stringlist.
size_t size
Size of strings allocated.
char * c_strreplace(char *src, const char *pattern, const char *repl)
@breif Replace a string with another string in a source string.
char * c_utf8_from_locale(const mbchar_t *str)
Convert a platform locale string to utf8.
cynapses libc macro definitions
char ** vector
The string vector.
c_strlist_t * c_strlist_expand(c_strlist_t *strlist, size_t size)
Expand the stringlist.
c_strlist_t * c_strlist_new(size_t size)
Create a new stringlist.
char * c_uppercase(const char *str)
Uppercase a string.
int c_streq(const char *a, const char *b)
Compare to strings if they are equal.
size_t count
The count of the strings saved in the vector.
Structure for a stringlist.
int c_strlist_add(c_strlist_t *strlist, const char *string)
Add a string to the stringlist.
char * c_lowercase(const char *str)
Lowercase a string.
mbchar_t * c_utf8_to_locale(const char *wstr)
Convert a utf8 encoded string to platform specific locale.