64 const OUString& rAlgorithm, sal_Int32 collatorOptions )
67 collator->loadCollatorAlgorithm(rAlgorithm, rLocale, collatorOptions);
74 const OUString&,
const lang::Locale& )
76 sal_uInt32 indexChar=rIndexEntry.iterateCodePoints(&
o3tl::temporary(sal_Int32(0)), 0);
77 return OUString(&indexChar, 1);
81 const OUString& rIndexEntry1,
const OUString&,
const lang::Locale&,
82 const OUString& rIndexEntry2,
const OUString&,
const lang::Locale& )
84 return sal::static_int_cast< sal_Int16 >(
85 collator->compareString(rIndexEntry1, rIndexEntry2));
90 const lang::Locale& rLocale,
const OUString& )
92 return getIndexKey(rIndexEntry, rIndexEntry, rLocale);
103 const OUString& PhoneticEntry,
const lang::Locale& rLocale )
const
110 if (
usePhonetic && !PhoneticEntry.isEmpty() && rLocale.Language ==
aLocale.Language &&
111 rLocale.Country ==
aLocale.Country && rLocale.Variant ==
aLocale.Variant)
112 return PhoneticEntry;
129Sequence< OUString > SAL_CALL
rtl::Reference< CollatorImpl > collator
virtual sal_Bool SAL_CALL usePhoneticEntry(const css::lang::Locale &rLocale) override
const char * implementationName
IndexEntrySupplier_Common(const css::uno::Reference< css::uno::XComponentContext > &rxContext)
virtual ~IndexEntrySupplier_Common() override
virtual css::uno::Sequence< OUString > SAL_CALL getAlgorithmList(const css::lang::Locale &rLocale) override
virtual OUString SAL_CALL getPhoneticCandidate(const OUString &IndexEntry, const css::lang::Locale &rLocale) override
virtual sal_Int16 SAL_CALL compareIndexEntry(const OUString &IndexEntry1, const OUString &PhoneticEntry1, const css::lang::Locale &rLocale1, const OUString &IndexEntry2, const OUString &PhoneticEntry2, const css::lang::Locale &rLocale2) override
virtual OUString SAL_CALL getIndexKey(const OUString &IndexEntry, const OUString &PhoneticEntry, const css::lang::Locale &rLocale) override
virtual sal_Bool SAL_CALL loadAlgorithm(const css::lang::Locale &rLocale, const OUString &SortAlgorithm, sal_Int32 collatorOptions) override
css::lang::Locale aLocale
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual OUString SAL_CALL getIndexCharacter(const OUString &rIndexEntry, const css::lang::Locale &rLocale, const OUString &rSortAlgorithm) override
virtual OUString SAL_CALL getIndexFollowPageWord(sal_Bool MorePages, const css::lang::Locale &rLocale) override
const OUString & getEntry(const OUString &IndexEntry, const OUString &PhoneticEntry, const css::lang::Locale &rLocale) const
virtual OUString SAL_CALL getImplementationName() override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual css::uno::Sequence< css::lang::Locale > SAL_CALL getLocaleList() override
static rtl::Reference< LocaleDataImpl > get()
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
Constant values shared between i18npool and, for example, the number formatter.
constexpr T & temporary(T &&x)