Qsmtp
0.37
|
UTF-8 processing functions. More...
Functions | |
static bool | utf8_tail (unsigned char c) |
static int | utf8_2_start (unsigned char c) |
check if this is the beginning of an UTF8-2 sequence More... | |
static int | utf8_3_start (unsigned char ch1, unsigned char ch2) |
check if this is the beginning of an UTF8-3 sequence More... | |
static int | utf8_4_start (unsigned char ch1, unsigned char ch2) |
check if this is the beginning of an UTF8-4 sequence More... | |
int | valid_utf8 (const cstring s) |
check if a given string contains only valid UTF-8 sequences More... | |
UTF-8 processing functions.
|
static |
check if this is the beginning of an UTF8-2 sequence
0 | this is no UTF8-4 sequence |
|
static |
check if this is the beginning of an UTF8-3 sequence
0 | this is no UTF8-3 sequence |
|
static |
check if this is the beginning of an UTF8-4 sequence
0 | this is no UTF8-4 sequence |
int valid_utf8 | ( | const cstring | s | ) |
check if a given string contains only valid UTF-8 sequences
s | string to check |
-1 | the sequence is invalid |