Functions | |
| cxint | cx_strcasecmp (const cxchar *s1, const cxchar *s2) |
| Compare two strings ignoring the case of ASCII characters. | |
| cxint | cx_strncasecmp (const cxchar *s1, const cxchar *s2, cxsize n) |
| Compare the first n characters of two strings ignoring the case of ASCII characters. | |
| cxint | cx_strempty (const cxchar *string, const cxchar *pattern) |
| Test if a string represents an empty string. | |
| cxchar * | cx_strlower (cxchar *s) |
| Convert all uppercase characters in a string into lowercase characters. | |
| cxchar * | cx_strupper (cxchar *s) |
| Convert all lowercase characters in a string into uppercase characters. | |
| cxchar * | cx_strtrim (cxchar *string) |
| Remove leading whitespace characters from a string. | |
| cxchar * | cx_strrtrim (cxchar *string) |
| Remove trailing whitespace characters from a string. | |
| cxchar * | cx_strstrip (cxchar *string) |
| Remove leading and trailing whitespace characters from a string. | |
| cxchar * | cx_strskip (const cxchar *string, int(*ctype)(int)) |
| Locate the first character in a string that does not belong to a given character class. | |
| cxchar * | cx_strdup (const cxchar *string) |
| Duplicate a string. | |
| cxchar * | cx_strndup (const cxchar *string, cxsize n) |
| Duplicate the first n charactes of a string. | |
| cxchar * | cx_strvdupf (const cxchar *format, va_list args) |
| Create a string from a variable-length argument list under format control. | |
| cxchar * | cx_stpcpy (cxchar *dest, const cxchar *src) |
| Copy a string returning a pointer to its end. | |
| void | cx_strfreev (cxchar **sarray) |
Deallocate a NULL terminated string array. | |
| cxchar ** | cx_strsplit (const cxchar *string, const cxchar *delimiter, cxint max_tokens) |
| Split a string into pieces at a given delimiter. | |
| cxchar * | cx_strjoinv (const cxchar *separator, cxchar **sarray) |
| Join strings from an array of strings. | |
#include <cxstrutils.h>
|
||||||||||||
|
Copy a string returning a pointer to its end.
|
|
||||||||||||
|
Compare two strings ignoring the case of ASCII characters.
|
|
|
Duplicate a string.
|
|
||||||||||||
|
Test if a string represents an empty string.
If pattern is set to |
|
|
Deallocate a
|
|
||||||||||||
|
Join strings from an array of strings.
NULL terminated. Optionally, a separator string can be passed through separator which will then be inserted between two strings. If no separator should be inserted when joining, separator must be set to NULL. |
|
|
Convert all uppercase characters in a string into lowercase characters.
|
|
||||||||||||||||
|
Compare the first n characters of two strings ignoring the case of ASCII characters.
|
|
||||||||||||
|
Duplicate the first n charactes of a string.
|
|
|
Remove trailing whitespace characters from a string.
|
|
||||||||||||
|
Locate the first character in a string that does not belong to a given character class.
|
|
||||||||||||||||
|
Split a string into pieces at a given delimiter.
The delimiter string delimiter never shows up in any of the resulting strings, unless max_tokens is reached. As a special case, the result of splitting the empty strin "" is an empty vector, not a vector containing a single string. The created result vector can be deallocated using cx_strfreev(). |
|
|
Remove leading and trailing whitespace characters from a string.
|
|
|
Remove leading whitespace characters from a string.
|
|
|
Convert all lowercase characters in a string into uppercase characters.
|
|
||||||||||||
|
Create a string from a variable-length argument list under format control.
|
1.4.1