12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- #ifndef _NLS_H_
- #define _NLS_H_
- #include <zephyr/types.h>
- #ifdef __cplusplus
- extern "C" {
- #endif
- #define MAX_WCHAR_T 0xffff
- typedef unsigned int unicode_t;
- int utf8_to_utf32(const u8_t *s, int inlen, unicode_t *pu);
- int utf32_to_utf8(unicode_t u, u8_t *s, int maxout);
- #ifdef CONFIG_NLS_UTF8
- int nls_utf8_uni2char(u16_t uni, u8_t *out, int boundlen);
- int nls_utf8_char2uni(const u8_t *rawstring, int boundlen, u16_t *uni);
- #endif
- #ifdef __cplusplus
- }
- #endif
- #endif
|