17 SP_KANJI_CODE_UNKNOWN = -1,
18 SP_KANJI_CODE_JIS = 0,
19 SP_KANJI_CODE_EUC = 1,
20 SP_KANJI_CODE_SJIS = 2,
21 SP_KANJI_CODE_ZENKAKU_SJIS = 3,
22 SP_KANJI_CODE_ZENKAKU_JIS = 4,
23 SP_KANJI_CODE_ZENKAKU_EUC = 5,
24 SP_KANJI_CODE_UTF8 = 10,
27#define SP_KANJI_CODE_CURRENT SP_KANJI_CODE_UNKNOWN
31#if defined(_WIN32) || defined(MACOS)
32#define SP_KANJI_CODE_DEFAULT SP_KANJI_CODE_SJIS
34#define SP_KANJI_CODE_DEFAULT SP_KANJI_CODE_EUC
36#if (defined(_WIN32) && !defined(__CYGWIN32__)) || defined(MACOS)
37#define SP_KANJI_CODE_INTERNAL SP_KANJI_CODE_SJIS
39#define SP_KANJI_CODE_INTERNAL SP_KANJI_CODE_EUC
56extern void spSetDefaultKanjiCode(spKanjiCode code);
64extern const char *spGetKanjiCodeEncoding(spKanjiCode code);
70extern spKanjiCode
spConvertKanji(
const unsigned char *lin,
unsigned char *lout,
int size);
73 int size, spKanjiCode icode, spKanjiCode ocode);
75extern spKanjiCode spConvertKanjiFromLocaleCode(
unsigned char *iobuf,
int size, spKanjiCode ocode);
77extern spKanjiCode spConvertKanjiToLocaleCode(
unsigned char *iobuf,
int size, spKanjiCode icode);
spKanjiCode spConvertKanjiCode(const unsigned char *lin, unsigned char *lout, int size, spKanjiCode icode, spKanjiCode ocode)
void spDecodeMime(int flag)
spKanjiCode spConvertKanji(const unsigned char *lin, unsigned char *lout, int size)
void spSetKanjiCode(spKanjiCode icode, spKanjiCode ocode)
spKanjiCode spGetLocaleKanjiCode(const char *lang)
const char * spGetKanjiCodeLabel(spKanjiCode code)
spKanjiCode spGetKanjiCode(void)
int spSetKanjiOptions(int n, const char **options)
void spKanjiUsage(const char *name)