LibreOffice Module vcl (master)  1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
vcl::I18nHelper Class Reference

#include <i18nhelp.hxx>

Collaboration diagram for vcl::I18nHelper:

Public Member Functions

 I18nHelper (const css::uno::Reference< css::uno::XComponentContext > &rxContext, const LanguageTag &rLanguageTag)
 ~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::TransliterationWrapperImplGetTransliterationWrapper () const
SAL_DLLPRIVATE LocaleDataWrapperImplGetLocaleDataWrapper () const

Private Attributes

std::mutex maMutex
LanguageTag maLanguageTag
css::uno::Reference< css::uno::XComponentContext > m_xContext
std::unique_ptr< LocaleDataWrappermpLocaleDataWrapper
std::unique_ptr< utl::TransliterationWrappermpTransliterationWrapper
bool mbTransliterateIgnoreCase

Detailed Description

Definition at line 42 of file i18nhelp.hxx.

Constructor & Destructor Documentation

vcl::I18nHelper::I18nHelper ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext,
const LanguageTag rLanguageTag 
vcl::I18nHelper::~I18nHelper ( )

Definition at line 42 of file i18nhelp.cxx.

Member Function Documentation

sal_Int32 vcl::I18nHelper::CompareString ( const OUString &  rStr1,
const OUString &  rStr2 
) const

Definition at line 107 of file i18nhelp.cxx.

References maMutex.

OUString vcl::I18nHelper::filterFormattingChars ( const OUString &  rStr)

Definition at line 93 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 150 of file i18nhelp.cxx.

void vcl::I18nHelper::ImplDestroyWrappers ( )

Definition at line 47 of file i18nhelp.cxx.

LocaleDataWrapper & vcl::I18nHelper::ImplGetLocaleDataWrapper ( ) const

Definition at line 67 of file i18nhelp.cxx.

References m_xContext, and maLanguageTag.

utl::TransliterationWrapper & vcl::I18nHelper::ImplGetTransliterationWrapper ( ) const

Definition at line 53 of file i18nhelp.cxx.

References LanguageTag::getLanguageType(), m_xContext, and maLanguageTag.

bool vcl::I18nHelper::MatchMnemonic ( std::u16string_view  rString,
sal_Unicode  cMnemonicChar 
) const
bool vcl::I18nHelper::MatchString ( const OUString &  rStr1,
const OUString &  rStr2 
) const

Definition at line 124 of file i18nhelp.cxx.

References maMutex.

Referenced by vcl::findMatchingEntry(), and ImplEntryList::FindMatchingEntry().

Member Data Documentation

css::uno::Reference< css::uno::XComponentContext > vcl::I18nHelper::m_xContext

Definition at line 46 of file i18nhelp.hxx.

Referenced by I18nHelper().

LanguageTag vcl::I18nHelper::maLanguageTag

Definition at line 45 of file i18nhelp.hxx.

std::mutex vcl::I18nHelper::maMutex

Definition at line 44 of file i18nhelp.hxx.

bool vcl::I18nHelper::mbTransliterateIgnoreCase

Definition at line 51 of file i18nhelp.hxx.

Referenced by I18nHelper().

std::unique_ptr<LocaleDataWrapper> vcl::I18nHelper::mpLocaleDataWrapper

Definition at line 48 of file i18nhelp.hxx.

Referenced by I18nHelper().

std::unique_ptr<utl::TransliterationWrapper> vcl::I18nHelper::mpTransliterationWrapper

Definition at line 49 of file i18nhelp.hxx.

Referenced by I18nHelper().

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