1234567891011121314151617181920 |
- #ifndef _UNICODE_H_
- #define _UNICODE_H_
- #include <stdint.h>
- uint16_t GB2312_to_Unicode(uint16_t c);
- uint16_t Unicode_to_GB2312(uint16_t c);
- // size: 眕 uint16_t 峈等弇
- // length: 眕 uint8_t 峈等弇
- uint16_t Ansi_to_Unicode(uint16_t *dest, uint16_t size,
- const uint8_t *src, uint16_t length); //
- // size: 眕 uint8_t 峈等弇
- // length: 眕 uint8_t 峈等弇
- uint16_t Unicode_to_Ansi(uint8_t *dest, uint16_t size,
- const uint8_t *src, uint16_t length);
- uint16_t StrUnicodeToAnsi(uint8_t *dest,uint16_t size,const char *src);
- uint16_t AnsiToStrUnicode(uint16_t *dest,uint16_t size,const char *src);
- #endif /* _UNICODE_H_ */
|