UtfConverter Namespace Reference

Functions for the UNICODE conversion. More...

Functions

bool unicode_isalpha (UTF32 c)
 return true if the UTF32 code point c is alphabetic according to Annex E of ISO/IEC 10176 More...
 
std::string ConversionResult_tostring (int res)
 render the return code from ConvertUTFxxtoUTFyy to a string More...
 
UTF32 FromUtf8 (const char **s)
 
std::wstring FromUtf8 (const std::string &utf8string)
 
std::string ToUtf8 (const std::wstring &widestring)
 
std::string ToUtf8 (const wchar_t *)
 

Detailed Description

Functions for the UNICODE conversion.

Function Documentation

◆ ConversionResult_tostring()

std::string UtfConverter::ConversionResult_tostring ( int  res)

render the return code from ConvertUTFxxtoUTFyy to a string

◆ FromUtf8() [1/2]

UTF32 UtfConverter::FromUtf8 ( const char **  s)

convert one character at a time from source After the conversion, the source pointer is updated to point to the end of last text successfully converted

◆ FromUtf8() [2/2]

std::wstring UtfConverter::FromUtf8 ( const std::string &  utf8string)

◆ ToUtf8() [1/2]

std::string UtfConverter::ToUtf8 ( const std::wstring &  widestring)

◆ ToUtf8() [2/2]

std::string UtfConverter::ToUtf8 ( const wchar_t *  )

◆ unicode_isalpha()

bool UtfConverter::unicode_isalpha ( UTF32  c)

return true if the UTF32 code point c is alphabetic according to Annex E of ISO/IEC 10176