namespace: utf8
Description:
class:
Synopsis:
int8_t theoricLen (const char _input);
bool theoricFirst (const char _input);
char32_t convertChar32 (const char* _input);
std::u32string convertUnicode (const std::string & _input);
Detail:
theoricLen
int8_t theoricLen (const char _input);
Get the size of an utf8 char with his first char.
Parameter [input]: | _input | Char to parse |
Return: | | number of char needed |
theoricFirst
bool theoricFirst (const char _input);
When parsing a string in a reverse mode, we need to know if we get the first char
Parameter [input]: | _input | Char to parse. |
Return: | | true if it was the first char. |
convertChar32
char32_t convertChar32 (const char* _input);
convertUnicode
std::u32string convertUnicode (const std::string & _input);