LibreOffice Module i18npool (master)  1
Macros | Typedefs | Functions | Variables
LocaleNode.cxx File Reference
#include <stdio.h>
#include <string.h>
#include <algorithm>
#include <memory>
#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

#define LOCALE_VERSION_DTD   "2.0.3"

Definition at line 38 of file LocaleNode.cxx.

Referenced by LocaleNode::generateCode().

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

Typedef Documentation

typedef ::o3tl::sorted_vector< OUString > NameSet

Definition at line 40 of file LocaleNode.cxx.

typedef ::o3tl::sorted_vector< sal_Int16 > ValueSet

Definition at line 41 of file LocaleNode.cxx.

Function Documentation

static bool isIso4217 ( const OUString &  rStr)
static

Definition at line 1894 of file LocaleNode.cxx.

References p.

Referenced by LCCurrencyNode::generateCode().

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

Variable Documentation

OUString aDateSep
static

Definition at line 282 of file LocaleNode.cxx.

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

OUString aDecSep
static

Definition at line 283 of file LocaleNode.cxx.

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

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 2044 of file LocaleNode.cxx.

OUString sTheCompatibleCurrency
static

Definition at line 512 of file LocaleNode.cxx.

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

OUString sTheCurrencyReplaceTo
static

Definition at line 511 of file LocaleNode.cxx.

Referenced by LCFormatNode::generateCode().

OUString sTheDateEditFormat
static

Definition at line 513 of file LocaleNode.cxx.

Referenced by LCFormatNode::generateCode().