19#ifndef INCLUDED_I18NUTIL_UNICODE_HXX
20#define INCLUDED_I18NUTIL_UNICODE_HXX
22#include <com/sun/star/i18n/UnicodeScript.hpp>
24#include <rtl/ustrbuf.hxx>
25#include <unicode/uchar.h>
26#include <unicode/uscript.h>
33 css::i18n::UnicodeScript
from;
34 css::i18n::UnicodeScript
to;
41 static sal_Int16 getUnicodeType(
const sal_uInt32
ch);
43 sal_Int16 unknownType = 0);
44 static sal_Unicode getUnicodeScriptStart(css::i18n::UnicodeScript
type);
47 static sal_uInt32 GetMirroredChar(sal_uInt32);
61 return u_getIntPropertyValue(nCode, UCHAR_VARIATION_SELECTOR) != 0;
65 static sal_Int16 getScriptClassFromUScriptCode(UScriptCode eScript);
68 static OString getExemplarLanguageForUScriptCode(UScriptCode eScript);
72 static OUString formatPercent(
double dNumber,
const LanguageTag& rLangTag);
81 static sal_Int16 getScriptClassFromLanguageTag(
const LanguageTag& rLanguageTag);
99 bool mbAllowMoreChars =
true;
100 bool mbRequiresU =
false;
101 bool mbIsHexString =
false;
116 OUString StringToReplace();
117 OUString ReplacementString();
123 sal_uInt32 CharsToDelete();
OUStringBuffer maCombining
static bool isWhiteSpace(const sal_uInt32 ch)
static bool isSpace(const sal_uInt32 ch)
static bool isAlpha(const sal_uInt32 ch)
static bool isVariationSelector(sal_uInt32 nCode)
Check for Unicode variation sequence selectors.
static bool isControl(const sal_uInt32 ch)
#define I18NUTIL_DLLPUBLIC
ScriptTypeList const typeList[]
css::i18n::UnicodeScript to
css::i18n::UnicodeScript from