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

#include <characterclassificationImpl.hxx>

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

Classes

struct  lookupTableItem
 

Public Member Functions

 CharacterClassificationImpl (const css::uno::Reference< css::uno::XComponentContext > &rxContext)
 
virtual ~CharacterClassificationImpl () override
 
virtual OUString SAL_CALL toUpper (const OUString &Text, sal_Int32 nPos, sal_Int32 nCount, const css::lang::Locale &rLocale) override
 
virtual OUString SAL_CALL toLower (const OUString &Text, sal_Int32 nPos, sal_Int32 nCount, const css::lang::Locale &rLocale) override
 
virtual OUString SAL_CALL toTitle (const OUString &Text, sal_Int32 nPos, sal_Int32 nCount, const css::lang::Locale &rLocale) override
 
virtual sal_Int16 SAL_CALL getType (const OUString &Text, sal_Int32 nPos) override
 
virtual sal_Int16 SAL_CALL getCharacterDirection (const OUString &Text, sal_Int32 nPos) override
 
virtual sal_Int16 SAL_CALL getScript (const OUString &Text, sal_Int32 nPos) override
 
virtual sal_Int32 SAL_CALL getCharacterType (const OUString &text, sal_Int32 nPos, const css::lang::Locale &rLocale) override
 
virtual sal_Int32 SAL_CALL getStringType (const OUString &text, sal_Int32 nPos, sal_Int32 nCount, const css::lang::Locale &rLocale) override
 
virtual css::i18n::ParseResult SAL_CALL parseAnyToken (const OUString &Text, sal_Int32 nPos, const css::lang::Locale &rLocale, sal_Int32 nStartCharFlags, const OUString &userDefinedCharactersStart, sal_Int32 nContCharFlags, const OUString &userDefinedCharactersCont) override
 
virtual css::i18n::ParseResult SAL_CALL parsePredefinedToken (sal_Int32 nTokenType, const OUString &Text, sal_Int32 nPos, const css::lang::Locale &rLocale, sal_Int32 nStartCharFlags, const OUString &userDefinedCharactersStart, sal_Int32 nContCharFlags, const OUString &userDefinedCharactersCont) 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

css::uno::Reference< XCharacterClassification > const & getLocaleSpecificCharacterClassification (const css::lang::Locale &rLocale)
 
bool createLocaleSpecificCharacterClassification (const OUString &serviceName, const css::lang::Locale &rLocale)
 

Private Attributes

std::vector< std::unique_ptr< lookupTableItem > > lookupTable
 
lookupTableItemcachedItem
 
css::uno::Reference< css::uno::XComponentContext > m_xContext
 
css::uno::Reference< XCharacterClassification > xUCI
 

Detailed Description

Definition at line 32 of file characterclassificationImpl.hxx.

Constructor & Destructor Documentation

i18npool::CharacterClassificationImpl::CharacterClassificationImpl ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext)
i18npool::CharacterClassificationImpl::~CharacterClassificationImpl ( )
overridevirtual

Definition at line 39 of file characterclassificationImpl.cxx.

Member Function Documentation

bool i18npool::CharacterClassificationImpl::createLocaleSpecificCharacterClassification ( const OUString &  serviceName,
const css::lang::Locale &  rLocale 
)
private
sal_Int16 SAL_CALL i18npool::CharacterClassificationImpl::getCharacterDirection ( const OUString &  Text,
sal_Int32  nPos 
)
overridevirtual

Definition at line 73 of file characterclassificationImpl.cxx.

References xUCI.

sal_Int32 SAL_CALL i18npool::CharacterClassificationImpl::getCharacterType ( const OUString &  text,
sal_Int32  nPos,
const css::lang::Locale &  rLocale 
)
overridevirtual
OUString SAL_CALL i18npool::CharacterClassificationImpl::getImplementationName ( )
overridevirtual

Definition at line 191 of file characterclassificationImpl.cxx.

Reference< XCharacterClassification > const & i18npool::CharacterClassificationImpl::getLocaleSpecificCharacterClassification ( const css::lang::Locale &  rLocale)
private
sal_Int16 SAL_CALL i18npool::CharacterClassificationImpl::getScript ( const OUString &  Text,
sal_Int32  nPos 
)
overridevirtual

Definition at line 81 of file characterclassificationImpl.cxx.

References xUCI.

sal_Int32 SAL_CALL i18npool::CharacterClassificationImpl::getStringType ( const OUString &  text,
sal_Int32  nPos,
sal_Int32  nCount,
const css::lang::Locale &  rLocale 
)
overridevirtual
Sequence< OUString > SAL_CALL i18npool::CharacterClassificationImpl::getSupportedServiceNames ( )
overridevirtual

Definition at line 203 of file characterclassificationImpl.cxx.

sal_Int16 SAL_CALL i18npool::CharacterClassificationImpl::getType ( const OUString &  Text,
sal_Int32  nPos 
)
overridevirtual

Definition at line 65 of file characterclassificationImpl.cxx.

References xUCI.

ParseResult SAL_CALL i18npool::CharacterClassificationImpl::parseAnyToken ( const OUString &  Text,
sal_Int32  nPos,
const css::lang::Locale &  rLocale,
sal_Int32  nStartCharFlags,
const OUString &  userDefinedCharactersStart,
sal_Int32  nContCharFlags,
const OUString &  userDefinedCharactersCont 
)
overridevirtual
ParseResult SAL_CALL i18npool::CharacterClassificationImpl::parsePredefinedToken ( sal_Int32  nTokenType,
const OUString &  Text,
sal_Int32  nPos,
const css::lang::Locale &  rLocale,
sal_Int32  nStartCharFlags,
const OUString &  userDefinedCharactersStart,
sal_Int32  nContCharFlags,
const OUString &  userDefinedCharactersCont 
)
overridevirtual
sal_Bool SAL_CALL i18npool::CharacterClassificationImpl::supportsService ( const OUString &  ServiceName)
overridevirtual

Definition at line 197 of file characterclassificationImpl.cxx.

References cppu::supportsService().

OUString SAL_CALL i18npool::CharacterClassificationImpl::toLower ( const OUString &  Text,
sal_Int32  nPos,
sal_Int32  nCount,
const css::lang::Locale &  rLocale 
)
overridevirtual
OUString SAL_CALL i18npool::CharacterClassificationImpl::toTitle ( const OUString &  Text,
sal_Int32  nPos,
sal_Int32  nCount,
const css::lang::Locale &  rLocale 
)
overridevirtual
OUString SAL_CALL i18npool::CharacterClassificationImpl::toUpper ( const OUString &  Text,
sal_Int32  nPos,
sal_Int32  nCount,
const css::lang::Locale &  rLocale 
)
overridevirtual

Member Data Documentation

lookupTableItem* i18npool::CharacterClassificationImpl::cachedItem
private
std::vector<std::unique_ptr<lookupTableItem> > i18npool::CharacterClassificationImpl::lookupTable
private
css::uno::Reference< css::uno::XComponentContext > i18npool::CharacterClassificationImpl::m_xContext
private
css::uno::Reference< XCharacterClassification > i18npool::CharacterClassificationImpl::xUCI
private

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