util to encode data to printable string More...
#include "ZFCoreTypeDef.h"Go to the source code of this file.
Macros | |
| #define | ZFCoreDataEncodeCharMapDefault() |
| see ZFCoreDataEncode, default is all numbers and all lower and upper letters | |
| #define | ZFCoreDataEncodeCharMapAllPrintable() |
| see ZFCoreDataEncode, all printable chars 0x20 ~ 0x7E | |
| #define | ZFCoreDataEncodeCharMapCreate(base, c, ...) |
| util to create char map for ZFCoreDataEncode | |
Functions | |
| 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 | |
| void | ZFCoreDataDecode (zfstring &result, const zfchar *src, zfindex srcLen=((zfindex) -1), zfchar escapeToken='%') |
| see ZFCoreDataEncode | |
util to encode data to printable string
| #define ZFCoreDataEncodeCharMapDefault | ( | ) |
see ZFCoreDataEncode, default is all numbers and all lower and upper letters
here's a list of contents:
| #define ZFCoreDataEncodeCharMapAllPrintable | ( | ) |
see ZFCoreDataEncode, all printable chars 0x20 ~ 0x7E
here's a list of contents:
| #define ZFCoreDataEncodeCharMapCreate | ( | base, | |
| c, | |||
| ... ) |
util to create char map for ZFCoreDataEncode
the char map would be initialized by base, each param is an index value which can be:
|
extern |
util to encode data to printable string
use charMap to declare the printable chars, it's a 256 size zfchar array, zero element means the char isn't printable and non-zero means printable
not printable chars would be escaped by escapeToken