|
SDLGameEngine
|
String handling functions. More...
Functions | |
| int | sgeCharIsWhitespace (char c) |
| test if a character is a whitespace character (space, newline, tab, ...) | |
| char * | sgeTrim (char *str) |
| trim all whitespace characters from beginning of end of a string | |
| char * | sgeLower (char *str) |
| convert a string to lower case | |
| char * | sgeUpper (char *str) |
| convert a string to upper case | |
| char * | sgeConfigNameFromString (char *str) |
| return the name of a config string | |
| char * | sgeConfigValueFromString (char *str) |
| return the value of a config string | |
String handling functions.
| int sgeCharIsWhitespace | ( | char | c | ) |
test if a character is a whitespace character (space, newline, tab, ...)
| c | the character to test |
Definition at line 11 of file sgestring.c.
| char* sgeConfigNameFromString | ( | char * | str | ) |
return the name of a config string
| str | the config string in the form of "name = value" |
Definition at line 97 of file sgestring.c.
| char* sgeConfigValueFromString | ( | char * | str | ) |
return the value of a config string
| str | the config string in the form of "name = value" |
Definition at line 101 of file sgestring.c.
| char* sgeLower | ( | char * | str | ) |
convert a string to lower case
| str | the string to make a lower case copy from |
Definition at line 63 of file sgestring.c.
| char* sgeTrim | ( | char * | str | ) |
trim all whitespace characters from beginning of end of a string
| str | the string to remove whitspaces from |
This function does create a new char * pointer, the original char * is unaltered
Definition at line 26 of file sgestring.c.
| char* sgeUpper | ( | char * | str | ) |
convert a string to upper case
| str | the string to make a upper case copy from |
Definition at line 70 of file sgestring.c.