20#include <com/sun/star/i18n/TransliterationType.hpp>
54 return TransliterationType::IGNORE;
58Sequence< OUString > SAL_CALL
61 if (str1.getLength() != 1 || str2.getLength() != 1)
67 u2l->loadModule(TransliterationModules(0),
aLocale);
68 l2u->loadModule(TransliterationModules(0),
aLocale);
70 OUString l1 = u2l->transliterateString2String(str1, 0, str1.getLength());
71 OUString u1 = l2u->transliterateString2String(str1, 0, str1.getLength());
72 OUString l2 = u2l->transliterateString2String(str2, 0, str2.getLength());
73 OUString u2 = l2u->transliterateString2String(str2, 0, str2.getLength());
75 if ((l1 == u1) && (l2 == u2)) {
78 return { l1, l2, u1, u2 };
84 const OUString& str1, sal_Int32 pos1, sal_Int32 nCount1, sal_Int32& nMatch1,
85 const OUString& str2, sal_Int32 pos2, sal_Int32 nCount2, sal_Int32& nMatch2)
87 return (
compare(str1, pos1, nCount1, nMatch1, str2, pos2, nCount2, nMatch2) == 0);
92 const OUString& str1, sal_Int32 off1, sal_Int32 len1,
93 const OUString& str2, sal_Int32 off2, sal_Int32 len2)
95 sal_Int32 nMatch1, nMatch2;
96 return compare(str1, off1, len1, nMatch1, str2, off2, len2, nMatch2);
102 const OUString& str1,
103 const OUString& str2)
105 sal_Int32 nMatch1, nMatch2;
106 return compare(str1, 0, str1.getLength(), nMatch1, str2, 0, str2.getLength(), nMatch2);
111 const OUString& str1, sal_Int32 pos1, sal_Int32 nCount1, sal_Int32& nMatch1,
112 const OUString& str2, sal_Int32 pos2, sal_Int32 nCount2, sal_Int32& nMatch2)
118 nMatch1 = nMatch2 = 0;
120#define NOT_END_OF_STR1 (nMatch1 < nCount1 || e1.current < e1.element.nmap)
121#define NOT_END_OF_STR2 (nMatch2 < nCount2 || e2.current < e2.element.nmap)
127 nMatch1--; nMatch2--;
128 return c1 > c2 ? 1 : -1;
138extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface *
140 css::uno::XComponentContext *,
141 css::uno::Sequence<css::uno::Any>
const &)
sal_Int32 SAL_CALL compareString(const OUString &s1, const OUString &s2) override
void SAL_CALL loadModule(css::i18n::TransliterationModules modName, const css::lang::Locale &rLocale) override
css::uno::Sequence< OUString > SAL_CALL transliterateRange(const OUString &str1, const OUString &str2) override
Transliteration_caseignore()
sal_Int32 compare(const OUString &str1, sal_Int32 pos1, sal_Int32 nCount1, sal_Int32 &nMatch1, const OUString &str2, sal_Int32 pos2, sal_Int32 nCount2, sal_Int32 &nMatch2)
TransliterationFlags moduleLoaded
sal_Bool SAL_CALL equals(const OUString &str1, sal_Int32 pos1, sal_Int32 nCount1, sal_Int32 &nMatch1, const OUString &src2, sal_Int32 pos2, sal_Int32 nCount2, sal_Int32 &nMatch2) override
sal_Int16 SAL_CALL getType() 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
css::lang::Locale aLocale
const char * transliterationName
const char * implementationName
Constant values shared between i18npool and, for example, the number formatter.
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * com_sun_star_i18n_Transliteration_IGNORE_CASE_get_implementation(css::uno::XComponentContext *, css::uno::Sequence< css::uno::Any > const &)