2024-05-27 17:38:35 -06:00
|
|
|
#if __STDC_VERSION__ >= 199901L
|
|
|
|
/* C99 type definitions */
|
|
|
|
# include <stdint.h>
|
|
|
|
typedef uint32_t rune_t;
|
|
|
|
#else
|
|
|
|
/* Must hold at least 32b; see the C89 draft 2.2.4.2
|
|
|
|
* <http://jfxpt.com/library/c89-draft.html#2.2.4.2> */
|
|
|
|
typedef unsigned long int rune_t;
|
|
|
|
#endif
|
2024-05-29 16:32:31 -06:00
|
|
|
#include <stddef.h> /* size_t */
|
2024-05-27 17:38:35 -06:00
|
|
|
|
|
|
|
rune_t swab32(rune_t c);
|
|
|
|
rune_t utf8_to_utf32be(rune_t c);
|
2024-05-29 19:12:47 -06:00
|
|
|
char *utf8_to_chars(rune_t c, char *s, size_t n);
|
2024-05-29 16:32:31 -06:00
|
|
|
rune_t utf32be_to_utf8(rune_t c, size_t m);
|
2024-05-27 17:38:35 -06:00
|
|
|
rune_t utf32be_to_utf32le(rune_t c);
|
|
|
|
rune_t utf32le_to_utf32be(rune_t c);
|