doc
|
Data Structures | |
struct | c_strlist_s |
Structure for a stringlist. More... | |
Typedefs | |
typedef struct c_strlist_s | c_strlist_t |
Functions | |
void | c_free_multibyte (const _TCHAR *buf) |
void | c_free_utf8 (char *buf) |
char * | c_lowercase (const char *str) |
const _TCHAR * | c_multibyte (const char *wstr) |
int | c_streq (const char *a, const char *b) |
int | c_strlist_add (c_strlist_t *strlist, const char *string) |
void | c_strlist_destroy (c_strlist_t *strlist) |
c_strlist_t * | c_strlist_expand (c_strlist_t *strlist, size_t size) |
c_strlist_t * | c_strlist_new (size_t size) |
char * | c_strreplace (char *src, const char *pattern, const char *repl) |
char * | c_uppercase (const char *str) |
const char * | c_utf8 (const _TCHAR *str) |
Variables | |
size_t | c_strlist_s::count |
size_t | c_strlist_s::size |
char ** | c_strlist_s::vector |
typedef struct c_strlist_s c_strlist_t |
Definition at line 38 of file c_string.h.
void c_free_multibyte | ( | const _TCHAR * | buf | ) |
Free buffer malloced by c_multibyte.
buf | The buffer to free. |
void c_free_utf8 | ( | char * | buf | ) |
Free buffer malloced by c_utf8.
buf | The buffer to free. |
char* c_lowercase | ( | const char * | str | ) |
Lowercase a string.
str | The String to lowercase. |
const _TCHAR* c_multibyte | ( | const char * | wstr | ) |
Convert a utf8 encoded string to multibyte (Win32).
str | The utf8 string to convert. |
int c_streq | ( | const char * | a, |
const char * | b | ||
) |
Compare to strings if they are equal.
a | First string to compare. |
b | Second string to compare. |
int c_strlist_add | ( | c_strlist_t * | strlist, |
const char * | string | ||
) |
Add a string to the stringlist.
Duplicates the string and stores it in the stringlist.
strlist | Stringlist to add the string. |
string | String to add. |
void c_strlist_destroy | ( | c_strlist_t * | strlist | ) |
Destroy the memory of the stringlist.
Frees the strings and the stringlist.
strlist | Stringlist to destroy |
c_strlist_t* c_strlist_expand | ( | c_strlist_t * | strlist, |
size_t | size | ||
) |
Expand the stringlist.
strlist | Stringlist to expand |
size | New size of the strlinglist to expand |
c_strlist_t* c_strlist_new | ( | size_t | size | ) |
Create a new stringlist.
size | Size to allocate. |
char* c_strreplace | ( | char * | src, |
const char * | pattern, | ||
const char * | repl | ||
) |
Replace a string with another string in a source string.
src | String to search for pattern. |
pattern | Pattern to search for in the source string. |
repl | The string which which should replace pattern if found. |
char* c_uppercase | ( | const char * | str | ) |
Uppercase a string.
str | The String to uppercase. |
const char* c_utf8 | ( | const _TCHAR * | str | ) |
Convert a multibyte string to utf8 (Win32).
str | The multibyte encoded string to convert |
size_t c_strlist_s::count |
The count of the strings saved in the vector.
Definition at line 55 of file c_string.h.
size_t c_strlist_s::size |
Size of strings allocated.
Definition at line 57 of file c_string.h.
char** c_strlist_s::vector |
The string vector.
Definition at line 53 of file c_string.h.