String Utilities
[Utilities]
Detailed Description
- See iup_str.h
Functions | |
char * | iupStrDup (const char *str) |
int | iupStrEqual (const char *str1, const char *str2) |
int | iupStrEqualNoCase (const char *str1, const char *str2) |
int | iupStrEqualPartial (const char *str1, const char *str2) |
int | iupStrBoolean (const char *str) |
void | iupStrLineCount (const char *str, int *max_len, int *num_lin) |
const char * | iupStrNextLine (const char *str, int *len) |
int | iupStrCountChar (const char *str, int c) |
char * | iupStrCopyUntil (char **str, int c) |
char * | iupStrGetMemory (int size) |
void | iupStrLower (char *dstr, const char *sstr) |
int | iupStrGetRGB (const char *str, unsigned char *r, unsigned char *g, unsigned char *b) |
int | iupStrToInt (const char *str, int *i) |
int | iupStrToIntInt (const char *str, int *i1, int *i2, char sep) |
int | iupStrToFloat (const char *str, float *f) |
int | iupStrToFloatFloat (const char *str, float *f1, float *f2, char sep) |
int | iupStrToStrStr (const char *str, char *str1, char *str2, char sep) |
char * | iupStrFileGetExt (const char *file_name) |
char * | iupStrFileGetTitle (const char *file_name) |
char * | iupStrFileGetPath (const char *file_name) |
char * | iupStrFileMakeFileName (const char *path, const char *title) |
Function Documentation
|
Returns a copy of the given string. If str is NULL it will return NULL. |
|
Returns a non zero value if the two strings are equal. str1 or str2 can be NULL. |
|
Returns a non zero value if the two strings are equal but ignores case. str1 or str2 can be NULL. |
|
Returns a non zero value if the two strings are equal up to a number of characters defined by the strlen of the second string. str1 or str2 can be NULL. |
|
Returns 1 if the string is "1", "YES", "ON" or "TRUE". |
|
Returns the number of lines and the size of the largest line in a string. Detects also CR/LF pairs. |
|
Returns the a pointer to the next line and the size of the current line. Detects also CR/LF pairs. If str is NULL it will return NULL. |
|
Returns the number of repetitions of the character occours in the string. |
|
Returns a new string containing a copy of the string up to the character. The string is then incremented to after the position of the character. |
|
Returns a buffer with the specified size+1. |
|
Converts a string into lower case. |
|
Extract a RGB triple from the string. |
|
Converts the string to an int. The string must contains only the integer value. Returns a a non zero value if sucessfull. |
|
Converts the string to two int. The string must contains two integer values in sequence, separated by the given character (usually 'x' or ':'). Returns the number of converted values. Values not extracted are not changed. |
|
Converts the string to an float. The string must contains only the real value. Returns a a non zero value if sucessfull. |
|
Converts the string to two float. The string must contains two real values in sequence, separated by the given character (usually 'x' or ':'). Returns the number of converted values. Values not extracted are not changed. |
|
Extract two strings from the string. separated by the given character (usually 'x' or ':'). Returns the number of converted values. Values not extracted are not changed. |
|
Returns the file extension of a file name. |
|
Returns the file title of a file name. |
|
Returns the file path of a file name. |
|
Concat path and title addind '/' between if path does not have it. |