LibreOffice Module i18npool (master) 1
Macros | Typedefs | Functions | Variables
LocaleNode.cxx File Reference
#include <stdio.h>
#include <string.h>
#include <algorithm>
#include <memory>
#include <utility>
#include <vector>
#include <map>
#include <o3tl/sorted_vector.hxx>
#include <o3tl/temporary.hxx>
#include <rtl/ustrbuf.hxx>
#include <sal/macros.h>
#include <sal/types.h>
#include "LocaleNode.hxx"
#include <i18npool/reservedconstants.hxx>
#include <com/sun/star/i18n/NumberFormatIndex.hpp>
#include <com/sun/star/xml/sax/XAttributeList.hpp>
Include dependency graph for LocaleNode.cxx:

Go to the source code of this file.

Macros

#define LOCALE_VERSION_DTD   "2.0.3"
 
#define OSTR(s)   (OUStringToOString( (s), RTL_TEXTENCODING_UTF8).getStr())
 

Typedefs

typedef ::o3tl::sorted_vector< OUString > NameSet
 
typedef ::o3tl::sorted_vector< sal_Int16 > ValueSet
 

Functions

static void lcl_writeAbbrFullNarrNames (const OFileWriter &of, const LocaleNode *currNode, const char *elementTag, sal_Int16 i, sal_Int16 j)
 
static void lcl_writeTabTagString (const OFileWriter &of, const char *pTag, const char *pStr)
 
static void lcl_writeTabTagStringNums (const OFileWriter &of, const char *pTag, const char *pStr, sal_Int16 i, sal_Int16 j)
 
static void lcl_writeAbbrFullNarrArrays (const OFileWriter &of, sal_Int16 nCount, const char *elementTag, sal_Int16 i, bool bNarrow)
 
static bool isIso4217 (const OUString &rStr)
 

Variables

static OUString aDateSep
 
static OUString aDecSep
 
static OUString sTheCurrencyReplaceTo
 
static OUString sTheCompatibleCurrency
 
static OUString sTheDateEditFormat
 
const NameValuePair ReserveWord []
 

Macro Definition Documentation

◆ LOCALE_VERSION_DTD

#define LOCALE_VERSION_DTD   "2.0.3"

Definition at line 39 of file LocaleNode.cxx.

◆ OSTR

#define OSTR (   s)    (OUStringToOString( (s), RTL_TEXTENCODING_UTF8).getStr())

Definition at line 128 of file LocaleNode.cxx.

Typedef Documentation

◆ NameSet

typedef ::o3tl::sorted_vector< OUString > NameSet

Definition at line 41 of file LocaleNode.cxx.

◆ ValueSet

typedef ::o3tl::sorted_vector< sal_Int16 > ValueSet

Definition at line 42 of file LocaleNode.cxx.

Function Documentation

◆ isIso4217()

static bool isIso4217 ( const OUString &  rStr)
static

Definition at line 1902 of file LocaleNode.cxx.

References p.

Referenced by LCCurrencyNode::generateCode().

◆ lcl_writeAbbrFullNarrArrays()

static void lcl_writeAbbrFullNarrArrays ( const OFileWriter of,
sal_Int16  nCount,
const char *  elementTag,
sal_Int16  i,
bool  bNarrow 
)
static

◆ lcl_writeAbbrFullNarrNames()

static void lcl_writeAbbrFullNarrNames ( const OFileWriter of,
const LocaleNode currNode,
const char *  elementTag,
sal_Int16  i,
sal_Int16  j 
)
static

◆ lcl_writeTabTagString()

static void lcl_writeTabTagString ( const OFileWriter of,
const char *  pTag,
const char *  pStr 
)
static

◆ lcl_writeTabTagStringNums()

static void lcl_writeTabTagStringNums ( const OFileWriter of,
const char *  pTag,
const char *  pStr,
sal_Int16  i,
sal_Int16  j 
)
static

Variable Documentation

◆ aDateSep

OUString aDateSep
static

Definition at line 281 of file LocaleNode.cxx.

Referenced by LCCTYPENode::generateCode(), and LCFormatNode::generateCode().

◆ aDecSep

OUString aDecSep
static

Definition at line 282 of file LocaleNode.cxx.

Referenced by LCCTYPENode::generateCode(), and LCFormatNode::generateCode().

◆ ReserveWord

const NameValuePair ReserveWord[]
Initial value:
= {
{ "trueWord", "true" },
{ "falseWord", "false" },
{ "quarter1Word", "1st quarter" },
{ "quarter2Word", "2nd quarter" },
{ "quarter3Word", "3rd quarter" },
{ "quarter4Word", "4th quarter" },
{ "aboveWord", "above" },
{ "belowWord", "below" },
{ "quarter1Abbreviation", "Q1" },
{ "quarter2Abbreviation", "Q2" },
{ "quarter3Abbreviation", "Q3" },
{ "quarter4Abbreviation", "Q4" }
}

Definition at line 2052 of file LocaleNode.cxx.

Referenced by LCMiscNode::generateCode().

◆ sTheCompatibleCurrency

OUString sTheCompatibleCurrency
static

Definition at line 511 of file LocaleNode.cxx.

Referenced by LCFormatNode::generateCode(), and LCCurrencyNode::generateCode().

◆ sTheCurrencyReplaceTo

OUString sTheCurrencyReplaceTo
static

Definition at line 510 of file LocaleNode.cxx.

Referenced by LCFormatNode::generateCode().

◆ sTheDateEditFormat

OUString sTheDateEditFormat
static

Definition at line 512 of file LocaleNode.cxx.

Referenced by LCFormatNode::generateCode().