LibreOffice Module i18npool (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
i18npool::TransliterationImpl Class Referencefinal

#include <transliterationImpl.hxx>

Inheritance diagram for i18npool::TransliterationImpl:
[legend]
Collaboration diagram for i18npool::TransliterationImpl:
[legend]

Public Member Functions

 TransliterationImpl (const css::uno::Reference< css::uno::XComponentContext > &xContext)
 
virtual ~TransliterationImpl () override
 
virtual OUString SAL_CALL getName () override
 
virtual sal_Int16 SAL_CALL getType () override
 
virtual void SAL_CALL loadModule (css::i18n::TransliterationModules modName, const css::lang::Locale &rLocale) override
 
virtual void SAL_CALL loadModuleNew (const css::uno::Sequence< css::i18n::TransliterationModulesNew > &modName, const css::lang::Locale &rLocale) override
 
virtual void SAL_CALL loadModuleByImplName (const OUString &implName, const css::lang::Locale &rLocale) override
 
virtual void SAL_CALL loadModulesByImplNames (const css::uno::Sequence< OUString > &modNamelist, const css::lang::Locale &rLocale) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getAvailableModules (const css::lang::Locale &rLocale, sal_Int16 sType) override
 
virtual OUString SAL_CALL transliterate (const OUString &inStr, sal_Int32 startPos, sal_Int32 nCount, css::uno::Sequence< sal_Int32 > &offset) override
 
virtual OUString SAL_CALL folding (const OUString &inStr, sal_Int32 startPos, sal_Int32 nCount, css::uno::Sequence< sal_Int32 > &offset) override
 
virtual OUString SAL_CALL transliterateString2String (const OUString &inStr, sal_Int32 startPos, sal_Int32 nCount) override
 
virtual OUString SAL_CALL transliterateChar2String (sal_Unicode inChar) override
 
virtual sal_Unicode SAL_CALL transliterateChar2Char (sal_Unicode inChar) override
 
virtual sal_Bool SAL_CALL equals (const OUString &str1, sal_Int32 pos1, sal_Int32 nCount1, sal_Int32 &nMatch1, const OUString &str2, sal_Int32 pos2, sal_Int32 nCount2, sal_Int32 &nMatch2) override
 
virtual css::uno::Sequence< OUString > SAL_CALL transliterateRange (const OUString &str1, const OUString &str2) override
 
virtual 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_Int32 SAL_CALL compareString (const OUString &s1, const OUString &s2) 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
 

Private Member Functions

bool loadModuleByName (std::u16string_view implName, css::uno::Reference< css::i18n::XExtendedTransliteration > &body, const css::lang::Locale &rLocale)
 
void clear ()
 
void loadBody (OUString const &implName, css::uno::Reference< css::i18n::XExtendedTransliteration > &body)
 
css::uno::Sequence< OUString > getRange (const css::uno::Sequence< OUString > &inStrs, sal_Int32 length, const sal_Int16 _nCascade)
 

Private Attributes

css::uno::Reference< css::i18n::XExtendedTransliteration > bodyCascade [maxCascade]
 
sal_Int16 numCascade
 
bool caseignoreOnly
 
css::uno::Reference< css::uno::XComponentContext > mxContext
 
css::uno::Reference< css::i18n::XLocaleData5 > mxLocaledata
 
css::uno::Reference< css::i18n::XExtendedTransliteration > caseignore
 

Detailed Description

Definition at line 31 of file transliterationImpl.hxx.

Constructor & Destructor Documentation

◆ TransliterationImpl()

i18npool::TransliterationImpl::TransliterationImpl ( const css::uno::Reference< css::uno::XComponentContext > &  xContext)

Definition at line 165 of file transliterationImpl.cxx.

References caseignoreOnly, mxContext, mxLocaledata, and numCascade.

◆ ~TransliterationImpl()

i18npool::TransliterationImpl::~TransliterationImpl ( )
overridevirtual

Definition at line 173 of file transliterationImpl.cxx.

References clear(), and mxLocaledata.

Member Function Documentation

◆ clear()

void i18npool::TransliterationImpl::clear ( )
private

◆ compareString()

sal_Int32 SAL_CALL i18npool::TransliterationImpl::compareString ( const OUString &  s1,
const OUString &  s2 
)
overridevirtual

Definition at line 580 of file transliterationImpl.cxx.

References caseignore, caseignoreOnly, and compareSubstring().

◆ compareSubstring()

sal_Int32 SAL_CALL i18npool::TransliterationImpl::compareSubstring ( const OUString &  s1,
sal_Int32  off1,
sal_Int32  len1,
const OUString &  s2,
sal_Int32  off2,
sal_Int32  len2 
)
overridevirtual

Definition at line 553 of file transliterationImpl.cxx.

References caseignore, caseignoreOnly, and transliterate().

Referenced by compareString().

◆ equals()

sal_Bool SAL_CALL i18npool::TransliterationImpl::equals ( const OUString &  str1,
sal_Int32  pos1,
sal_Int32  nCount1,
sal_Int32 &  nMatch1,
const OUString &  str2,
sal_Int32  pos2,
sal_Int32  nCount2,
sal_Int32 &  nMatch2 
)
overridevirtual

Definition at line 456 of file transliterationImpl.cxx.

References caseignore, caseignoreOnly, folding(), and i.

◆ folding()

OUString SAL_CALL i18npool::TransliterationImpl::folding ( const OUString &  inStr,
sal_Int32  startPos,
sal_Int32  nCount,
css::uno::Sequence< sal_Int32 > &  offset 
)
overridevirtual

Definition at line 364 of file transliterationImpl.cxx.

References begin, bodyCascade, end, from, i, nCount, numCascade, and to.

Referenced by equals().

◆ getAvailableModules()

Sequence< OUString > SAL_CALL i18npool::TransliterationImpl::getAvailableModules ( const css::lang::Locale &  rLocale,
sal_Int16  sType 
)
overridevirtual

◆ getImplementationName()

OUString SAL_CALL i18npool::TransliterationImpl::getImplementationName ( )
overridevirtual

Definition at line 655 of file transliterationImpl.cxx.

◆ getName()

OUString SAL_CALL i18npool::TransliterationImpl::getName ( )
overridevirtual

Definition at line 182 of file transliterationImpl.cxx.

References bodyCascade, and numCascade.

◆ getRange()

Sequence< OUString > i18npool::TransliterationImpl::getRange ( const css::uno::Sequence< OUString > &  inStrs,
sal_Int32  length,
const sal_Int16  _nCascade 
)
private
Exceptions
css::uno::RuntimeException

Definition at line 516 of file transliterationImpl.cxx.

References bodyCascade, comphelper::containerToSequence(), getRange(), length, and numCascade.

Referenced by getRange(), and transliterateRange().

◆ getSupportedServiceNames()

Sequence< OUString > SAL_CALL i18npool::TransliterationImpl::getSupportedServiceNames ( )
overridevirtual

Definition at line 667 of file transliterationImpl.cxx.

◆ getType()

sal_Int16 SAL_CALL i18npool::TransliterationImpl::getType ( )
overridevirtual

Definition at line 192 of file transliterationImpl.cxx.

References bodyCascade, and numCascade.

◆ loadBody()

void i18npool::TransliterationImpl::loadBody ( OUString const &  implName,
css::uno::Reference< css::i18n::XExtendedTransliteration > &  body 
)
private
Exceptions
css::uno::RuntimeException

Definition at line 610 of file transliterationImpl.cxx.

References implName, and mxContext.

Referenced by loadModuleByName().

◆ loadModule()

void SAL_CALL i18npool::TransliterationImpl::loadModule ( css::i18n::TransliterationModules  modName,
const css::lang::Locale &  rLocale 
)
overridevirtual

◆ loadModuleByImplName()

void SAL_CALL i18npool::TransliterationImpl::loadModuleByImplName ( const OUString &  implName,
const css::lang::Locale &  rLocale 
)
overridevirtual

Definition at line 275 of file transliterationImpl.cxx.

References bodyCascade, clear(), implName, loadModuleByName(), and numCascade.

◆ loadModuleByName()

bool i18npool::TransliterationImpl::loadModuleByName ( std::u16string_view  implName,
css::uno::Reference< css::i18n::XExtendedTransliteration > &  body,
const css::lang::Locale &  rLocale 
)
private

◆ loadModuleNew()

void SAL_CALL i18npool::TransliterationImpl::loadModuleNew ( const css::uno::Sequence< css::i18n::TransliterationModulesNew > &  modName,
const css::lang::Locale &  rLocale 
)
overridevirtual

◆ loadModulesByImplNames()

void SAL_CALL i18npool::TransliterationImpl::loadModulesByImplNames ( const css::uno::Sequence< OUString > &  modNamelist,
const css::lang::Locale &  rLocale 
)
overridevirtual

Definition at line 284 of file transliterationImpl.cxx.

References bodyCascade, clear(), loadModuleByName(), maxCascade, and numCascade.

◆ supportsService()

sal_Bool SAL_CALL i18npool::TransliterationImpl::supportsService ( const OUString &  ServiceName)
overridevirtual

Definition at line 661 of file transliterationImpl.cxx.

References cppu::supportsService().

◆ transliterate()

OUString SAL_CALL i18npool::TransliterationImpl::transliterate ( const OUString &  inStr,
sal_Int32  startPos,
sal_Int32  nCount,
css::uno::Sequence< sal_Int32 > &  offset 
)
overridevirtual

Definition at line 316 of file transliterationImpl.cxx.

References begin, bodyCascade, end, from, i, nCount, numCascade, and to.

Referenced by compareSubstring().

◆ transliterateChar2Char()

sal_Unicode SAL_CALL i18npool::TransliterationImpl::transliterateChar2Char ( sal_Unicode  inChar)
overridevirtual

Definition at line 446 of file transliterationImpl.cxx.

References bodyCascade, i, numCascade, and transliterateChar2Char().

Referenced by transliterateChar2Char().

◆ transliterateChar2String()

OUString SAL_CALL i18npool::TransliterationImpl::transliterateChar2String ( sal_Unicode  inChar)
overridevirtual

Definition at line 430 of file transliterationImpl.cxx.

References bodyCascade, i, numCascade, and transliterateString2String().

◆ transliterateRange()

Sequence< OUString > SAL_CALL i18npool::TransliterationImpl::transliterateRange ( const OUString &  str1,
const OUString &  str2 
)
overridevirtual

Definition at line 541 of file transliterationImpl.cxx.

References bodyCascade, getRange(), and numCascade.

◆ transliterateString2String()

OUString SAL_CALL i18npool::TransliterationImpl::transliterateString2String ( const OUString &  inStr,
sal_Int32  startPos,
sal_Int32  nCount 
)
overridevirtual

Member Data Documentation

◆ bodyCascade

css::uno::Reference< css::i18n::XExtendedTransliteration > i18npool::TransliterationImpl::bodyCascade[maxCascade]
private

◆ caseignore

css::uno::Reference< css::i18n::XExtendedTransliteration > i18npool::TransliterationImpl::caseignore
private

◆ caseignoreOnly

bool i18npool::TransliterationImpl::caseignoreOnly
private

◆ mxContext

css::uno::Reference< css::uno::XComponentContext > i18npool::TransliterationImpl::mxContext
private

Definition at line 89 of file transliterationImpl.hxx.

Referenced by loadBody().

◆ mxLocaledata

css::uno::Reference< css::i18n::XLocaleData5 > i18npool::TransliterationImpl::mxLocaledata
private

◆ numCascade

sal_Int16 i18npool::TransliterationImpl::numCascade
private

The documentation for this class was generated from the following files: