|
|
utf8.h - iomenu - interactive terminal-based selection menu |
|
|
 |
git clone git://bitreich.org/iomenu git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/iomenu (git://bitreich.org) |
|
|
 |
Log |
|
|
 |
Files |
|
|
 |
Refs |
|
|
 |
Tags |
|
|
 |
README |
|
|
 |
LICENSE |
|
|
|
--- |
|
|
|
utf8.h (234B) |
|
|
|
--- |
|
|
|
1 #ifndef UTF8_H |
|
|
|
2 #define UTF8_H |
|
|
|
3 |
|
|
|
4 #include <stddef.h> |
|
|
|
5 #include <stdint.h> |
|
|
|
6 |
|
|
|
7 enum { |
|
|
|
8 UTF8_ACCEPT, |
|
|
|
9 UTF8_REJECT, |
|
|
|
10 }; |
|
|
|
11 |
|
|
|
12 size_t utf8_encode(char *dest, uint32_t u); |
|
|
|
13 uint32_t utf8_decode(uint32_t *state, uint32_t *codep, uint32_t byte); |
|
|
|
14 |
|
|
|
15 #endif |
|