ZFFramework use these string types:
- const zfchar *
C-style string, use just like "const char *"
- zfstring
C++-style string, use just like std::string
- v_zfstring
string wrapped as ZFObject
const zfchar *cStyle =
"C-style string";
zfscpy(cString2,
"copied C-style string");
zfLog() << cStyle <<
" " << cStyle2;
cppStyle2 = "copied C++-style string"
zfStyle2->
zfv =
"copied object-style string";
zfLog() << zfStyle <<
" " << zfStyle2->
zfv;
zfchar * zfscpy(zfchar *dst, const zfchar *src)
strcpy wrapper as zfchar type
Definition ZFCoreTypeDef_CharType.h:148
_ZFT_t_zfchar zfchar
char wrapper
Definition ZFCoreTypeDef_CharType.h:17
#define zfLog(...)
thread-safe log utility
Definition ZFLog.h:64
ZFV zfv(void) const
see ZFV
Definition zfautoFwd.h:127
util class to alloc and hold ZFObject type
Definition ZFObjectAutoPtr.h:163
const T_Char * cString(void) const
access string value
Definition ZFCoreString.h:384
by default, all strings in ZFFramework use UTF-8 as string encoding