#include <collator_unicode.hxx>
|
| Collator_Unicode () |
|
virtual | ~Collator_Unicode () override |
|
sal_Int32 SAL_CALL | compareSubstring (const OUString &s1, sal_Int32 off1, sal_Int32 len1, const OUString &s2, sal_Int32 off2, sal_Int32 len2) override |
|
sal_Int32 SAL_CALL | compareString (const OUString &s1, const OUString &s2) override |
|
sal_Int32 SAL_CALL | loadCollatorAlgorithm (const OUString &impl, const css::lang::Locale &rLocale, sal_Int32 collatorOptions) override |
|
sal_Int32 SAL_CALL | loadDefaultCollator (const css::lang::Locale &, sal_Int32) override |
|
void SAL_CALL | loadCollatorAlgorithmWithEndUserOption (const OUString &, const css::lang::Locale &, const css::uno::Sequence< sal_Int32 > &) override |
|
css::uno::Sequence< OUString > SAL_CALL | listCollatorAlgorithms (const css::lang::Locale &) override |
|
css::uno::Sequence< sal_Int32 > SAL_CALL | listCollatorOptions (const OUString &) override |
|
virtual OUString SAL_CALL | getImplementationName () override |
|
virtual sal_Bool SAL_CALL | supportsService (const OUString &ServiceName) override |
|
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
|
|
std::unique_ptr< icu::RuleBasedCollator > | uca_base |
|
std::unique_ptr< icu::RuleBasedCollator > | collator |
|
oslModule | hModule |
|
Definition at line 34 of file collator_unicode.hxx.
◆ Collator_Unicode()
i18npool::Collator_Unicode::Collator_Unicode |
( |
| ) |
|
◆ ~Collator_Unicode()
i18npool::Collator_Unicode::~Collator_Unicode |
( |
| ) |
|
|
overridevirtual |
◆ compareString()
sal_Int32 SAL_CALL i18npool::Collator_Unicode::compareString |
( |
const OUString & |
s1, |
|
|
const OUString & |
s2 |
|
) |
| |
|
override |
◆ compareSubstring()
sal_Int32 SAL_CALL i18npool::Collator_Unicode::compareSubstring |
( |
const OUString & |
s1, |
|
|
sal_Int32 |
off1, |
|
|
sal_Int32 |
len1, |
|
|
const OUString & |
s2, |
|
|
sal_Int32 |
off2, |
|
|
sal_Int32 |
len2 |
|
) |
| |
|
override |
◆ getImplementationName()
OUString SAL_CALL i18npool::Collator_Unicode::getImplementationName |
( |
| ) |
|
|
overridevirtual |
◆ getSupportedServiceNames()
Sequence< OUString > SAL_CALL i18npool::Collator_Unicode::getSupportedServiceNames |
( |
| ) |
|
|
overridevirtual |
◆ listCollatorAlgorithms()
css::uno::Sequence< OUString > SAL_CALL i18npool::Collator_Unicode::listCollatorAlgorithms |
( |
const css::lang::Locale & |
| ) |
|
|
inlineoverride |
◆ listCollatorOptions()
css::uno::Sequence< sal_Int32 > SAL_CALL i18npool::Collator_Unicode::listCollatorOptions |
( |
const OUString & |
| ) |
|
|
inlineoverride |
◆ loadCollatorAlgorithm()
sal_Int32 SAL_CALL i18npool::Collator_Unicode::loadCollatorAlgorithm |
( |
const OUString & |
impl, |
|
|
const css::lang::Locale & |
rLocale, |
|
|
sal_Int32 |
collatorOptions |
|
) |
| |
|
override |
ICU collators are loaded using a locale only. ICU uses Variant as collation algorithm name (like de__PHONEBOOK locale), note the empty territory (Country) designator in this special case here. But sometimes the mapping fails, eg for German (from Germany) phonebook, we'll have "de_DE_PHONEBOOK" this one won't be remapping to collation keyword specifiers "de@collation=phonebook" See http://userguide.icu-project.org/locale#TOC-Variant-code, Level 2 canonicalization, 8. So let variant empty and use the fourth arg of icuLocale "keywords" See LanguageTagIcu::getIcuLocale from i18nlangtag/source/languagetag/languagetagicu.cxx The icu::Locale constructor changes the algorithm name to uppercase itself, so we don't have to bother with that.
Definition at line 141 of file collator_unicode.cxx.
References aBuf, collator, i18npool::LocaleDataImpl::get(), LanguageTagIcu::getIcuLocale(), hModule, pData, SAL_DLLEXTENSION, SAL_DLLPREFIX, SAL_WARN, i18npool::thisModule(), u, and uca_base.
◆ loadCollatorAlgorithmWithEndUserOption()
void SAL_CALL i18npool::Collator_Unicode::loadCollatorAlgorithmWithEndUserOption |
( |
const OUString & |
, |
|
|
const css::lang::Locale & |
, |
|
|
const css::uno::Sequence< sal_Int32 > & |
|
|
) |
| |
|
inlineoverride |
◆ loadDefaultCollator()
sal_Int32 SAL_CALL i18npool::Collator_Unicode::loadDefaultCollator |
( |
const css::lang::Locale & |
, |
|
|
sal_Int32 |
|
|
) |
| |
|
inlineoverride |
◆ supportsService()
sal_Bool SAL_CALL i18npool::Collator_Unicode::supportsService |
( |
const OUString & |
ServiceName | ) |
|
|
overridevirtual |
◆ collator
std::unique_ptr<icu::RuleBasedCollator> i18npool::Collator_Unicode::collator |
|
private |
◆ hModule
oslModule i18npool::Collator_Unicode::hModule |
|
private |
◆ uca_base
std::unique_ptr<icu::RuleBasedCollator> i18npool::Collator_Unicode::uca_base |
|
private |
The documentation for this class was generated from the following files: