Functions | ||||
EAPI size_t | ecore_strlcpy (char *dst, const char *src, size_t siz) | |||
| ||||
EAPI size_t | ecore_strlcat (char *dst, const char *src, size_t siz) | |||
| ||||
EAPI int | ecore_str_has_prefix (const char *str, const char *prefix) | |||
| ||||
EAPI int | ecore_str_has_suffix (const char *str, const char *suffix) | |||
| ||||
EAPI char ** | ecore_str_split (const char *string, const char *delimiter, int max_tokens) | |||
Splits a string into a maximum of max_tokens pieces, using the given delimiter. |
EAPI int ecore_str_has_prefix | ( | const char * | str, | |
const char * | prefix | |||
) |
str | the string to work with checks if the string has the given prefix |
prefix | the prefix to check for |
EAPI int ecore_str_has_suffix | ( | const char * | str, | |
const char * | suffix | |||
) |
str | the string to work with checks if the string has the given suffix |
suffix | the suffix to check for |
EAPI char** ecore_str_split | ( | const char * | str, | |
const char * | delim, | |||
int | max_tokens | |||
) |
Splits a string into a maximum of max_tokens pieces, using the given delimiter.
If max_tokens is reached, the final string in the returned string array contains the remainder of string.
str | A string to split. | |
delim | A string which specifies the places at which to split the string. The delimiter is not included in any of the resulting strings, unless max_tokens is reached. | |
max_tokens | The maximum number of strings to split string into. If this is less than 1, the string is split completely. |
EAPI size_t ecore_strlcat | ( | char * | dst, | |
const char * | src, | |||
size_t | siz | |||
) |
dst | the destination append a c-string |
src | the source | |
siz | the size of the destination |
EAPI size_t ecore_strlcpy | ( | char * | dst, | |
const char * | src, | |||
size_t | siz | |||
) |
dst | the destination copy a c-string |
src | the source | |
siz | the size of the destination |