00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef CX_STRUTILS_H
00029 #define CX_STRUTILS_H
00030
00031 #include <stdarg.h>
00032 #include <cxtypes.h>
00033
00034 CX_BEGIN_DECLS
00035
00036
00037
00038
00039
00040 cxint cx_strcasecmp(const cxchar *, const cxchar *);
00041 cxint cx_strncasecmp(const cxchar *, const cxchar *, cxsize);
00042 cxint cx_strempty(const cxchar *, const cxchar *);
00043
00044
00045
00046
00047
00048
00049 cxchar *cx_strlower(cxchar *);
00050 cxchar *cx_strupper(cxchar *);
00051
00052 cxchar *cx_strtrim(cxchar *);
00053 cxchar *cx_strrtrim(cxchar *);
00054 cxchar *cx_strstrip(cxchar *);
00055
00056
00057
00058
00059
00060
00061 cxchar *cx_strskip(const cxchar *, cxint (*)(cxint));
00062
00063
00064
00065
00066
00067
00068 cxchar *cx_strdup(const cxchar *);
00069 cxchar *cx_strndup(const cxchar *, cxsize);
00070 cxchar *cx_strvdupf(const cxchar *, va_list);
00071
00072 cxchar *cx_stpcpy(cxchar *, const cxchar *);
00073
00074 cxchar **cx_strsplit(const cxchar *, const cxchar *, cxint);
00075 void cx_strfreev(cxchar **sarray);
00076
00077 cxchar *cx_strjoinv(const cxchar *, cxchar **);
00078
00079 CX_END_DECLS
00080
00081 #endif