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

#include <localedata.hxx>

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

Public Member Functions

 LocaleDataImpl ()
 
virtual ~LocaleDataImpl () override
 
static ::std::vector< OUString > getFallbackLocaleServiceNames (const css::lang::Locale &rLocale)
 Generates fallback strings suitable as parts of service names, excluding the one obtained via getFirstLocaleServiceName() More...
 
virtual css::i18n::LanguageCountryInfo SAL_CALL getLanguageCountryInfo (const css::lang::Locale &rLocale) override
 
virtual css::i18n::LocaleDataItem SAL_CALL getLocaleItem (const css::lang::Locale &rLocale) override
 
virtual css::uno::Sequence< css::i18n::Calendar2 > SAL_CALL getAllCalendars2 (const css::lang::Locale &rLocale) override
 
virtual css::uno::Sequence< css::i18n::Calendar > SAL_CALL getAllCalendars (const css::lang::Locale &rLocale) override
 
virtual css::uno::Sequence< css::i18n::Currency > SAL_CALL getAllCurrencies (const css::lang::Locale &rLocale) override
 
virtual css::uno::Sequence< css::i18n::Currency2 > SAL_CALL getAllCurrencies2 (const css::lang::Locale &rLocale) override
 
virtual css::uno::Sequence< css::i18n::FormatElement > SAL_CALL getAllFormats (const css::lang::Locale &rLocale) override
 
virtual css::uno::Sequence< css::i18n::Implementation > SAL_CALL getCollatorImplementations (const css::lang::Locale &rLocale) override
 
OUString getCollatorRuleByAlgorithm (const css::lang::Locale &rLocale, std::u16string_view algorithm)
 
virtual css::uno::Sequence< OUString > SAL_CALL getTransliterations (const css::lang::Locale &rLocale) override
 
virtual css::i18n::ForbiddenCharacters SAL_CALL getForbiddenCharacters (const css::lang::Locale &rLocale) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getReservedWord (const css::lang::Locale &rLocale) override
 
css::uno::Sequence< OUString > getBreakIteratorRules (const css::lang::Locale &rLocale)
 
virtual css::uno::Sequence< css::lang::Locale > SAL_CALL getAllInstalledLocaleNames () override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSearchOptions (const css::lang::Locale &rLocale) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getCollationOptions (const css::lang::Locale &rLocale) override
 
css::uno::Sequence< css::uno::Sequence< css::beans::PropertyValue > > getContinuousNumberingLevels (const css::lang::Locale &rLocale)
 
css::uno::Sequence< css::uno::Reference< css::container::XIndexAccess > > getOutlineNumberingLevels (const css::lang::Locale &rLocale)
 
virtual css::uno::Sequence< OUString > SAL_CALL getDateAcceptancePatterns (const css::lang::Locale &rLocale) override
 
virtual css::i18n::LocaleDataItem2 SAL_CALL getLocaleItem2 (const css::lang::Locale &rLocale) override
 
css::uno::Sequence< OUString > getIndexAlgorithm (const css::lang::Locale &rLocale)
 
OUString getDefaultIndexAlgorithm (const css::lang::Locale &rLocale)
 
OUString getIndexKeysByAlgorithm (const css::lang::Locale &rLocale, std::u16string_view algorithm)
 
OUString getIndexModuleByAlgorithm (const css::lang::Locale &rLocale, std::u16string_view algorithm)
 
css::uno::Sequence< css::i18n::UnicodeScript > getUnicodeScripts (const css::lang::Locale &rLocale)
 
css::uno::Sequence< OUString > getFollowPageWords (const css::lang::Locale &rLocale)
 
bool hasPhonetic (const css::lang::Locale &rLocale)
 
bool isPhonetic (const css::lang::Locale &rLocale, std::u16string_view algorithm)
 
OUString getHangingCharacters (const css::lang::Locale &rLocale)
 
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
 

Static Public Member Functions

static rtl::Reference< LocaleDataImplget ()
 
static css::uno::Sequence< css::i18n::CalendarItem > downcastCalendarItems (const css::uno::Sequence< css::i18n::CalendarItem2 > &rCi)
 
static css::i18n::Calendar downcastCalendar (const css::i18n::Calendar2 &rC)
 
static OUString getFirstLocaleServiceName (const css::lang::Locale &rLocale)
 Generates a <Language>_<Country> or <Variant> (if Language=="qlt") string suitable as part of service name with all '-' replaced by '_'. More...
 

Private Member Functions

oslGenericFunction getFunctionSymbol (const css::lang::Locale &rLocale, const char *pFunction)
 
sal_Unicode ** getIndexArray (const css::lang::Locale &rLocale, sal_Int16 &indexCount)
 
sal_Unicode ** getIndexArrayForAlgorithm (const css::lang::Locale &rLocale, std::u16string_view rAlgorithm)
 
css::uno::Sequence< css::i18n::CalendarItem2 > & getCalendarItemByName (const OUString &name, const css::lang::Locale &rLocale, const css::uno::Sequence< css::i18n::Calendar2 > &calendarsSeq, sal_Int16 item)
 
css::uno::Sequence< css::i18n::CalendarItem2 > getCalendarItems (sal_Unicode const *const *const allCalendars, sal_Int16 &rnOffset, const sal_Int16 nWhichItem, const sal_Int16 nCalendar, const css::lang::Locale &rLocale, const css::uno::Sequence< css::i18n::Calendar2 > &calendarsSeq)
 Helper to obtain a sequence of days, months, gmonths or eras. More...
 

Private Attributes

::std::optional< LocaleDataLookupTableItemmoCachedItem
 
css::i18n::Calendar2 ref_cal
 
OUString ref_name
 

Detailed Description

Definition at line 67 of file localedata.hxx.

Constructor & Destructor Documentation

◆ LocaleDataImpl()

i18npool::LocaleDataImpl::LocaleDataImpl ( )

Definition at line 378 of file localedata.cxx.

Referenced by get().

◆ ~LocaleDataImpl()

i18npool::LocaleDataImpl::~LocaleDataImpl ( )
overridevirtual

Definition at line 381 of file localedata.cxx.

Member Function Documentation

◆ downcastCalendar()

Calendar i18npool::LocaleDataImpl::downcastCalendar ( const css::i18n::Calendar2 &  rC)
static

Definition at line 363 of file localedata.cxx.

References downcastCalendarItems().

Referenced by i18npool::Calendar_gregorian::getLoadedCalendar().

◆ downcastCalendarItems()

Sequence< CalendarItem > i18npool::LocaleDataImpl::downcastCalendarItems ( const css::uno::Sequence< css::i18n::CalendarItem2 > &  rCi)
static

◆ get()

static rtl::Reference< LocaleDataImpl > i18npool::LocaleDataImpl::get ( )
inlinestatic

◆ getAllCalendars()

Sequence< Calendar > SAL_CALL i18npool::LocaleDataImpl::getAllCalendars ( const css::lang::Locale &  rLocale)
overridevirtual

Definition at line 772 of file localedata.cxx.

References comphelper::containerToSequence(), and getAllCalendars2().

◆ getAllCalendars2()

Sequence< Calendar2 > SAL_CALL i18npool::LocaleDataImpl::getAllCalendars2 ( const css::lang::Locale &  rLocale)
overridevirtual

◆ getAllCurrencies()

Sequence< Currency > SAL_CALL i18npool::LocaleDataImpl::getAllCurrencies ( const css::lang::Locale &  rLocale)
overridevirtual

Definition at line 816 of file localedata.cxx.

References getAllCurrencies2().

◆ getAllCurrencies2()

Sequence< Currency2 > SAL_CALL i18npool::LocaleDataImpl::getAllCurrencies2 ( const css::lang::Locale &  rLocale)
overridevirtual

Definition at line 784 of file localedata.cxx.

References getFunctionSymbol(), and i.

Referenced by getAllCurrencies().

◆ getAllFormats()

Sequence< FormatElement > SAL_CALL i18npool::LocaleDataImpl::getAllFormats ( const css::lang::Locale &  rLocale)
overridevirtual

Definition at line 823 of file localedata.cxx.

References from, getFunctionSymbol(), i, Locale, pName, section, and to.

◆ getAllInstalledLocaleNames()

Sequence< Locale > SAL_CALL i18npool::LocaleDataImpl::getAllInstalledLocaleNames ( )
overridevirtual

◆ getBreakIteratorRules()

Sequence< OUString > i18npool::LocaleDataImpl::getBreakIteratorRules ( const css::lang::Locale &  rLocale)
Exceptions
css::uno::RuntimeException

Definition at line 1196 of file localedata.cxx.

References getFunctionSymbol(), and i.

◆ getCalendarItemByName()

Sequence< CalendarItem2 > & i18npool::LocaleDataImpl::getCalendarItemByName ( const OUString &  name,
const css::lang::Locale &  rLocale,
const css::uno::Sequence< css::i18n::Calendar2 > &  calendarsSeq,
sal_Int16  item 
)
private
Exceptions
css::uno::RuntimeException

Definition at line 627 of file localedata.cxx.

References cHyphen, LanguageTag::convertToLocale(), cUnder, getAllCalendars2(), Locale, name, ref_cal, REF_DAYS, REF_ERAS, REF_GMONTHS, REF_MONTHS, ref_name, REF_PMONTHS, and SAL_WARN_IF.

Referenced by getCalendarItems().

◆ getCalendarItems()

Sequence< CalendarItem2 > i18npool::LocaleDataImpl::getCalendarItems ( sal_Unicode const *const *const  allCalendars,
sal_Int16 &  rnOffset,
const sal_Int16  nWhichItem,
const sal_Int16  nCalendar,
const css::lang::Locale &  rLocale,
const css::uno::Sequence< css::i18n::Calendar2 > &  calendarsSeq 
)
private

Helper to obtain a sequence of days, months, gmonths or eras.

Exceptions
css::uno::RuntimeException

Definition at line 679 of file localedata.cxx.

References getCalendarItemByName(), REF_DAYS, REF_ERAS, REF_GMONTHS, REF_MONTHS, REF_PMONTHS, and u.

Referenced by getAllCalendars2().

◆ getCollationOptions()

Sequence< OUString > SAL_CALL i18npool::LocaleDataImpl::getCollationOptions ( const css::lang::Locale &  rLocale)
overridevirtual

Definition at line 942 of file localedata.cxx.

References getFunctionSymbol(), and i.

◆ getCollatorImplementations()

Sequence< Implementation > SAL_CALL i18npool::LocaleDataImpl::getCollatorImplementations ( const css::lang::Locale &  rLocale)
overridevirtual

◆ getCollatorRuleByAlgorithm()

OUString i18npool::LocaleDataImpl::getCollatorRuleByAlgorithm ( const css::lang::Locale &  rLocale,
std::u16string_view  algorithm 
)
Exceptions
css::uno::RuntimeException

Definition at line 904 of file localedata.cxx.

References COLLATOR_ELEMENTS, COLLATOR_OFFSET_ALGO, COLLATOR_OFFSET_RULE, getFunctionSymbol(), and i.

◆ getContinuousNumberingLevels()

Sequence< Sequence< beans::PropertyValue > > i18npool::LocaleDataImpl::getContinuousNumberingLevels ( const css::lang::Locale &  rLocale)
Exceptions
css::uno::RuntimeException

Definition at line 1240 of file localedata.cxx.

References getFunctionSymbol(), i, and nAttributes.

◆ getDateAcceptancePatterns()

Sequence< OUString > SAL_CALL i18npool::LocaleDataImpl::getDateAcceptancePatterns ( const css::lang::Locale &  rLocale)
overridevirtual

Definition at line 875 of file localedata.cxx.

References getFunctionSymbol(), and i.

◆ getDefaultIndexAlgorithm()

OUString i18npool::LocaleDataImpl::getDefaultIndexAlgorithm ( const css::lang::Locale &  rLocale)
Exceptions
css::uno::RuntimeException

Definition at line 1011 of file localedata.cxx.

References getIndexArray(), and i.

◆ getFallbackLocaleServiceNames()

std::vector< OUString > i18npool::LocaleDataImpl::getFallbackLocaleServiceNames ( const css::lang::Locale &  rLocale)

◆ getFirstLocaleServiceName()

OUString i18npool::LocaleDataImpl::getFirstLocaleServiceName ( const css::lang::Locale &  rLocale)
static

Generates a <Language>_<Country> or <Variant> (if Language=="qlt") string suitable as part of service name with all '-' replaced by '_'.

Definition at line 1573 of file localedata.cxx.

References cHyphen, cUnder, and I18NLANGTAG_QLT.

Referenced by getFunctionSymbol(), i18npool::CharacterClassificationImpl::getLocaleSpecificCharacterClassification(), i18npool::IndexEntrySupplier::getLocaleSpecificIndexEntrySupplier(), i18npool::TextConversionImpl::getLocaleSpecificTextConversion(), and i18npool::CollatorImpl::loadCachedCollator().

◆ getFollowPageWords()

Sequence< OUString > i18npool::LocaleDataImpl::getFollowPageWords ( const css::lang::Locale &  rLocale)
Exceptions
css::uno::RuntimeException

Definition at line 1096 of file localedata.cxx.

References getFunctionSymbol(), and i.

◆ getForbiddenCharacters()

ForbiddenCharacters SAL_CALL i18npool::LocaleDataImpl::getForbiddenCharacters ( const css::lang::Locale &  rLocale)
overridevirtual

Definition at line 1164 of file localedata.cxx.

References getFunctionSymbol().

◆ getFunctionSymbol()

oslGenericFunction i18npool::LocaleDataImpl::getFunctionSymbol ( const css::lang::Locale &  rLocale,
const char *  pFunction 
)
private

◆ getHangingCharacters()

OUString i18npool::LocaleDataImpl::getHangingCharacters ( const css::lang::Locale &  rLocale)
Exceptions
css::uno::RuntimeException

Definition at line 1182 of file localedata.cxx.

References getFunctionSymbol().

◆ getImplementationName()

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

Definition at line 1552 of file localedata.cxx.

◆ getIndexAlgorithm()

Sequence< OUString > i18npool::LocaleDataImpl::getIndexAlgorithm ( const css::lang::Locale &  rLocale)
Exceptions
css::uno::RuntimeException

Definition at line 992 of file localedata.cxx.

References getIndexArray(), and i.

◆ getIndexArray()

sal_Unicode ** i18npool::LocaleDataImpl::getIndexArray ( const css::lang::Locale &  rLocale,
sal_Int16 &  indexCount 
)
private

◆ getIndexArrayForAlgorithm()

sal_Unicode ** i18npool::LocaleDataImpl::getIndexArrayForAlgorithm ( const css::lang::Locale &  rLocale,
std::u16string_view  rAlgorithm 
)
private

Definition at line 1041 of file localedata.cxx.

References getIndexArray(), and i.

Referenced by getIndexKeysByAlgorithm(), getIndexModuleByAlgorithm(), and isPhonetic().

◆ getIndexKeysByAlgorithm()

OUString i18npool::LocaleDataImpl::getIndexKeysByAlgorithm ( const css::lang::Locale &  rLocale,
std::u16string_view  algorithm 
)
Exceptions
css::uno::RuntimeException

Definition at line 1062 of file localedata.cxx.

References getIndexArrayForAlgorithm(), and u.

◆ getIndexModuleByAlgorithm()

OUString i18npool::LocaleDataImpl::getIndexModuleByAlgorithm ( const css::lang::Locale &  rLocale,
std::u16string_view  algorithm 
)
Exceptions
css::uno::RuntimeException

Definition at line 1069 of file localedata.cxx.

References getIndexArrayForAlgorithm().

◆ getLanguageCountryInfo()

LanguageCountryInfo SAL_CALL i18npool::LocaleDataImpl::getLanguageCountryInfo ( const css::lang::Locale &  rLocale)
overridevirtual

Definition at line 1141 of file localedata.cxx.

References getFunctionSymbol().

◆ getLocaleItem()

LocaleDataItem SAL_CALL i18npool::LocaleDataImpl::getLocaleItem ( const css::lang::Locale &  rLocale)
overridevirtual

Definition at line 387 of file localedata.cxx.

References getFunctionSymbol().

◆ getLocaleItem2()

LocaleDataItem2 SAL_CALL i18npool::LocaleDataImpl::getLocaleItem2 ( const css::lang::Locale &  rLocale)
overridevirtual

Definition at line 425 of file localedata.cxx.

References getFunctionSymbol().

◆ getOutlineNumberingLevels()

Sequence< Reference< container::XIndexAccess > > i18npool::LocaleDataImpl::getOutlineNumberingLevels ( const css::lang::Locale &  rLocale)
Exceptions
css::uno::RuntimeException

Definition at line 1347 of file localedata.cxx.

References getFunctionSymbol(), i, and nAttributes.

◆ getReservedWord()

Sequence< OUString > SAL_CALL i18npool::LocaleDataImpl::getReservedWord ( const css::lang::Locale &  rLocale)
overridevirtual

Definition at line 1218 of file localedata.cxx.

References getFunctionSymbol(), and i.

◆ getSearchOptions()

Sequence< OUString > SAL_CALL i18npool::LocaleDataImpl::getSearchOptions ( const css::lang::Locale &  rLocale)
overridevirtual

Definition at line 962 of file localedata.cxx.

References getFunctionSymbol(), and i.

◆ getSupportedServiceNames()

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

Definition at line 1563 of file localedata.cxx.

◆ getTransliterations()

Sequence< OUString > SAL_CALL i18npool::LocaleDataImpl::getTransliterations ( const css::lang::Locale &  rLocale)
overridevirtual

Definition at line 1116 of file localedata.cxx.

References getFunctionSymbol(), and i.

◆ getUnicodeScripts()

Sequence< UnicodeScript > i18npool::LocaleDataImpl::getUnicodeScripts ( const css::lang::Locale &  rLocale)
Exceptions
css::uno::RuntimeException

Definition at line 1076 of file localedata.cxx.

References getFunctionSymbol(), i, and o3tl::toInt32().

◆ hasPhonetic()

bool i18npool::LocaleDataImpl::hasPhonetic ( const css::lang::Locale &  rLocale)
Exceptions
css::uno::RuntimeException

Definition at line 1026 of file localedata.cxx.

References getIndexArray(), and i.

◆ isPhonetic()

bool i18npool::LocaleDataImpl::isPhonetic ( const css::lang::Locale &  rLocale,
std::u16string_view  algorithm 
)
Exceptions
css::uno::RuntimeException

Definition at line 1055 of file localedata.cxx.

References getIndexArrayForAlgorithm().

◆ supportsService()

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

Definition at line 1557 of file localedata.cxx.

References cppu::supportsService().

Member Data Documentation

◆ moCachedItem

::std::optional< LocaleDataLookupTableItem > i18npool::LocaleDataImpl::moCachedItem
private

Definition at line 146 of file localedata.hxx.

Referenced by getAllInstalledLocaleNames(), and getFunctionSymbol().

◆ ref_cal

css::i18n::Calendar2 i18npool::LocaleDataImpl::ref_cal
private

Definition at line 147 of file localedata.hxx.

Referenced by getCalendarItemByName().

◆ ref_name

OUString i18npool::LocaleDataImpl::ref_name
private

Definition at line 148 of file localedata.hxx.

Referenced by getCalendarItemByName().


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