LibreOffice Module i18npool (master) 1
Namespaces | Macros | Typedefs | Functions | Variables
localedata.cxx File Reference
#include <memory>
#include <mutex>
#include <string_view>
#include <com/sun/star/beans/PropertyValue.hpp>
#include <com/sun/star/container/XIndexAccess.hpp>
#include <com/sun/star/lang/IndexOutOfBoundsException.hpp>
#include <comphelper/sequence.hxx>
#include <cppuhelper/implbase.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <editeng/svxenum.hxx>
#include <localedata.hxx>
#include <i18nlangtag/mslangid.hxx>
#include <i18nlangtag/languagetag.hxx>
#include <sal/log.hxx>
#include <osl/diagnose.h>
#include <sal/macros.h>
#include <o3tl/string_view.hxx>
Include dependency graph for localedata.cxx:

Go to the source code of this file.

Namespaces

namespace  com
 
namespace  com::sun
 
namespace  com::sun::star
 
namespace  com::sun::star::uno
 
namespace  i18npool
 Constant values shared between i18npool and, for example, the number formatter.
 

Macros

#define REF_DAYS   0
 
#define REF_MONTHS   1
 
#define REF_GMONTHS   2
 
#define REF_PMONTHS   3
 
#define REF_ERAS   4
 
#define REF_OFFSET_COUNT   5
 
#define COLLATOR_OFFSET_ALGO   0
 
#define COLLATOR_OFFSET_DEFAULT   1
 
#define COLLATOR_OFFSET_RULE   2
 
#define COLLATOR_ELEMENTS   3
 

Typedefs

typedef OUString const *(* MyFuncOUString_Type) (sal_Int16 &)
 
typedef OUString const **(* MyFunc_Type2) (sal_Int16 &, sal_Int16 &)
 
typedef OUString const ***(* MyFunc_Type3) (sal_Int16 &, sal_Int16 &, sal_Int16 &)
 
typedef OUString const *(* MyFunc_FormatCode) (sal_Int16 &, sal_Unicode const *&, sal_Unicode const *&)
 

Functions

static void i18npool::thisModule ()
 
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * com_sun_star_i18n_LocaleDataImpl_get_implementation (css::uno::XComponentContext *, css::uno::Sequence< css::uno::Any > const &)
 

Variables

static const char * lcl_DATA_EN = "localedata_en"
 
static const char * lcl_DATA_ES = "localedata_es"
 
static const char * lcl_DATA_EURO = "localedata_euro"
 
static const char * lcl_DATA_OTHERS = "localedata_others"
 
struct {
   const char *   pLocale
 
   const char *   pLib
 
aLibTable []
 
const sal_Unicode cUnder = '_'
 
const sal_Unicode cHyphen = '-'
 
const sal_Int16 nbOfLocales = SAL_N_ELEMENTS(aLibTable)
 

Macro Definition Documentation

◆ COLLATOR_ELEMENTS

#define COLLATOR_ELEMENTS   3

Definition at line 901 of file localedata.cxx.

◆ COLLATOR_OFFSET_ALGO

#define COLLATOR_OFFSET_ALGO   0

Definition at line 898 of file localedata.cxx.

◆ COLLATOR_OFFSET_DEFAULT

#define COLLATOR_OFFSET_DEFAULT   1

Definition at line 899 of file localedata.cxx.

◆ COLLATOR_OFFSET_RULE

#define COLLATOR_OFFSET_RULE   2

Definition at line 900 of file localedata.cxx.

◆ REF_DAYS

#define REF_DAYS   0

Definition at line 622 of file localedata.cxx.

◆ REF_ERAS

#define REF_ERAS   4

Definition at line 626 of file localedata.cxx.

◆ REF_GMONTHS

#define REF_GMONTHS   2

Definition at line 624 of file localedata.cxx.

◆ REF_MONTHS

#define REF_MONTHS   1

Definition at line 623 of file localedata.cxx.

◆ REF_OFFSET_COUNT

#define REF_OFFSET_COUNT   5

Definition at line 627 of file localedata.cxx.

◆ REF_PMONTHS

#define REF_PMONTHS   3

Definition at line 625 of file localedata.cxx.

Typedef Documentation

◆ MyFunc_FormatCode

typedef OUString const *(* MyFunc_FormatCode) (sal_Int16 &, sal_Unicode const *&, sal_Unicode const *&)

Definition at line 48 of file localedata.cxx.

◆ MyFunc_Type2

typedef OUString const **(* MyFunc_Type2) (sal_Int16 &, sal_Int16 &)

Definition at line 46 of file localedata.cxx.

◆ MyFunc_Type3

typedef OUString const ***(* MyFunc_Type3) (sal_Int16 &, sal_Int16 &, sal_Int16 &)

Definition at line 47 of file localedata.cxx.

◆ MyFuncOUString_Type

typedef OUString const *(* MyFuncOUString_Type) (sal_Int16 &)

Definition at line 45 of file localedata.cxx.

Function Documentation

◆ com_sun_star_i18n_LocaleDataImpl_get_implementation()

SAL_DLLPUBLIC_EXPORT css::uno::XInterface * com_sun_star_i18n_LocaleDataImpl_get_implementation ( css::uno::XComponentContext *  ,
css::uno::Sequence< css::uno::Any > const &   
)

Definition at line 1577 of file localedata.cxx.

Variable Documentation

◆ 

const struct { ... } aLibTable[]

◆ cBulletChar

sal_Unicode cBulletChar

Definition at line 1286 of file localedata.cxx.

◆ cHyphen

const sal_Unicode cHyphen = '-'

◆ cUnder

const sal_Unicode cUnder = '_'

◆ lcl_DATA_EN

const char* lcl_DATA_EN = "localedata_en"
static

Definition at line 52 of file localedata.cxx.

◆ lcl_DATA_ES

const char* lcl_DATA_ES = "localedata_es"
static

Definition at line 53 of file localedata.cxx.

◆ lcl_DATA_EURO

const char* lcl_DATA_EURO = "localedata_euro"
static

Definition at line 54 of file localedata.cxx.

◆ lcl_DATA_OTHERS

const char* lcl_DATA_OTHERS = "localedata_others"
static

Definition at line 55 of file localedata.cxx.

◆ m_nCount

sal_Int16 m_nCount
private

Definition at line 1302 of file localedata.cxx.

◆ m_pOutlineLevels

std::unique_ptr<const OutlineNumberingLevel_Impl[]> m_pOutlineLevels
private

Definition at line 1301 of file localedata.cxx.

◆ maLookupTable

::std::vector< LocaleDataLookupTableItem > maLookupTable
private

Definition at line 488 of file localedata.cxx.

◆ maMutex

std::mutex maMutex
private

Definition at line 487 of file localedata.cxx.

◆ nAdjust

sal_Int16 nAdjust

Definition at line 1292 of file localedata.cxx.

◆ nbOfLocales

const sal_Int16 nbOfLocales = SAL_N_ELEMENTS(aLibTable)

◆ nFirstLineOffset

sal_Int32 nFirstLineOffset

Definition at line 1291 of file localedata.cxx.

◆ nLeftMargin

sal_Int32 nLeftMargin

Definition at line 1289 of file localedata.cxx.

◆ nNatNum

sal_Int32 nNatNum

Definition at line 1294 of file localedata.cxx.

Referenced by i18npool::Calendar_gregorian::getDisplayStringImpl().

◆ nNumType

sal_Int16 nNumType

Definition at line 1284 of file localedata.cxx.

◆ nParentNumbering

sal_Int16 nParentNumbering

Definition at line 1288 of file localedata.cxx.

◆ nSymbolTextDistance

sal_Int32 nSymbolTextDistance

Definition at line 1290 of file localedata.cxx.

◆ pLib

const char* pLib

Definition at line 59 of file localedata.cxx.

◆ pLocale

const char* pLocale

Definition at line 58 of file localedata.cxx.

◆ sBulletFontName

OUString sBulletFontName

Definition at line 1287 of file localedata.cxx.

◆ sPrefix

OUString sPrefix

Definition at line 1283 of file localedata.cxx.

◆ sSuffix

OUString sSuffix

Definition at line 1285 of file localedata.cxx.

◆ sTransliteration

OUString sTransliteration

Definition at line 1293 of file localedata.cxx.