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 (const OUString &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 32 of file transliterationImpl.hxx.

Constructor & Destructor Documentation

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

Definition at line 139 of file transliterationImpl.cxx.

References caseignoreOnly, mxContext, mxLocaledata, and numCascade.

i18npool::TransliterationImpl::~TransliterationImpl ( )
overridevirtual

Definition at line 147 of file transliterationImpl.cxx.

References clear(), and mxLocaledata.

Member Function Documentation

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

Definition at line 556 of file transliterationImpl.cxx.

References caseignore, caseignoreOnly, and 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 529 of file transliterationImpl.cxx.

References caseignore, caseignoreOnly, and transliterate().

Referenced by compareString().

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 432 of file transliterationImpl.cxx.

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

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 340 of file transliterationImpl.cxx.

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

Referenced by equals().

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

Definition at line 631 of file transliterationImpl.cxx.

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

Definition at line 156 of file transliterationImpl.cxx.

References bodyCascade, and numCascade.

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 492 of file transliterationImpl.cxx.

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

Referenced by transliterateRange().

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

Definition at line 643 of file transliterationImpl.cxx.

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

Definition at line 166 of file transliterationImpl.cxx.

References bodyCascade, and numCascade.

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

Definition at line 586 of file transliterationImpl.cxx.

References implName, and mxContext.

Referenced by loadModuleByName().

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

Definition at line 249 of file transliterationImpl.cxx.

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

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

Definition at line 602 of file transliterationImpl.cxx.

References caseignore, caseignoreOnly, i, implName, loadBody(), tm, and TRLT_IMPLNAME_PREFIX.

Referenced by getAvailableModules(), loadModule(), loadModuleByImplName(), loadModuleNew(), and loadModulesByImplNames().

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

Definition at line 258 of file transliterationImpl.cxx.

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

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

Definition at line 637 of file transliterationImpl.cxx.

References cppu::supportsService().

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 290 of file transliterationImpl.cxx.

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

Referenced by compareSubstring().

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

Definition at line 422 of file transliterationImpl.cxx.

References bodyCascade, i, and numCascade.

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

Definition at line 406 of file transliterationImpl.cxx.

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

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

Definition at line 517 of file transliterationImpl.cxx.

References bodyCascade, getRange(), and numCascade.

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

Definition at line 390 of file transliterationImpl.cxx.

References bodyCascade, i, and numCascade.

Referenced by transliterateChar2String().

Member Data Documentation

css::uno::Reference< css::i18n::XExtendedTransliteration > i18npool::TransliterationImpl::bodyCascade[maxCascade]
private
css::uno::Reference< css::i18n::XExtendedTransliteration > i18npool::TransliterationImpl::caseignore
private
bool i18npool::TransliterationImpl::caseignoreOnly
private
css::uno::Reference< css::uno::XComponentContext > i18npool::TransliterationImpl::mxContext
private

Definition at line 90 of file transliterationImpl.hxx.

Referenced by loadBody().

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

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