version 1.578, 2015/11/14 10:56:31 |
version 1.579, 2015/11/14 11:45:43 |
|
|
|
|
u_char width; /* 0xff if invalid */ |
u_char width; /* 0xff if invalid */ |
} __packed; |
} __packed; |
|
enum utf8_state { |
|
UTF8_MORE, |
|
UTF8_DONE, |
|
UTF8_ERROR |
|
}; |
|
|
/* Grid attributes. */ |
/* Grid attributes. */ |
#define GRID_ATTR_BRIGHT 0x1 |
#define GRID_ATTR_BRIGHT 0x1 |
|
|
u_int utf8_width(u_int); |
u_int utf8_width(u_int); |
void utf8_set(struct utf8_data *, u_char); |
void utf8_set(struct utf8_data *, u_char); |
void utf8_copy(struct utf8_data *, const struct utf8_data *); |
void utf8_copy(struct utf8_data *, const struct utf8_data *); |
int utf8_open(struct utf8_data *, u_char); |
enum utf8_state utf8_open(struct utf8_data *, u_char); |
int utf8_append(struct utf8_data *, u_char); |
enum utf8_state utf8_append(struct utf8_data *, u_char); |
u_int utf8_combine(const struct utf8_data *); |
u_int utf8_combine(const struct utf8_data *); |
int utf8_split(u_int, struct utf8_data *); |
enum utf8_state utf8_split(u_int, struct utf8_data *); |
u_int utf8_split2(u_int, u_char *); |
u_int utf8_split2(u_int, u_char *); |
int utf8_strvis(char *, const char *, size_t, int); |
int utf8_strvis(char *, const char *, size_t, int); |
char *utf8_sanitize(const char *); |
char *utf8_sanitize(const char *); |