|
Banjo API 1.1.0-alpha
Low-level C99 game development API
|
Go to the source code of this file.
Data Structures | |
| struct | bj_utf8_report |
Typedefs | |
| typedef bj_bool(* | bj_utf8_fn) (const struct bj_utf8_report *report, void *user_data) |
Enumerations | |
| enum | bj_utf8_state { BJ_UTF8_STATE_VALID = 0 , BJ_UTF8_STATE_BAD_LEAD , BJ_UTF8_STATE_LONE_CONTINUATION , BJ_UTF8_STATE_BAD_SLOT , BJ_UTF8_STATE_TRUNCATED } |
Functions | |
| bj_bool | bj_utf8_next (struct bj_str view, size_t *cursor, struct bj_utf8_report *report) |
| size_t | bj_utf8_scan (struct bj_str view, bj_utf8_fn callback, void *user_data) |
| bj_bool | bj_utf8_prev (struct bj_str view, size_t *cursor, uint32_t *value) |
| size_t | bj_utf8_encode (uint32_t value, char bytes[4]) |
| bj_bool | bj_utf8_validate (struct bj_str view, size_t *first_error) |
Read, write and validate UTF-8 characters.
Definition in file unicode.h.