LibreOffice Module i18npool (master) 1
|
#include <characterclassificationImpl.hxx>
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< lookupTableItem > | lookupTable |
std::optional< lookupTableItem > | cachedItem |
css::uno::Reference< css::uno::XComponentContext > | m_xContext |
css::uno::Reference< XCharacterClassification > | xUCI |
Definition at line 32 of file characterclassificationImpl.hxx.
i18npool::CharacterClassificationImpl::CharacterClassificationImpl | ( | const css::uno::Reference< css::uno::XComponentContext > & | rxContext | ) |
Definition at line 32 of file characterclassificationImpl.cxx.
References cachedItem, createLocaleSpecificCharacterClassification(), Locale, m_xContext, u, and xUCI.
|
overridevirtual |
Definition at line 40 of file characterclassificationImpl.cxx.
|
private |
Definition at line 125 of file characterclassificationImpl.cxx.
References cachedItem, lookupTable, and m_xContext.
Referenced by CharacterClassificationImpl(), and getLocaleSpecificCharacterClassification().
|
overridevirtual |
Definition at line 74 of file characterclassificationImpl.cxx.
|
overridevirtual |
Definition at line 90 of file characterclassificationImpl.cxx.
References getLocaleSpecificCharacterClassification(), nPos, and Text.
|
overridevirtual |
Definition at line 192 of file characterclassificationImpl.cxx.
|
private |
css::uno::RuntimeException |
Definition at line 153 of file characterclassificationImpl.cxx.
References cachedItem, createLocaleSpecificCharacterClassification(), i18npool::LocaleDataImpl::getFallbackLocaleServiceNames(), i18npool::LocaleDataImpl::getFirstLocaleServiceName(), i, lookupTable, and xUCI.
Referenced by getCharacterType(), getStringType(), parseAnyToken(), parsePredefinedToken(), toLower(), toTitle(), and toUpper().
|
overridevirtual |
Definition at line 82 of file characterclassificationImpl.cxx.
|
overridevirtual |
Definition at line 97 of file characterclassificationImpl.cxx.
References getLocaleSpecificCharacterClassification(), nCount, nPos, and Text.
|
overridevirtual |
Definition at line 204 of file characterclassificationImpl.cxx.
|
overridevirtual |
Definition at line 66 of file characterclassificationImpl.cxx.
|
overridevirtual |
Definition at line 103 of file characterclassificationImpl.cxx.
References getLocaleSpecificCharacterClassification(), nPos, and Text.
|
overridevirtual |
Definition at line 114 of file characterclassificationImpl.cxx.
References getLocaleSpecificCharacterClassification(), nPos, and Text.
|
overridevirtual |
Definition at line 198 of file characterclassificationImpl.cxx.
References cppu::supportsService().
|
overridevirtual |
Definition at line 52 of file characterclassificationImpl.cxx.
References getLocaleSpecificCharacterClassification(), nCount, nPos, and Text.
|
overridevirtual |
Definition at line 59 of file characterclassificationImpl.cxx.
References getLocaleSpecificCharacterClassification(), nCount, nPos, and Text.
|
overridevirtual |
Definition at line 45 of file characterclassificationImpl.cxx.
References getLocaleSpecificCharacterClassification(), nCount, nPos, and Text.
|
private |
Definition at line 85 of file characterclassificationImpl.hxx.
Referenced by CharacterClassificationImpl(), createLocaleSpecificCharacterClassification(), and getLocaleSpecificCharacterClassification().
|
private |
Definition at line 84 of file characterclassificationImpl.hxx.
Referenced by createLocaleSpecificCharacterClassification(), and getLocaleSpecificCharacterClassification().
|
private |
Definition at line 87 of file characterclassificationImpl.hxx.
Referenced by createLocaleSpecificCharacterClassification().
|
private |
Definition at line 88 of file characterclassificationImpl.hxx.
Referenced by CharacterClassificationImpl(), getCharacterDirection(), getLocaleSpecificCharacterClassification(), getScript(), and getType().