diff options
author | Uros Majstorovic <majstor@majstor.org> | 2020-07-29 09:21:45 +0200 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2020-07-29 09:21:45 +0200 |
commit | 0e518d5117b73fd54081decf1c0eb9f9d3173ff6 (patch) | |
tree | 9ef8f4529e3b24cd9ca16e6c46a89781abc8c670 /code/fe310/eos/eve/unicode.h | |
parent | 5a39774e6ed9002de3f0ec1f2cdbba2ebbe9fbde (diff) |
unicode support
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 |