29#include <cxmessages.h>
130 const cxchar *, ...) CX_GNUC_PRINTF(2, 3);
132 const cxchar *, va_list) CX_GNUC_PRINTF(2, 0);
cx_string * cx_string_upper(cx_string *)
Converts the string into uppercase.
Definition: cxstring.c:441
cx_string * cx_string_create(const cxchar *)
Create a new string from a standard C string.
Definition: cxstring.c:278
cx_string * cx_string_truncate(cx_string *, cxsize)
Truncate the string.
Definition: cxstring.c:828
cx_string * cx_string_insert(cx_string *, cxssize, const cxchar *)
Inserts a copy of a string at a given position.
Definition: cxstring.c:698
cxint cx_string_vsprintf(cx_string *self, const cxchar *format, va_list args)
Write to the string from a variable-length argument list under format control.
Definition: cxstring.c:1036
cxint cx_string_sprintf(cx_string *self, const char *format,...)
Writes to a string under format control.
Definition: cxstring.c:996
cx_string * cx_string_append(cx_string *, const cxchar *)
Append an array of characters to the string.
Definition: cxstring.c:645
cx_string * cx_string_substr(const cx_string *, cxsize, cxsize)
Create a new string from a portion of a string.
Definition: cxstring.c:1347
void cx_string_replace_character(cx_string *, cxsize, cxsize, cxchar, cxchar)
Replace a given character with a new character in a portion of a string.
Definition: cxstring.c:1092
cxint cx_string_compare(const cx_string *, const cx_string *)
Compare two strings.
Definition: cxstring.c:902
void cx_string_resize(cx_string *, cxsize, cxchar)
Resize a string to a given length.
Definition: cxstring.c:1147
struct _cx_string_ cx_string
The cx_string data type.
Definition: cxstring.h:52
cxsize cx_string_find_last_not_of(const cx_string *, const cxchar *)
Search a string for the last character that does not match any of the given characters.
Definition: cxstring.c:1291
cx_string * cx_string_new(void)
Create a new, empty string container.
Definition: cxstring.c:232
cx_string * cx_string_lower(cx_string *)
Converts the string into lowercase.
Definition: cxstring.c:476
cx_string * cx_string_erase(cx_string *, cxssize, cxssize)
Erase a portion of the string.
Definition: cxstring.c:757
const cxchar * cx_string_get(const cx_string *)
Get the string's value.
Definition: cxstring.c:414
void cx_string_set(cx_string *, const cxchar *)
Assign a value to a string.
Definition: cxstring.c:381
void cx_string_delete(cx_string *)
Destroy a string.
Definition: cxstring.c:305
cx_string * cx_string_strip(cx_string *)
Remove leading and trailing whitespaces from the string.
Definition: cxstring.c:565
cx_string * cx_string_trim(cx_string *)
Remove leading whitespaces from the string.
Definition: cxstring.c:511
cx_string * cx_string_rtrim(cx_string *)
Remove trailing whitespaces from the string.
Definition: cxstring.c:538
cxbool cx_string_empty(const cx_string *)
Checks whether a string contains any characters.
Definition: cxstring.c:355
cx_string * cx_string_prepend(cx_string *, const cxchar *)
Prepend an array of characters to the string.
Definition: cxstring.c:593
cx_string * cx_string_copy(const cx_string *)
Create a copy a cx_string.
Definition: cxstring.c:250
cxbool cx_string_equal(const cx_string *, const cx_string *)
Compare two cx_string for equality.
Definition: cxstring.c:857
cxint cxint void cx_string_print(const cx_string *)
Print the value of a cx_string to the standard output.
Definition: cxstring.c:1058
cxsize cx_string_size(const cx_string *)
Computes the length of the string.
Definition: cxstring.c:332
cxsize cx_string_find_first_not_of(const cx_string *, const cxchar *)
Search a string for the first character that does not match any of the given characters.
Definition: cxstring.c:1247
void cx_string_extend(cx_string *, cxsize, cxchar)
Extend a string to a given length.
Definition: cxstring.c:1203
cxint cx_string_ncasecmp(const cx_string *, const cx_string *, cxsize)
Compare the first n characters of two strings ignoring the case of characters.
Definition: cxstring.c:962
cxint cx_string_casecmp(const cx_string *, const cx_string *)
Compare two strings ignoring the case of characters.
Definition: cxstring.c:927