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, 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 (const OUString &rString, sal_Unicode cMnemonicChar) const
 
OUString GetNum (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

::osl::Mutex maMutex
 
LanguageTag const 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 47 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)
static

Definition at line 93 of file i18nhelp.cxx.

References aBuf, is_formatting_mark(), and nLength.

Referenced by ImplEntryList::FindEntry().

OUString vcl::I18nHelper::GetNum ( long  nNumber,
sal_uInt16  nDecimals,
bool  bUseThousandSep = true,
bool  bTrailingZeros = true 
) const

Definition at line 155 of file i18nhelp.cxx.

void vcl::I18nHelper::ImplDestroyWrappers ( )
private

Definition at line 47 of file i18nhelp.cxx.

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

Definition at line 67 of file i18nhelp.cxx.

References m_xContext.

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

Definition at line 53 of file i18nhelp.cxx.

References m_xContext.

bool vcl::I18nHelper::MatchMnemonic ( const OUString &  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
private

Definition at line 51 of file i18nhelp.hxx.

Referenced by I18nHelper().

LanguageTag const vcl::I18nHelper::maLanguageTag
private

Definition at line 50 of file i18nhelp.hxx.

::osl::Mutex vcl::I18nHelper::maMutex
private

Definition at line 49 of file i18nhelp.hxx.

bool vcl::I18nHelper::mbTransliterateIgnoreCase
private

Definition at line 56 of file i18nhelp.hxx.

Referenced by I18nHelper().

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

Definition at line 53 of file i18nhelp.hxx.

Referenced by I18nHelper().

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

Definition at line 54 of file i18nhelp.hxx.

Referenced by I18nHelper().


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