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:
[legend]

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::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

◆ I18nHelper()

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

◆ ~I18nHelper()

vcl::I18nHelper::~I18nHelper ( )

Definition at line 43 of file i18nhelp.cxx.

Member Function Documentation

◆ CompareString()

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

Definition at line 108 of file i18nhelp.cxx.

References maMutex.

◆ filterFormattingChars()

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

Definition at line 94 of file i18nhelp.cxx.

References aBuf, is_formatting_mark(), and nLength.

Referenced by ImplEntryList::FindEntry().

◆ GetNum()

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.

◆ ImplDestroyWrappers()

void vcl::I18nHelper::ImplDestroyWrappers ( )
private

Definition at line 48 of file i18nhelp.cxx.

◆ ImplGetLocaleDataWrapper()

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

Definition at line 68 of file i18nhelp.cxx.

References m_xContext, and maLanguageTag.

◆ ImplGetTransliterationWrapper()

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

Definition at line 54 of file i18nhelp.cxx.

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

◆ MatchMnemonic()

bool vcl::I18nHelper::MatchMnemonic ( std::u16string_view  rString,
sal_Unicode  cMnemonicChar 
) const

◆ MatchString()

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().

Member Data Documentation

◆ m_xContext

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

Definition at line 46 of file i18nhelp.hxx.

Referenced by I18nHelper().

◆ maLanguageTag

LanguageTag vcl::I18nHelper::maLanguageTag
private

Definition at line 45 of file i18nhelp.hxx.

◆ maMutex

std::mutex vcl::I18nHelper::maMutex
mutableprivate

Definition at line 44 of file i18nhelp.hxx.

◆ mbTransliterateIgnoreCase

bool vcl::I18nHelper::mbTransliterateIgnoreCase
private

Definition at line 51 of file i18nhelp.hxx.

Referenced by I18nHelper().

◆ mpLocaleDataWrapper

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

Definition at line 48 of file i18nhelp.hxx.

Referenced by I18nHelper().

◆ mpTransliterationWrapper

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

Definition at line 49 of file i18nhelp.hxx.

Referenced by I18nHelper().


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