LibreOffice Module i18npool (master) 1
Public Member Functions | Protected Attributes | Private Member Functions | List of all members
i18npool::transliteration_Numeric Class Reference

#include <transliteration_Numeric.hxx>

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

Public Member Functions

virtual OUString transliterateImpl (const OUString &inStr, sal_Int32 startPos, sal_Int32 nCount, css::uno::Sequence< sal_Int32 > *pOffset) override
 
virtual sal_Unicode SAL_CALL transliterateChar2Char (sal_Unicode inChar) override
 
virtual sal_Int16 SAL_CALL getType () override
 
virtual OUString foldingImpl (const OUString &inStr, sal_Int32 startPos, sal_Int32 nCount, css::uno::Sequence< sal_Int32 > *pOffset) 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
 
- Public Member Functions inherited from i18npool::transliteration_commonclass
 transliteration_commonclass ()
 
void SAL_CALL loadModule (css::i18n::TransliterationModules modName, const css::lang::Locale &rLocale) override
 
void SAL_CALL loadModuleNew (const css::uno::Sequence< css::i18n::TransliterationModulesNew > &modName, const css::lang::Locale &rLocale) override
 
void SAL_CALL loadModuleByImplName (const OUString &implName, const css::lang::Locale &rLocale) override
 
void SAL_CALL loadModulesByImplNames (const css::uno::Sequence< OUString > &modNamelist, const css::lang::Locale &rLocale) override
 
css::uno::Sequence< OUString > SAL_CALL getAvailableModules (const css::lang::Locale &rLocale, sal_Int16 sType) override
 
virtual OUString SAL_CALL getName () override
 
virtual sal_Int16 SAL_CALL getType () override=0
 
virtual OUString SAL_CALL transliterate (const OUString &inStr, sal_Int32 startPos, sal_Int32 nCount, css::uno::Sequence< sal_Int32 > &offset) override final
 
virtual OUString SAL_CALL folding (const OUString &inStr, sal_Int32 startPos, sal_Int32 nCount, css::uno::Sequence< sal_Int32 > &offset) override final
 
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=0
 
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=0
 
virtual css::uno::Sequence< OUString > SAL_CALL transliterateRange (const OUString &str1, const OUString &str2) override=0
 
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
 

Protected Attributes

sal_Int16 nNativeNumberMode
 
sal_Int16 tableSize
 
const sal_Unicodetable
 
bool recycleSymbol
 
- Protected Attributes inherited from i18npool::transliteration_commonclass
css::lang::Locale aLocale
 
const char * transliterationName
 
const char * implementationName
 

Private Member Functions

OUString transliterateBullet (std::u16string_view inStr, sal_Int32 startPos, sal_Int32 nCount, css::uno::Sequence< sal_Int32 > *pOffset) const
 

Additional Inherited Members

virtual OUString transliterateImpl (const OUString &inStr, sal_Int32 startPos, sal_Int32 nCount, css::uno::Sequence< sal_Int32 > *pOffset)=0
 
virtual OUString foldingImpl (const OUString &inStr, sal_Int32 startPos, sal_Int32 nCount, css::uno::Sequence< sal_Int32 > *pOffset)=0
 

Detailed Description

Definition at line 25 of file transliteration_Numeric.hxx.

Member Function Documentation

◆ equals()

sal_Bool SAL_CALL i18npool::transliteration_Numeric::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

Implements i18npool::transliteration_commonclass.

Definition at line 45 of file transliteration_Numeric.cxx.

◆ foldingImpl()

OUString i18npool::transliteration_Numeric::foldingImpl ( const OUString &  inStr,
sal_Int32  startPos,
sal_Int32  nCount,
css::uno::Sequence< sal_Int32 > *  pOffset 
)
overridevirtual

Implements i18npool::transliteration_commonclass.

Definition at line 39 of file transliteration_Numeric.cxx.

◆ getType()

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

Implements i18npool::transliteration_commonclass.

Definition at line 33 of file transliteration_Numeric.cxx.

◆ transliterateBullet()

OUString i18npool::transliteration_Numeric::transliterateBullet ( std::u16string_view  inStr,
sal_Int32  startPos,
sal_Int32  nCount,
css::uno::Sequence< sal_Int32 > *  pOffset 
) const
private
Exceptions
css::uno::RuntimeException

Definition at line 61 of file transliteration_Numeric.cxx.

References i, isNumber, nCount, NUMBER_ZERO, recycleSymbol, table, and tableSize.

Referenced by transliterateImpl().

◆ transliterateChar2Char()

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

◆ transliterateImpl()

OUString i18npool::transliteration_Numeric::transliterateImpl ( const OUString &  inStr,
sal_Int32  startPos,
sal_Int32  nCount,
css::uno::Sequence< sal_Int32 > *  pOffset 
)
overridevirtual

◆ transliterateRange()

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

Implements i18npool::transliteration_commonclass.

Definition at line 51 of file transliteration_Numeric.cxx.

Member Data Documentation

◆ nNativeNumberMode

sal_Int16 i18npool::transliteration_Numeric::nNativeNumberMode
protected

Definition at line 45 of file transliteration_Numeric.hxx.

Referenced by transliterateChar2Char(), and transliterateImpl().

◆ recycleSymbol

bool i18npool::transliteration_Numeric::recycleSymbol
protected

Definition at line 48 of file transliteration_Numeric.hxx.

Referenced by transliterateBullet(), and transliterateChar2Char().

◆ table

const sal_Unicode* i18npool::transliteration_Numeric::table
protected

Definition at line 47 of file transliteration_Numeric.hxx.

Referenced by transliterateBullet(), and transliterateChar2Char().

◆ tableSize

sal_Int16 i18npool::transliteration_Numeric::tableSize
protected

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