LibreOffice Module i18npool (master) 1
|
#include <localedata.hxx>
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< LocaleDataImpl > | get () |
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< LocaleDataLookupTableItem > | moCachedItem |
css::i18n::Calendar2 | ref_cal |
OUString | ref_name |
Definition at line 67 of file localedata.hxx.
i18npool::LocaleDataImpl::LocaleDataImpl | ( | ) |
Definition at line 377 of file localedata.cxx.
Referenced by get().
|
overridevirtual |
Definition at line 380 of file localedata.cxx.
|
static |
Definition at line 362 of file localedata.cxx.
References downcastCalendarItems().
Referenced by i18npool::Calendar_gregorian::getLoadedCalendar().
|
static |
Definition at line 355 of file localedata.cxx.
Referenced by downcastCalendar(), i18npool::Calendar_gregorian::getDays(), and i18npool::Calendar_gregorian::getMonths().
|
inlinestatic |
Definition at line 77 of file localedata.hxx.
References LocaleDataImpl().
Referenced by i18npool::BreakIterator_ja::BreakIterator_ja(), i18npool::BreakIterator_ko::BreakIterator_ko(), i18npool::BreakIterator_zh::BreakIterator_zh(), i18npool::BreakIterator_zh_TW::BreakIterator_zh_TW(), i18npool::IndexEntrySupplier::getAlgorithmList(), i18npool::CalendarImpl::getAllCalendars(), i18npool::DefaultNumberingProvider::getDefaultContinuousNumberingLevels(), i18npool::DefaultNumberingProvider::getDefaultOutlineNumberings(), i18npool::Calendar_gregorian::getDisplayName(), i18npool::Calendar_hanja::getDisplayName(), i18npool::Calendar_hanja_yoil::getDisplayName(), i18npool::Calendar_gregorian::getDisplayStringImpl(), i18npool::IndexEntrySupplier::getIndexFollowPageWord(), i18npool::IndexEntrySupplier::getLocaleList(), i18npool::Index::init(), i18npool::IndexEntrySupplier_Common::loadAlgorithm(), i18npool::Calendar_gregorian::loadCalendar(), i18npool::CalendarImpl::loadCalendarTZ(), i18npool::Collator_Unicode::loadCollatorAlgorithm(), i18npool::CalendarImpl::loadDefaultCalendarTZ(), i18npool::BreakIterator_Unicode::loadICUBreakIterator(), i18npool::Index::makeIndexKeys(), and i18npool::IndexEntrySupplier::usePhoneticEntry().
|
overridevirtual |
Definition at line 771 of file localedata.cxx.
References comphelper::containerToSequence(), and getAllCalendars2().
|
overridevirtual |
Definition at line 725 of file localedata.cxx.
References getCalendarItems(), getFunctionSymbol(), i, REF_DAYS, REF_ERAS, REF_GMONTHS, REF_MONTHS, REF_OFFSET_COUNT, and REF_PMONTHS.
Referenced by getAllCalendars(), and getCalendarItemByName().
|
overridevirtual |
Definition at line 815 of file localedata.cxx.
References getAllCurrencies2().
|
overridevirtual |
Definition at line 783 of file localedata.cxx.
References getFunctionSymbol(), and i.
Referenced by getAllCurrencies().
|
overridevirtual |
Definition at line 822 of file localedata.cxx.
References f, from, getFunctionSymbol(), i, Locale, pName, section, and to.
|
overridevirtual |
Definition at line 1463 of file localedata.cxx.
References aLibTable, cHyphen, LanguageTag::convertToLocale(), cUnder, i, moCachedItem, name, and nbOfLocales.
Sequence< OUString > i18npool::LocaleDataImpl::getBreakIteratorRules | ( | const css::lang::Locale & | rLocale | ) |
css::uno::RuntimeException |
Definition at line 1195 of file localedata.cxx.
References getFunctionSymbol(), and i.
|
private |
css::uno::RuntimeException |
Definition at line 626 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().
|
private |
Helper to obtain a sequence of days, months, gmonths or eras.
css::uno::RuntimeException |
Definition at line 678 of file localedata.cxx.
References getCalendarItemByName(), REF_DAYS, REF_ERAS, REF_GMONTHS, REF_MONTHS, REF_PMONTHS, and u.
Referenced by getAllCalendars2().
|
overridevirtual |
Definition at line 941 of file localedata.cxx.
References getFunctionSymbol(), and i.
|
overridevirtual |
Definition at line 918 of file localedata.cxx.
References COLLATOR_ELEMENTS, COLLATOR_OFFSET_ALGO, COLLATOR_OFFSET_DEFAULT, getFunctionSymbol(), and i.
OUString i18npool::LocaleDataImpl::getCollatorRuleByAlgorithm | ( | const css::lang::Locale & | rLocale, |
std::u16string_view | algorithm | ||
) |
css::uno::RuntimeException |
Definition at line 903 of file localedata.cxx.
References COLLATOR_ELEMENTS, COLLATOR_OFFSET_ALGO, COLLATOR_OFFSET_RULE, getFunctionSymbol(), and i.
Sequence< Sequence< beans::PropertyValue > > i18npool::LocaleDataImpl::getContinuousNumberingLevels | ( | const css::lang::Locale & | rLocale | ) |
css::uno::RuntimeException |
Definition at line 1239 of file localedata.cxx.
References getFunctionSymbol(), i, and nAttributes.
|
overridevirtual |
Definition at line 874 of file localedata.cxx.
References getFunctionSymbol(), and i.
OUString i18npool::LocaleDataImpl::getDefaultIndexAlgorithm | ( | const css::lang::Locale & | rLocale | ) |
css::uno::RuntimeException |
Definition at line 1010 of file localedata.cxx.
References getIndexArray(), and i.
std::vector< OUString > i18npool::LocaleDataImpl::getFallbackLocaleServiceNames | ( | const css::lang::Locale & | rLocale | ) |
Generates fallback strings suitable as parts of service names, excluding the one obtained via getFirstLocaleServiceName()
Definition at line 1583 of file localedata.cxx.
References cHyphen, cUnder, LanguageTag::getFallbackStrings(), and I18NLANGTAG_QLT.
Referenced by getFunctionSymbol(), i18npool::CharacterClassificationImpl::getLocaleSpecificCharacterClassification(), i18npool::IndexEntrySupplier::getLocaleSpecificIndexEntrySupplier(), i18npool::TextConversionImpl::getLocaleSpecificTextConversion(), and i18npool::CollatorImpl::loadCachedCollator().
|
static |
Generates a <Language>_<Country> or <Variant> (if Language=="qlt") string suitable as part of service name with all '-' replaced by '_'.
Definition at line 1572 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().
Sequence< OUString > i18npool::LocaleDataImpl::getFollowPageWords | ( | const css::lang::Locale & | rLocale | ) |
css::uno::RuntimeException |
Definition at line 1095 of file localedata.cxx.
References getFunctionSymbol(), and i.
|
overridevirtual |
Definition at line 1163 of file localedata.cxx.
References getFunctionSymbol().
|
private |
css::uno::RuntimeException |
Definition at line 1416 of file localedata.cxx.
References getFallbackLocaleServiceNames(), getFirstLocaleServiceName(), and moCachedItem.
Referenced by getAllCalendars2(), getAllCurrencies2(), getAllFormats(), getBreakIteratorRules(), getCollationOptions(), getCollatorImplementations(), getCollatorRuleByAlgorithm(), getContinuousNumberingLevels(), getDateAcceptancePatterns(), getFollowPageWords(), getForbiddenCharacters(), getHangingCharacters(), getIndexArray(), getLanguageCountryInfo(), getLocaleItem(), getLocaleItem2(), getOutlineNumberingLevels(), getReservedWord(), getSearchOptions(), getTransliterations(), and getUnicodeScripts().
OUString i18npool::LocaleDataImpl::getHangingCharacters | ( | const css::lang::Locale & | rLocale | ) |
css::uno::RuntimeException |
Definition at line 1181 of file localedata.cxx.
References getFunctionSymbol().
|
overridevirtual |
Definition at line 1551 of file localedata.cxx.
Sequence< OUString > i18npool::LocaleDataImpl::getIndexAlgorithm | ( | const css::lang::Locale & | rLocale | ) |
css::uno::RuntimeException |
Definition at line 991 of file localedata.cxx.
References getIndexArray(), and i.
|
private |
Definition at line 981 of file localedata.cxx.
References getFunctionSymbol().
Referenced by getDefaultIndexAlgorithm(), getIndexAlgorithm(), getIndexArrayForAlgorithm(), and hasPhonetic().
|
private |
Definition at line 1040 of file localedata.cxx.
References getIndexArray(), and i.
Referenced by getIndexKeysByAlgorithm(), getIndexModuleByAlgorithm(), and isPhonetic().
OUString i18npool::LocaleDataImpl::getIndexKeysByAlgorithm | ( | const css::lang::Locale & | rLocale, |
std::u16string_view | algorithm | ||
) |
css::uno::RuntimeException |
Definition at line 1061 of file localedata.cxx.
References getIndexArrayForAlgorithm(), and u.
OUString i18npool::LocaleDataImpl::getIndexModuleByAlgorithm | ( | const css::lang::Locale & | rLocale, |
std::u16string_view | algorithm | ||
) |
css::uno::RuntimeException |
Definition at line 1068 of file localedata.cxx.
References getIndexArrayForAlgorithm().
|
overridevirtual |
Definition at line 1140 of file localedata.cxx.
References getFunctionSymbol().
|
overridevirtual |
Definition at line 386 of file localedata.cxx.
References getFunctionSymbol().
|
overridevirtual |
Definition at line 424 of file localedata.cxx.
References getFunctionSymbol().
Sequence< Reference< container::XIndexAccess > > i18npool::LocaleDataImpl::getOutlineNumberingLevels | ( | const css::lang::Locale & | rLocale | ) |
css::uno::RuntimeException |
Definition at line 1346 of file localedata.cxx.
References getFunctionSymbol(), i, and nAttributes.
|
overridevirtual |
Definition at line 1217 of file localedata.cxx.
References getFunctionSymbol(), and i.
|
overridevirtual |
Definition at line 961 of file localedata.cxx.
References getFunctionSymbol(), and i.
|
overridevirtual |
Definition at line 1562 of file localedata.cxx.
|
overridevirtual |
Definition at line 1115 of file localedata.cxx.
References getFunctionSymbol(), and i.
Sequence< UnicodeScript > i18npool::LocaleDataImpl::getUnicodeScripts | ( | const css::lang::Locale & | rLocale | ) |
css::uno::RuntimeException |
Definition at line 1075 of file localedata.cxx.
References getFunctionSymbol(), i, and o3tl::toInt32().
bool i18npool::LocaleDataImpl::hasPhonetic | ( | const css::lang::Locale & | rLocale | ) |
css::uno::RuntimeException |
Definition at line 1025 of file localedata.cxx.
References getIndexArray(), and i.
bool i18npool::LocaleDataImpl::isPhonetic | ( | const css::lang::Locale & | rLocale, |
std::u16string_view | algorithm | ||
) |
css::uno::RuntimeException |
Definition at line 1054 of file localedata.cxx.
References getIndexArrayForAlgorithm().
|
overridevirtual |
Definition at line 1556 of file localedata.cxx.
References cppu::supportsService().
|
private |
Definition at line 146 of file localedata.hxx.
Referenced by getAllInstalledLocaleNames(), and getFunctionSymbol().
|
private |
Definition at line 147 of file localedata.hxx.
Referenced by getCalendarItemByName().
|
private |
Definition at line 148 of file localedata.hxx.
Referenced by getCalendarItemByName().