Defines | Enumerations | 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"

Enumerations

enum  { IUP_CASE_UPPER, IUP_CASE_LOWER, IUP_CASE_TOGGLE, IUP_CASE_TITLE }

Functions

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