Go to the source code of this file.
Defines | |
#define | IND_ISO88591 0 |
#define | ISO88591 "iso8859-1" |
#define | IND_GB2312HEX 1 |
#define | GB2312HEX "gb2312-hex" |
#define | IND_GB2312 2 |
#define | GB2312 "gb2312" |
#define | IND_BADENCODING -1 |
#define | BADENCODING "BAD_ENCODING" |
Functions | |
int | encoding_str2ind (const char *enc) |
S3DECODER_EXPORT int | encoding_resolve (const char *inputenc, const char *outputenc) |
void | hextocode (char *src) |
int | ishex (const char *str) |
#define BADENCODING "BAD_ENCODING" |
#define GB2312 "gb2312" |
#define GB2312HEX "gb2312-hex" |
#define IND_BADENCODING -1 |
#define IND_GB2312 2 |
#define IND_GB2312HEX 1 |
#define IND_ISO88591 0 |
#define ISO88591 "iso8859-1" |
S3DECODER_EXPORT int encoding_resolve | ( | const char * | inputenc, |
const char * | outputenc | ||
) |
Resolve whether encoding is legitimate
inputenc | In: Input encoding |
outputenc | In: Input encoding |
Referenced by main().
int encoding_str2ind | ( | const char * | enc | ) |
Get encoding index from encoding scheme string.
enc | In: Input encoding |
void hextocode | ( | char * | src | ) |
Convert hex to code.
src | In/Out: Input and output string where in-place conversion took place |
int ishex | ( | const char * | str | ) |