encoding.h File Reference
#include <stdlib.h>
#include <s3types.h>
Go to the source code of this file.
Define Documentation
#define BADENCODING "BAD_ENCODING" |
#define GB2312HEX "gb2312-hex" |
#define IND_BADENCODING -1 |
#define ISO88591 "iso8859-1" |
Function Documentation
S3DECODER_EXPORT int encoding_resolve |
( |
const char * |
inputenc, |
|
|
const char * |
outputenc | |
|
) |
| | |
Resolve whether encoding is legitimate
- Returns:
- whether the two encoding could be resolved.
- Parameters:
-
| inputenc | In: Input encoding |
| outputenc | In: Input encoding |
Referenced by main().
int encoding_str2ind |
( |
const char * |
enc |
) |
|
Get encoding index from encoding scheme string.
- Returns:
- the index of the encoding scheme
- Parameters:
-
void hextocode |
( |
char * |
src |
) |
|
Convert hex to code.
- Parameters:
-
| src | In/Out: Input and output string where in-place conversion took place |
int ishex |
( |
const char * |
str |
) |
|