LibreOffice Module i18nutil (master) 1
Static Public Member Functions | List of all members
unicode Class Reference

#include <unicode.hxx>

Static Public Member Functions

static sal_Int16 getUnicodeType (const sal_uInt32 ch)
 
static sal_Int16 getUnicodeScriptType (const sal_Unicode ch, const ScriptTypeList *typeList, sal_Int16 unknownType=0)
 
static sal_Unicode getUnicodeScriptStart (css::i18n::UnicodeScript type)
 
static sal_Unicode getUnicodeScriptEnd (css::i18n::UnicodeScript type)
 
static sal_uInt8 getUnicodeDirection (const sal_Unicode ch)
 
static sal_uInt32 GetMirroredChar (sal_uInt32)
 
static bool isControl (const sal_uInt32 ch)
 
static bool isAlpha (const sal_uInt32 ch)
 
static bool isSpace (const sal_uInt32 ch)
 
static bool isWhiteSpace (const sal_uInt32 ch)
 
static bool isVariationSelector (sal_uInt32 nCode)
 Check for Unicode variation sequence selectors. More...
 
static sal_Int16 getScriptClassFromUScriptCode (UScriptCode eScript)
 
static OString getExemplarLanguageForUScriptCode (UScriptCode eScript)
 
static OUString formatPercent (double dNumber, const LanguageTag &rLangTag)
 
static sal_Int16 getScriptClassFromLanguageTag (const LanguageTag &rLanguageTag)
 Map a LanguageTag's language ISO 639 code or script ISO 15924 code or language-script or locale to Latin/Asian/Complex/Weak. More...
 

Detailed Description

Definition at line 38 of file unicode.hxx.

Member Function Documentation

◆ formatPercent()

OUString unicode::formatPercent ( double  dNumber,
const LanguageTag rLangTag 
)
static

◆ getExemplarLanguageForUScriptCode()

OString unicode::getExemplarLanguageForUScriptCode ( UScriptCode  eScript)
static

Definition at line 431 of file unicode.cxx.

◆ GetMirroredChar()

sal_uInt32 unicode::GetMirroredChar ( sal_uInt32  nChar)
static

Definition at line 190 of file unicode.cxx.

◆ getScriptClassFromLanguageTag()

sal_Int16 unicode::getScriptClassFromLanguageTag ( const LanguageTag rLanguageTag)
static

Map a LanguageTag's language ISO 639 code or script ISO 15924 code or language-script or locale to Latin/Asian/Complex/Weak.

If more than one script is used with a language(-country) tag then the first (default) script is mapped for that language.

Returns
a css::i18n::ScriptType value.

Definition at line 403 of file unicode.cxx.

References aBuf, aName, LanguageTag::getCountry(), LanguageTag::getLanguage(), LanguageTag::getScript(), getScriptClassFromUScriptCode(), LanguageTag::hasScript(), and OUStringToOString().

◆ getScriptClassFromUScriptCode()

sal_Int16 unicode::getScriptClassFromUScriptCode ( UScriptCode  eScript)
static

Definition at line 233 of file unicode.cxx.

Referenced by getScriptClassFromLanguageTag().

◆ getUnicodeDirection()

sal_uInt8 unicode::getUnicodeDirection ( const sal_Unicode  ch)
static

◆ getUnicodeScriptEnd()

sal_Unicode unicode::getUnicodeScriptEnd ( css::i18n::UnicodeScript  type)
static

Definition at line 65 of file unicode.cxx.

References type, UnicodeScriptType, and UnicodeScriptTypeTo.

◆ getUnicodeScriptStart()

sal_Unicode unicode::getUnicodeScriptStart ( css::i18n::UnicodeScript  type)
static

Definition at line 60 of file unicode.cxx.

References type, UnicodeScriptType, and UnicodeScriptTypeFrom.

◆ getUnicodeScriptType()

sal_Int16 unicode::getUnicodeScriptType ( const sal_Unicode  ch,
const ScriptTypeList typeList,
sal_Int16  unknownType = 0 
)
static

Definition at line 55 of file unicode.cxx.

References ch, getScriptType(), and typeList.

◆ getUnicodeType()

sal_Int16 unicode::getUnicodeType ( const sal_uInt32  ch)
static

Definition at line 70 of file unicode.cxx.

References ch.

Referenced by ToggleUnicodeCodepoint::AllowMoreInput().

◆ isAlpha()

static bool unicode::isAlpha ( const sal_uInt32  ch)
static

◆ isControl()

static bool unicode::isControl ( const sal_uInt32  ch)
static

◆ isSpace()

static bool unicode::isSpace ( const sal_uInt32  ch)
static

Referenced by IsType().

◆ isVariationSelector()

static bool unicode::isVariationSelector ( sal_uInt32  nCode)
inlinestatic

Check for Unicode variation sequence selectors.

Parameters
nCodeA Unicode code point.
Returns
True if code is a Unicode variation sequence selector.

Definition at line 59 of file unicode.hxx.

◆ isWhiteSpace()

static bool unicode::isWhiteSpace ( const sal_uInt32  ch)
static

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