21#include <com/sun/star/i18n/XCollator.hpp>
22#include <com/sun/star/lang/XServiceInfo.hpp>
24#include <osl/module.h>
26#include <unicode/tblcoll.h>
34class Collator_Unicode final :
public cppu::WeakImplHelper < css::i18n::XCollator, css::lang::XServiceInfo >
42 sal_Int32 SAL_CALL
compareSubstring(
const OUString& s1, sal_Int32 off1, sal_Int32 len1,
43 const OUString& s2, sal_Int32 off2, sal_Int32 len2)
override;
45 sal_Int32 SAL_CALL
compareString(
const OUString& s1,
const OUString& s2)
override;
48 sal_Int32 collatorOptions)
override;
52 sal_Int32 SAL_CALL
loadDefaultCollator(
const css::lang::Locale&, sal_Int32)
override {
throw css::uno::RuntimeException();}
54 const css::uno::Sequence< sal_Int32 >&)
override {
throw css::uno::RuntimeException();}
55 css::uno::Sequence< OUString > SAL_CALL
listCollatorAlgorithms(
const css::lang::Locale&)
override {
throw css::uno::RuntimeException();}
56 css::uno::Sequence< sal_Int32 > SAL_CALL
listCollatorOptions(
const OUString& )
override {
throw css::uno::RuntimeException();}
65#ifndef DISABLE_DYNLOADING
sal_Int32 SAL_CALL loadDefaultCollator(const css::lang::Locale &, sal_Int32) override
virtual ~Collator_Unicode() override
std::unique_ptr< icu::RuleBasedCollator > uca_base
void SAL_CALL loadCollatorAlgorithmWithEndUserOption(const OUString &, const css::lang::Locale &, const css::uno::Sequence< sal_Int32 > &) override
css::uno::Sequence< sal_Int32 > SAL_CALL listCollatorOptions(const OUString &) override
virtual OUString SAL_CALL getImplementationName() 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
std::unique_ptr< icu::RuleBasedCollator > collator
sal_Int32 SAL_CALL compareSubstring(const OUString &s1, sal_Int32 off1, sal_Int32 len1, const OUString &s2, sal_Int32 off2, sal_Int32 len2) override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
css::uno::Sequence< OUString > SAL_CALL listCollatorAlgorithms(const css::lang::Locale &) override
Constant values shared between i18npool and, for example, the number formatter.