LibreOffice Module vcl (master) 1
|
#include <i18nhelp.hxx>
Public Member Functions | |
I18nHelper (const css::uno::Reference< css::uno::XComponentContext > &rxContext, LanguageTag aLanguageTag) | |
~I18nHelper () | |
sal_Int32 | CompareString (const OUString &rStr1, const OUString &rStr2) const |
bool | MatchString (const OUString &rStr1, const OUString &rStr2) const |
bool | MatchMnemonic (std::u16string_view rString, sal_Unicode cMnemonicChar) const |
OUString | GetNum (tools::Long nNumber, sal_uInt16 nDecimals, bool bUseThousandSep=true, bool bTrailingZeros=true) const |
Static Public Member Functions | |
static OUString | filterFormattingChars (const OUString &) |
Private Member Functions | |
SAL_DLLPRIVATE void | ImplDestroyWrappers () |
SAL_DLLPRIVATE utl::TransliterationWrapper & | ImplGetTransliterationWrapper () const |
SAL_DLLPRIVATE LocaleDataWrapper & | ImplGetLocaleDataWrapper () const |
Private Attributes | |
std::mutex | maMutex |
LanguageTag | maLanguageTag |
css::uno::Reference< css::uno::XComponentContext > | m_xContext |
std::unique_ptr< LocaleDataWrapper > | mpLocaleDataWrapper |
std::unique_ptr< utl::TransliterationWrapper > | mpTransliterationWrapper |
bool | mbTransliterateIgnoreCase |
Definition at line 42 of file i18nhelp.hxx.
vcl::I18nHelper::I18nHelper | ( | const css::uno::Reference< css::uno::XComponentContext > & | rxContext, |
LanguageTag | aLanguageTag | ||
) |
Definition at line 33 of file i18nhelp.cxx.
References m_xContext, maLanguageTag, mbTransliterateIgnoreCase, mpLocaleDataWrapper, and mpTransliterationWrapper.
vcl::I18nHelper::~I18nHelper | ( | ) |
Definition at line 43 of file i18nhelp.cxx.
sal_Int32 vcl::I18nHelper::CompareString | ( | const OUString & | rStr1, |
const OUString & | rStr2 | ||
) | const |
Definition at line 108 of file i18nhelp.cxx.
References maMutex.
|
static |
Definition at line 94 of file i18nhelp.cxx.
References aBuf, is_formatting_mark(), and nLength.
Referenced by ImplEntryList::FindEntry().
OUString vcl::I18nHelper::GetNum | ( | tools::Long | nNumber, |
sal_uInt16 | nDecimals, | ||
bool | bUseThousandSep = true , |
||
bool | bTrailingZeros = true |
||
) | const |
Definition at line 151 of file i18nhelp.cxx.
|
private |
Definition at line 48 of file i18nhelp.cxx.
|
private |
Definition at line 68 of file i18nhelp.cxx.
References m_xContext, and maLanguageTag.
|
private |
Definition at line 54 of file i18nhelp.cxx.
References LanguageTag::getLanguageType(), m_xContext, and maLanguageTag.
bool vcl::I18nHelper::MatchMnemonic | ( | std::u16string_view | rString, |
sal_Unicode | cMnemonicChar | ||
) | const |
Definition at line 142 of file i18nhelp.cxx.
References n.
Referenced by MenuItemList::GetItemCount(), SvxIconChoiceCtrl_Impl::IsMnemonicChar(), and MenuItemList::SearchItem().
bool vcl::I18nHelper::MatchString | ( | const OUString & | rStr1, |
const OUString & | rStr2 | ||
) | const |
Definition at line 125 of file i18nhelp.cxx.
References maMutex.
Referenced by vcl::findMatchingEntry(), and ImplEntryList::FindMatchingEntry().
|
private |
Definition at line 46 of file i18nhelp.hxx.
Referenced by I18nHelper().
|
private |
Definition at line 45 of file i18nhelp.hxx.
|
mutableprivate |
Definition at line 44 of file i18nhelp.hxx.
|
private |
Definition at line 51 of file i18nhelp.hxx.
Referenced by I18nHelper().
|
private |
Definition at line 48 of file i18nhelp.hxx.
Referenced by I18nHelper().
|
private |
Definition at line 49 of file i18nhelp.hxx.
Referenced by I18nHelper().