Guiliani  Version 2.5 revision 7293 (documentation build 13)
ArabicUTFConverter Class Reference

This class is a helper to convert strings containing bi-directional text-parts. More...

#include <ArabicUTFConverter.h>

Classes

struct  CharRep_t
 
struct  CombCharRep_t
 

Static Public Member Functions

static eC_String ConvertArabic (const eC_String &rkSourceString, eC_Bool &bConverted)
 
static CharRep_t GetCharRep (eC_UTF16 c)
 
static eC_UTF16 GetCode (eC_UTF16 c)
 
static CombCharRep_t GetcombCharRep (eC_UTF16 c)
 
static eC_String GetInternTextData (const eC_String &rkSourceString, const eC_Bool &bGlobalCodePresentation=true)
 
static void GetTextInUTF16 (const eC_String &kSource, eC_UInt &ruiLength)
 
static eC_Bool IsArabicChar (eC_UTF16 cCharacter)
 

Detailed Description

This class is a helper to convert strings containing bi-directional text-parts.

Member Function Documentation

◆ ConvertArabic()

static eC_String ArabicUTFConverter::ConvertArabic ( const eC_String &  rkSourceString,
eC_Bool &  bConverted 
)
static

This method is used to convert an input string containing arabic unicode-characters into a new string with all characters replaced with their correct replacement according to their position in the text.

Parameters
rkSourceStringthe input-string
bConvertedset to true if conversion has been done
Returns
the converted string

◆ GetCharRep()

static CharRep_t ArabicUTFConverter::GetCharRep ( eC_UTF16  c)
static

Get the visual representation of character

Parameters
ccharacter
Returns
visual representation

◆ GetCode()

static eC_UTF16 ArabicUTFConverter::GetCode ( eC_UTF16  c)
static

Get code for unicode character

Parameters
ccharacter
Returns
code

◆ GetcombCharRep()

static CombCharRep_t ArabicUTFConverter::GetcombCharRep ( eC_UTF16  c)
static

Get the visual representation of character-combination

Parameters
ccharacter-combination
Returns
visual representation

◆ GetInternTextData()

static eC_String ArabicUTFConverter::GetInternTextData ( const eC_String &  rkSourceString,
const eC_Bool &  bGlobalCodePresentation = true 
)
static

Get internal data of text

Parameters
rkSourceStringsource-string
bGlobalCodePresentationif global is active
Returns
internal text-data

◆ GetTextInUTF16()

static void ArabicUTFConverter::GetTextInUTF16 ( const eC_String &  kSource,
eC_UInt &  ruiLength 
)
static

Get the text in utf16-encoding

Parameters
kSourcesource-string
ruiLengthlength of string in bytes

◆ IsArabicChar()

static eC_Bool ArabicUTFConverter::IsArabicChar ( eC_UTF16  cCharacter)
static

check if provided character is arabic

Parameters
cCharactercharacter to check
Returns
true if arabic

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