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
zft_zfstring< zfchar > zfstring
see zft_zfstring
Definition ZFCoreTypeDef_StringType.h:15
#define ZFLog(...)
thread-safe log utility
Definition ZFLog.h:77
util class to alloc and hold ZFObject type
Definition ZFObjectAutoPtr.h:157
const T_Char * cString(void) const
access string value
Definition zfstring.h:464
all strings in ZFFramework use UTF-8 as string encoding