diff options
Diffstat (limited to 'code/fe310/eos/eve/unicode.h')
-rw-r--r-- | code/fe310/eos/eve/unicode.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/code/fe310/eos/eve/unicode.h b/code/fe310/eos/eve/unicode.h new file mode 100644 index 0000000..6452822 --- /dev/null +++ b/code/fe310/eos/eve/unicode.h @@ -0,0 +1,10 @@ +#include <stdint.h> + +typedef uint8_t utf8_t; +typedef uint16_t utf16_t; +typedef uint32_t utf32_t; + +uint8_t utf8_enc(utf32_t ch, utf8_t *str); +uint8_t utf8_dec(utf8_t *str, utf32_t *ch); +int utf8_seek(utf8_t *str, int off, utf32_t *ch); +int utf8_verify(utf8_t *str, int sz);
\ No newline at end of file |