Cyclone Scheme
0.28.0
|
Unicode processing using UTF-8. More...
Macros | |
#define | CYC_UTF8_ACCEPT 0 |
Successful state. More... | |
#define | Cyc_utf8_encode_char(dest, dest_size, char_value) Cyc_utf8_encode(dest, dest_size, &char_value, 1) |
#define | CYC_UTF8_REJECT 1 |
Invalid state. More... | |
Functions | |
int | Cyc_utf8_count_code_points (uint8_t *s) |
Count the number of code points in a string. Based on example code from Bjoern Hoehrmann. More... | |
int | Cyc_utf8_encode (char *dest, int sz, uint32_t *src, int srcsz) |
uint32_t | Cyc_utf8_validate (char *str, size_t len) |
Simplified version of Cyc_utf8_validate_stream that must always be called with a complete string buffer. More... | |
uint32_t | Cyc_utf8_validate_stream (uint32_t *state, char *str, size_t len) |
Use this when validating from a stream, as it may be that the stream stopped in the middle of a codepoint, hence state passed in as an arg, so it can be tested in a loop and also after the loop has finished. More... | |
Unicode processing using UTF-8.