utf8 Namespace Reference

Classes

class  iterator
 

Functions

int8_t theoricLen (const char _input)
 
bool theoricFirst (const char _input)
 
char32_t convertChar32 (const char *_input)
 

Detailed Description

UTF-8 simple wrapper interface.

Function Documentation

§ convertChar32()

char32_t utf8::convertChar32 ( const char *  _input)

Convert a char* in a unicode value.

Parameters
[in]_inputpointer on a string C (utf-8) to convert
Returns
Converted Value

§ theoricFirst()

bool utf8::theoricFirst ( const char  _input)

When parsing a string in a reverse mode, we need to know if we get the first char.

Parameters
[in]_inputChar to parse.
Returns
true if it was the first char.

§ theoricLen()

int8_t utf8::theoricLen ( const char  _input)

Get the size of an utf8 char with his first char.

Parameters
[in]_inputChar to parse
Returns
number of char needed