45 #ifndef CCXX_STRCHAR_H_
46 #define CCXX_STRCHAR_H_
48 #ifndef CCXX_CONFIG_H_
49 #include <cc++/config.h>
52 #ifndef CCXX_MISSING_H_
66 #ifdef HAVE_STRCASECMP
68 #define stricmp(x, y) strcasecmp(x, y)
71 #define strnicmp(x, y, n) strncasecmp(x, y, n)
75 #ifdef CCXX_NAMESPACES
79 __EXPORT char *
lsetField(
char *target,
size_t size,
const char *src,
const char fill = 0);
80 __EXPORT char *
rsetField(
char *target,
size_t size,
const char *src,
const char fill = 0);
87 __EXPORT char *
find(
const char *cs,
char *str,
size_t len = 0);
88 __EXPORT char *
rfind(
const char *cs,
char *str,
size_t len = 0);
89 __EXPORT char *
ifind(
const char *cs,
char *str,
size_t len = 0);
90 __EXPORT char *
strip(
const char *cs,
char *str,
size_t len = 0);
94 inline char *
dupString(
const char *src,
size_t size = 0)
164 #ifdef CCXX_NAMESPACES
__EXPORT char * strip(const char *cs, char *str, size_t len=0)
__EXPORT char * setString(char *target, size_t size, const char *src)
__EXPORT char * rfind(const char *cs, char *str, size_t len=0)
__EXPORT size_t strtrim(const char *cs, char *str, size_t len=0)
__EXPORT char * newString(const char *src, size_t size=0)
substitute functions which may be missing in target platform libc.
__EXPORT char * find(const char *cs, char *str, size_t len=0)
__EXPORT char * setLower(char *string, size_t size)
__EXPORT char * lsetField(char *target, size_t size, const char *src, const char fill=0)
__EXPORT char * rsetField(char *target, size_t size, const char *src, const char fill=0)
__EXPORT void delString(char *str)
__EXPORT char * ifind(const char *cs, char *str, size_t len=0)
char * dupString(const char *src, size_t size=0)
__EXPORT size_t strchop(const char *cs, char *str, size_t len=0)
__EXPORT char * addString(char *target, size_t size, const char *src)
__EXPORT char * setUpper(char *string, size_t size)