Defines | Functions

iup_str.h File Reference

String Utilities. More...

Defines

#define iup_isdigit(_c)   (_c>='0' && _c<='9')
#define iup_isnumber(_c)
#define iup_toupper(_c)   ((_c >= 'a' && _c <= 'z')? (_c - 'a') + 'A': _c)
#define iup_tolower(_c)   ((_c >= 'A' && _c <= 'Z')? (_c - 'A') + 'a': _c)
#define IUP_FLOAT2STR   "%.9f"
#define IUP_DOUBLE2STR   "%.18f"

Functions

int iupStrEqual (const char *str1, const char *str2)
int iupStrEqualNoCase (const char *str1, const char *str2)
int iupStrEqualNoCaseNoSpace (const char *str1, const char *str2)
int iupStrEqualPartial (const char *str1, const char *str2)
int iupStrEqualNoCasePartial (const char *str1, const char *str2)
int iupStrBoolean (const char *str)
int iupStrFalse (const char *str)
int iupStrLineCount (const char *str)
const char * iupStrNextLine (const char *str, int *len)
const char * iupStrNextValue (const char *str, int str_len, int *len, char sep)
int iupStrCountChar (const char *str, char c)
char * iupStrDup (const char *str)
char * iupStrDupUntil (const char **str, char c)
void iupStrCopyN (char *dst_str, int dst_max_size, const char *src_str)
char * iupStrGetMemory (int size)
char * iupStrGetLargeMem (int *size)
void iupStrLower (char *dstr, const char *sstr)
void iupStrUpper (char *dstr, const char *sstr)
int iupStrHasSpace (const char *str)
int iupStrIsAscii (const char *str)
char * iupStrReturnStrf (const char *format,...)
char * iupStrReturnStr (const char *str)
char * iupStrReturnBoolean (int i)
char * iupStrReturnChecked (int i)
char * iupStrReturnInt (int i)
char * iupStrReturnUInt (unsigned int i)
char * iupStrReturnFloat (float f)
char * iupStrReturnDouble (double d)
char * iupStrReturnRGB (unsigned char r, unsigned char g, unsigned char b)
char * iupStrReturnRGBA (unsigned char r, unsigned char g, unsigned char b, unsigned char a)
char * iupStrReturnStrStr (const char *str1, const char *str2, char sep)
char * iupStrReturnIntInt (int i1, int i2, char sep)
int iupStrGetFormatPrecision (const char *format)
void iupStrPrintfDoubleLocale (char *str, const char *format, double d, const char *decimal_symbol)
int iupStrToRGB (const char *str, unsigned char *r, unsigned char *g, unsigned char *b)
int iupStrToRGBA (const char *str, unsigned char *r, unsigned char *g, unsigned char *b, unsigned char *a)
int iupStrToInt (const char *str, int *i)
int iupStrToUInt (const char *str, unsigned int *i)
int iupStrToIntInt (const char *str, int *i1, int *i2, char sep)
int iupStrToFloat (const char *str, float *f)
int iupStrToFloatDef (const char *str, float *f, float def)
int iupStrToDouble (const char *str, double *d)
int iupStrToDoubleDef (const char *str, double *d, double def)
int iupStrToDoubleLocale (const char *str, double *d, const char *decimal_symbol)
int iupStrToFloatFloat (const char *str, float *f1, float *f2, char sep)
int iupStrToDoubleDouble (const char *str, double *f1, double *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)
void iupStrFileNameSplit (const char *filename, char *path, char *title)
int iupStrReplace (char *str, char src, char dst)
void iupStrToUnix (char *str)
void iupStrToMac (char *str)
char * iupStrToDos (const char *str)
char * iupStrConvertToC (const char *str)
void iupStrRemove (char *value, int start, int end, int dir, int utf8)
char * iupStrInsert (const char *value, const char *insert_value, int start, int end, int utf8)
char * iupStrProcessMnemonic (const char *str, char *c, int action)
int iupStrFindMnemonic (const char *str)
int iupStrCompare (const char *str1, const char *str2, int casesensitive, int utf8)
int iupStrCompareEqual (const char *str1, const char *str2, int casesensitive, int utf8, int partial)
int iupStrCompareFind (const char *str1, const char *str2, int casesensitive, int utf8)

Detailed Description

See Copyright Notice in "iup.h"


Define Documentation

#define iup_isnumber (   _c  ) 
Value:
((_c>='0' && _c<='9') || \
                          _c == '.'  || _c == ',' || \
                          _c == '-' || _c == '+' || \
                          _c == 'e' || _c == 'E')