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
55extern ZFLIB_ZFCore const zfchar _ZFP_ZFCoreDataEncodeCharMapAllPrintable[256];
95#define ZFCoreDataEncodeCharMapAllPrintable() _ZFP_ZFCoreDataEncodeCharMapAllPrintable
96
106 ZF_OUT zfstring &result
107 , ZF_IN const zfchar *src
108 , ZF_IN_OPT zfindex srcLen = zfindexMax()
110 , ZF_IN_OPT zfchar escapeToken = '%'
111 );
116 ZF_OUT zfstring &result
117 , ZF_IN const zfchar *src
118 , ZF_IN_OPT zfindex srcLen = zfindexMax()
119 , ZF_IN_OPT zfchar escapeToken = '%'
120 );
121
122extern ZFLIB_ZFCore zfstring _ZFP_ZFCoreDataEncodeCharMapCreate(ZF_IN const zfchar *base, ZF_IN zfint c, ...);
131#define ZFCoreDataEncodeCharMapCreate(base, c, ...) _ZFP_ZFCoreDataEncodeCharMapCreate(base, c, ##__VA_ARGS__, (zfint)256)
132
134
135#endif // #ifndef _ZFI_ZFCoreDataEncode_h_
136
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:196
#define ZF_IN_OPT
dummy macro that shows the param used as optional input
Definition ZFCoreTypeDef_ClassType.h:200
#define ZF_OUT
dummy macro that shows the param used as required output
Definition ZFCoreTypeDef_ClassType.h:204
_ZFT_t_zfindex zfindex
similar to size_t, used for index and size only
Definition ZFCoreTypeDef_CoreType.h:154
_ZFT_t_zfint zfint
same as int, see zfindex
Definition ZFCoreTypeDef_CoreType.h:165
#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