All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Static Public Member Functions | List of all members
Eegeo::Unicode::UnicodeConverter Class Reference

#include <UnicodeConverter.h>

Static Public Member Functions

static u32 DecodeUtf8Character (const char *text, size_t bufferSize, int pos, int *nextPos)
 
static void Utf8ToUtf32 (const std::string &textUtf8, std::vector< u32 > &out_textUtf32)
 
static void Utf8ToUtf32 (const char *textStr, int textLength, std::vector< u32 > &out_textUtf32)
 

Detailed Description

Helper methods for decoding Utf8 byte streams to Utf32 codepoints

Member Function Documentation

u32 Eegeo::Unicode::UnicodeConverter::DecodeUtf8Character ( const char *  text,
size_t  bufferSize,
int  pos,
int *  nextPos 
)
static
Deprecated:
For legacy app support. New apps should use Eegeo::Utf8::Next / Eegeo::Utf8::PeekNext
void Eegeo::Unicode::UnicodeConverter::Utf8ToUtf32 ( const std::string &  textUtf8,
std::vector< u32 > &  out_textUtf32 
)
static

Converts a Utf-8 input string to Utf-32. Invalid octet sequences or invalid characters are replaced with U+FFFD

Parameters
textUtf8input Utf-8 character sequence
out_textUtf32output vector populated with resulting Utf-32 sequence
void Eegeo::Unicode::UnicodeConverter::Utf8ToUtf32 ( const char *  textStr,
int  textLength,
std::vector< u32 > &  out_textUtf32 
)
static

Converts a Utf-8 input string to Utf-32. Invalid octet sequences or invalid characters are replaced with U+FFFD

Parameters
textStrinput Utf-8 character sequence buffer
textLengthsize in bytes of textUtf8 buffer
out_textUtf32output vector populated with resulting Utf-32 sequence

The documentation for this class was generated from the following files: