124 CFInt
indexOf(CFUChar chr,
int from = 0,
bool caseSensitive =
true);
134 CFInt
indexOf(
const CFString& str,
int from = 0,
bool caseSensitive =
true);
183 bool operator==(
const CFString& other);
184 bool operator!=(
const CFString& other);
185 bool operator>(
const CFString& other);
186 bool operator>=(
const CFString& other);
187 bool operator<(
const CFString& other);
188 bool operator<=(
const CFString& other);
191 CFUInt getUTF8length();
192 void create(
const CFUChar* strdata);
197 CFUInt convertPosToIndex(CFUInt pos);
202 CFInt convertIndexToPos(CFInt index);
204 CFUInt dataLength(
const CFUChar* strdata);
205 CFUInt wordWidth(CFUChar chr)
const;
206 bool charEqual(CFUChar destChr, CFUChar srcChr,
bool caseSensitive =
true);
214 #endif // __CFSTRING_H__ CFStringList split(const CFString &splitStr)
字符串分割.
CFString 字符串类.
Definition: CFString.h:21
CFInt indexOf(CFUChar chr, int from=0, bool caseSensitive=true)
字符串查找.
CFString sub(CFUInt pos, CFInt len)
字符串截取.
CFUInt clength()
获取C字符串长度.
bool isEmpty() const
判断是否为空字符串.
CFUChar * toUtf8()
获取UTF-8编码字符串.
std::string toStdString()
获取C++标准库字符串.
bool equal(const CFString &other)
判断字符串是否与 other 字符串相同.
char * toCString()
获取C语言字符串.
Definition: CFStringList.h:7
bool isUtf8() const
判断是否包含UTF-8编码的字符.
CFInt compare(const CFString &other)
比较字符串和 other 字符串.