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::unique_ptr< LocaleDataLookupTableItemcachedItem
 
css::i18n::Calendar2 ref_cal
 
OUString ref_name
 

Detailed Description

Definition at line 52 of file localedata.hxx.

Constructor & Destructor Documentation

i18npool::LocaleDataImpl::LocaleDataImpl ( )

Definition at line 391 of file localedata.cxx.

Referenced by get().

i18npool::LocaleDataImpl::~LocaleDataImpl ( )
overridevirtual

Definition at line 394 of file localedata.cxx.

Member Function Documentation

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

Definition at line 376 of file localedata.cxx.

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

Sequence< CalendarItem > i18npool::LocaleDataImpl::downcastCalendarItems ( const css::uno::Sequence< css::i18n::CalendarItem2 > &  rCi)
static
static rtl::Reference<LocaleDataImpl> i18npool::LocaleDataImpl::get ( )
inlinestatic
Sequence< Calendar > SAL_CALL i18npool::LocaleDataImpl::getAllCalendars ( const css::lang::Locale &  rLocale)
overridevirtual

Definition at line 793 of file localedata.cxx.

References comphelper::containerToSequence().

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

Definition at line 748 of file localedata.cxx.

References i, REF_DAYS, REF_ERAS, REF_GMONTHS, REF_MONTHS, REF_OFFSET_COUNT, and REF_PMONTHS.

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

Definition at line 836 of file localedata.cxx.

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

Definition at line 805 of file localedata.cxx.

References i.

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

Definition at line 843 of file localedata.cxx.

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

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

Definition at line 1471 of file localedata.cxx.

References cHyphen, LanguageTag::convertToLocale(), cUnder, i, name, and nbOfLocales.

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

Definition at line 1207 of file localedata.cxx.

References i.

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 649 of file localedata.cxx.

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

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 701 of file localedata.cxx.

References REF_DAYS, REF_ERAS, REF_GMONTHS, REF_MONTHS, REF_PMONTHS, and u.

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

Definition at line 959 of file localedata.cxx.

References i.

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

Definition at line 937 of file localedata.cxx.

References COLLATOR_ELEMENTS, COLLATOR_OFFSET_ALGO, COLLATOR_OFFSET_DEFAULT, and i.

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

Definition at line 922 of file localedata.cxx.

References COLLATOR_ELEMENTS, COLLATOR_OFFSET_ALGO, COLLATOR_OFFSET_RULE, and i.

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

Definition at line 1249 of file localedata.cxx.

References i, and nAttributes.

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

Definition at line 894 of file localedata.cxx.

References i.

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

Definition at line 1025 of file localedata.cxx.

References i.

std::vector< OUString > i18npool::LocaleDataImpl::getFallbackLocaleServiceNames ( const css::lang::Locale &  rLocale)
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 1579 of file localedata.cxx.

References cHyphen, cUnder, and I18NLANGTAG_QLT.

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

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

Definition at line 1109 of file localedata.cxx.

References i.

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

Definition at line 1175 of file localedata.cxx.

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

Definition at line 1424 of file localedata.cxx.

Referenced by getAllFormats().

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

Definition at line 1193 of file localedata.cxx.

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

Definition at line 1558 of file localedata.cxx.

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

Definition at line 1007 of file localedata.cxx.

References i.

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

Definition at line 997 of file localedata.cxx.

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

Definition at line 1055 of file localedata.cxx.

References i.

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

Definition at line 1076 of file localedata.cxx.

References u.

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

Definition at line 1083 of file localedata.cxx.

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

Definition at line 1152 of file localedata.cxx.

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

Definition at line 400 of file localedata.cxx.

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

Definition at line 438 of file localedata.cxx.

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

Definition at line 1354 of file localedata.cxx.

References i, and nAttributes.

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

Definition at line 1228 of file localedata.cxx.

References i.

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

Definition at line 978 of file localedata.cxx.

References i.

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

Definition at line 1569 of file localedata.cxx.

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

Definition at line 1128 of file localedata.cxx.

References i.

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

Definition at line 1090 of file localedata.cxx.

References i, and toInt32().

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

Definition at line 1040 of file localedata.cxx.

References i.

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

Definition at line 1069 of file localedata.cxx.

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

Definition at line 1563 of file localedata.cxx.

References cppu::supportsService().

Member Data Documentation

::std::unique_ptr< LocaleDataLookupTableItem > i18npool::LocaleDataImpl::cachedItem
private

Definition at line 131 of file localedata.hxx.

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

Definition at line 132 of file localedata.hxx.

OUString i18npool::LocaleDataImpl::ref_name
private

Definition at line 133 of file localedata.hxx.


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