|
|
| version 1.1, 2005/03/19 18:54:57 | version 1.2, 2005/04/01 15:35:48 |
|---|---|
| Line 5 enum { | Line 5 enum { |
| TEXTCNV_DEFAULT = 0, | TEXTCNV_DEFAULT = 0, |
| TEXTCNV_SJIS = 1, | TEXTCNV_SJIS = 1, |
| TEXTCNV_EUC = 2, | TEXTCNV_EUC = 2, |
| TEXTCNV_UFT8 = 3, | TEXTCNV_UTF8 = 3, |
| TEXTCNV_UCS2 = 4 | TEXTCNV_UCS2 = 4 |
| }; | }; |
| enum { | |
| TEXTCNV_READ = 0x01, | |
| TEXTCNV_WRITE = 0x02 | |
| }; | |
| typedef UINT (*TCTOOEM)(OEMCHAR *dst, UINT dcnt, const void *src, UINT scnt); | typedef UINT (*TCTOOEM)(OEMCHAR *dst, UINT dcnt, const void *src, UINT scnt); |
| typedef UINT (*TCFROMOEM)(void *dst, UINT dcnt, const OEMCHAR *src, UINT scnt); | typedef UINT (*TCFROMOEM)(void *dst, UINT dcnt, const OEMCHAR *src, UINT scnt); |
| typedef struct { | |
| UINT8 caps; | |
| UINT8 xendian; | |
| UINT8 width; | |
| UINT8 hdrsize; | |
| TCTOOEM tooem; | |
| TCFROMOEM fromoem; | |
| } TCINF; | |
| #ifdef __cplusplus | #ifdef __cplusplus |
| extern "C" { | extern "C" { |
| #endif | #endif |
| BRESULT textcnv_tooem(UINT code, TCTOOEM *tcto); | UINT textcnv_getinfo(TCINF *inf, const UINT8 *hdr, UINT hdrsize); |
| BRESULT textcnv_fromoem(UINT code, TCFROMOEM *tcfo); | void textcnv_swapendian16(void *buf, UINT leng); |
| void textcnv_swapendian32(void *buf, UINT leng); | |
| #ifdef __cplusplus | #ifdef __cplusplus |
| } | } |