71 int c_streq(
const char *a,
const char *b);
134 char *
c_strreplace(
char *src,
const char *pattern,
const char *repl);
172 #if defined(_WIN32) || defined(WITH_ICONV)
179 #define c_free_multibyte(x) SAFE_FREE(x)
187 #define c_free_utf8(x) SAFE_FREE(x)
189 #define c_free_multibyte(x) (void)x
190 #define c_free_utf8(x) (void)x
void c_strlist_clear(c_strlist_t *strlist)
Removes all strings from the list.
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 * c_utf8(const _TCHAR *str)
Convert a multibyte string to utf8 (Win32).
_TCHAR * c_multibyte(const char *wstr)
Convert a utf8 encoded string to multibyte (Win32).
char ** vector
The string vector.
c_strlist_t * c_strlist_expand(c_strlist_t *strlist, size_t size)
Expand the stringlist.
size_t count
The count of the strings saved in the vector.