ZFFramework
 
Loading...
Searching...
No Matches
ZFCoreDataEncode.h
Go to the documentation of this file.
1
5
6#ifndef _ZFI_ZFCoreDataEncode_h_
7#define _ZFI_ZFCoreDataEncode_h_
8
9#include "ZFCoreTypeDef.h"
10
12
13extern ZFLIB_ZFCore const zfchar _ZFP_ZFCoreDataEncodeCharMapDefault[256];
53#define ZFCoreDataEncodeCharMapDefault() _ZFP_ZFCoreDataEncodeCharMapDefault
54
64 ZF_OUT zfstring &result
65 , ZF_IN const zfchar *src
66 , ZF_IN_OPT zfindex srcLen = zfindexMax()
68 , ZF_IN_OPT zfchar escapeToken = '%'
69 );
74 ZF_OUT zfstring &result
75 , ZF_IN const zfchar *src
76 , ZF_IN_OPT zfindex srcLen = zfindexMax()
77 , ZF_IN_OPT zfchar escapeToken = '%'
78 );
79
81
82#endif // #ifndef _ZFI_ZFCoreDataEncode_h_
83
void ZFCoreDataDecode(zfstring &result, const zfchar *src, zfindex srcLen=((zfindex) -1), zfchar escapeToken='%')
see ZFCoreDataEncode
void ZFCoreDataEncode(zfstring &result, const zfchar *src, zfindex srcLen=((zfindex) -1), const zfchar *charMap=_ZFP_ZFCoreDataEncodeCharMapDefault, zfchar escapeToken='%')
util to encode data to printable string
#define ZFCoreDataEncodeCharMapDefault()
see ZFCoreDataEncode, default is all numbers and all lower and upper letters
Definition ZFCoreDataEncode.h:53
#define ZFLIB_ZFCore
used to export symbols
Definition ZFCoreEnvDef.h:30
types for ZFFramework
_ZFT_t_zfchar zfchar
char wrapper
Definition ZFCoreTypeDef_CharType.h:17
#define ZF_IN
dummy macro that shows the param used as required input
Definition ZFCoreTypeDef_ClassType.h:180
#define ZF_IN_OPT
dummy macro that shows the param used as optional input
Definition ZFCoreTypeDef_ClassType.h:184
#define ZF_OUT
dummy macro that shows the param used as required output
Definition ZFCoreTypeDef_ClassType.h:188
_ZFT_t_zfindex zfindex
similar to size_t, used for index and size only
Definition ZFCoreTypeDef_CoreType.h:154
#define zfindexMax()
(zfindex)-1, indicate a max index value, see zfindex
Definition ZFCoreTypeDef_CoreType.h:159
zft_zfstring< zfchar > zfstring
see zft_zfstring
Definition ZFCoreTypeDef_StringType.h:15
#define ZF_NAMESPACE_GLOBAL_BEGIN
begin namespace ZFFramework
Definition ZFNamespace.h:97
#define ZF_NAMESPACE_GLOBAL_END
end namespace ZFFramework
Definition ZFNamespace.h:98