u32char Namespace Reference

Functions

bool isWhiteChar (char32_t _val)
 
bool isSpecialChar (char32_t _val)
 
int32_t toInt (char32_t _val)
 
char32_t changeOrder (char32_t _val)
 
int8_t convertUtf8 (char32_t _val, char _output[5])
 

Variables

const char32_t Null
 
const char32_t Return
 
const char32_t CarrierReturn
 
const char32_t Tabulation
 
const char32_t Suppress
 
const char32_t Delete
 
const char32_t Space
 
const char32_t Escape
 

Detailed Description

Unicode simple wrapper interface.

Function Documentation

§ changeOrder()

char32_t u32char::changeOrder ( char32_t  _val)

Change order of the value to have an order of display with A->Z and after a->z and after 0->9 and after all the rest ....

Parameters
[in]_valValue in unicode
Returns
A value usable in interfer only ... to check order...

§ convertUtf8()

int8_t u32char::convertUtf8 ( char32_t  _val,
char  _output[5] 
)

Conver unicode in UTF8 value.

Parameters
[in]_valValue to convert
[out]_outputChar data converted
Returns
Number of char in utf8

§ isSpecialChar()

bool u32char::isSpecialChar ( char32_t  _val)

check if the current element is NOT [a-zA-Z0-9]

Parameters
[in]_valValue to interprete
Returns
true Not in the previous list
false otherwise

§ isWhiteChar()

bool u32char::isWhiteChar ( char32_t  _val)

check if the current element is white or not : '\t' '\n' '\r' ' '

Parameters
[in]_valValue to interprete
Returns
true if it is white char
false otherwise

§ toInt()

int32_t u32char::toInt ( char32_t  _val)

Convert char32_t in an interfer.

Parameters
[in]_valValue to interprete
Returns
The parsed Value or ...

Variable Documentation

§ CarrierReturn

const char32_t u32char::CarrierReturn

Value '\r' CR.

§ Delete

const char32_t u32char::Delete

Value DEL.

§ Escape

const char32_t u32char::Escape

Value ESC Escape.

§ Null

const char32_t u32char::Null

Value '\0'.

§ Return

const char32_t u32char::Return

Value '\n'.

§ Space

const char32_t u32char::Space

Value ' ' SPACE.

§ Suppress

const char32_t u32char::Suppress

Value BS (SUPPRESS)

§ Tabulation

const char32_t u32char::Tabulation

Value '\t' TAB.