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< lookupTableItemlookupTable
 
std::optional< 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

◆ CharacterClassificationImpl()

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

◆ ~CharacterClassificationImpl()

i18npool::CharacterClassificationImpl::~CharacterClassificationImpl ( )
overridevirtual

Definition at line 40 of file characterclassificationImpl.cxx.

Member Function Documentation

◆ createLocaleSpecificCharacterClassification()

bool i18npool::CharacterClassificationImpl::createLocaleSpecificCharacterClassification ( const OUString &  serviceName,
const css::lang::Locale &  rLocale 
)
private

◆ getCharacterDirection()

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

Definition at line 74 of file characterclassificationImpl.cxx.

References nPos, Text, and xUCI.

◆ getCharacterType()

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

◆ getImplementationName()

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

Definition at line 192 of file characterclassificationImpl.cxx.

◆ getLocaleSpecificCharacterClassification()

Reference< XCharacterClassification > const & i18npool::CharacterClassificationImpl::getLocaleSpecificCharacterClassification ( const css::lang::Locale &  rLocale)
private

◆ getScript()

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

Definition at line 82 of file characterclassificationImpl.cxx.

References nPos, Text, and xUCI.

◆ getStringType()

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

◆ getSupportedServiceNames()

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

Definition at line 204 of file characterclassificationImpl.cxx.

◆ getType()

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

Definition at line 66 of file characterclassificationImpl.cxx.

References nPos, Text, and xUCI.

◆ parseAnyToken()

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

◆ parsePredefinedToken()

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

◆ supportsService()

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

Definition at line 198 of file characterclassificationImpl.cxx.

References cppu::supportsService().

◆ toLower()

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

◆ toTitle()

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

◆ toUpper()

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

Member Data Documentation

◆ cachedItem

std::optional<lookupTableItem> i18npool::CharacterClassificationImpl::cachedItem
private

◆ lookupTable

std::vector<lookupTableItem> i18npool::CharacterClassificationImpl::lookupTable
private

◆ m_xContext

css::uno::Reference< css::uno::XComponentContext > i18npool::CharacterClassificationImpl::m_xContext
private

◆ xUCI

css::uno::Reference< XCharacterClassification > i18npool::CharacterClassificationImpl::xUCI
private

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