version 1.57, 2020/09/16 18:37:55 |
version 1.58, 2021/06/10 07:56:47 |
|
|
static u_int utf8_next_index; |
static u_int utf8_next_index; |
|
|
#define UTF8_GET_SIZE(uc) (((uc) >> 24) & 0x1f) |
#define UTF8_GET_SIZE(uc) (((uc) >> 24) & 0x1f) |
#define UTF8_GET_WIDTH(flags) (((uc) >> 29) - 1) |
#define UTF8_GET_WIDTH(uc) (((uc) >> 29) - 1) |
|
|
#define UTF8_SET_SIZE(size) (((utf8_char)(size)) << 24) |
#define UTF8_SET_SIZE(size) (((utf8_char)(size)) << 24) |
#define UTF8_SET_WIDTH(width) ((((utf8_char)(width)) + 1) << 29) |
#define UTF8_SET_WIDTH(width) ((((utf8_char)(width)) + 1) << 29) |