LibreOffice Module unotools (master) 1
Public Member Functions | Private Attributes | Friends | List of all members
SvtSysLocale Class Reference

SvtSysLocale provides a refcounted single instance of an application wide LocaleDataWrapper and <type>CharClass</type> which always follow the locale as it is currently configured by the user. More...

#include <syslocale.hxx>

Public Member Functions

 SvtSysLocale ()
 
 ~SvtSysLocale ()
 
const LocaleDataWrapperGetLocaleData () const
 
const CharClassGetCharClass () const
 
SvtSysLocaleOptionsGetOptions () const
 It is safe to store the pointers locally and use them AS LONG AS THE INSTANCE OF SvtSysLocale LIVES! It is a faster access but be sure what you do! More...
 
const LanguageTagGetLanguageTag () const
 
const LanguageTagGetUILanguageTag () const
 

Private Attributes

std::shared_ptr< SvtSysLocale_ImplpImpl
 

Friends

class SvtSysLocale_Impl
 

Detailed Description

SvtSysLocale provides a refcounted single instance of an application wide LocaleDataWrapper and <type>CharClass</type> which always follow the locale as it is currently configured by the user.

You may use it anywhere to access the locale data elements like decimal separator and simple date formatting and so on. Constructing and destructing a SvtSysLocale is not expensive as long as there is at least one instance left.

Definition at line 43 of file syslocale.hxx.

Constructor & Destructor Documentation

◆ SvtSysLocale()

SvtSysLocale::SvtSysLocale ( )

Definition at line 129 of file syslocale.cxx.

References pImpl.

◆ ~SvtSysLocale()

SvtSysLocale::~SvtSysLocale ( )

Definition at line 140 of file syslocale.cxx.

References pImpl.

Member Function Documentation

◆ GetCharClass()

const CharClass & SvtSysLocale::GetCharClass ( ) const

Definition at line 151 of file syslocale.cxx.

References pImpl.

◆ GetLanguageTag()

const LanguageTag & SvtSysLocale::GetLanguageTag ( ) const

◆ GetLocaleData()

const LocaleDataWrapper & SvtSysLocale::GetLocaleData ( ) const

Definition at line 146 of file syslocale.cxx.

References pImpl.

Referenced by utl::GetLocaleData().

◆ GetOptions()

SvtSysLocaleOptions & SvtSysLocale::GetOptions ( ) const

It is safe to store the pointers locally and use them AS LONG AS THE INSTANCE OF SvtSysLocale LIVES! It is a faster access but be sure what you do!

Definition at line 156 of file syslocale.cxx.

References pImpl.

◆ GetUILanguageTag()

const LanguageTag & SvtSysLocale::GetUILanguageTag ( ) const

Friends And Related Function Documentation

◆ SvtSysLocale_Impl

friend class SvtSysLocale_Impl
friend

Definition at line 45 of file syslocale.hxx.

Member Data Documentation

◆ pImpl

std::shared_ptr<SvtSysLocale_Impl> SvtSysLocale::pImpl
private

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