unicode.h 667 B

1234567891011121314151617181920
  1. #ifndef _UNICODE_H_
  2. #define _UNICODE_H_
  3. #include <stdint.h>
  4. uint16_t GB2312_to_Unicode(uint16_t c);
  5. uint16_t Unicode_to_GB2312(uint16_t c);
  6. // size: 眕 uint16_t 峈等弇
  7. // length: 眕 uint8_t 峈等弇
  8. uint16_t Ansi_to_Unicode(uint16_t *dest, uint16_t size,
  9. const uint8_t *src, uint16_t length); //
  10. // size: 眕 uint8_t 峈等弇
  11. // length: 眕 uint8_t 峈等弇
  12. uint16_t Unicode_to_Ansi(uint8_t *dest, uint16_t size,
  13. const uint8_t *src, uint16_t length);
  14. uint16_t StrUnicodeToAnsi(uint8_t *dest,uint16_t size,const char *src);
  15. uint16_t AnsiToStrUnicode(uint16_t *dest,uint16_t size,const char *src);
  16. #endif /* _UNICODE_H_ */