LibreOffice Module unotools (master) 1
Functions | Variables
localedatawrapper.cxx File Reference
#include <limits>
#include <stdio.h>
#include <string>
#include <sal/log.hxx>
#include <unotools/localedatawrapper.hxx>
#include <unotools/digitgroupingiterator.hxx>
#include <comphelper/diagnose_ex.hxx>
#include <tools/debug.hxx>
#include <i18nlangtag/languagetag.hxx>
#include <o3tl/safeint.hxx>
#include <com/sun/star/i18n/KNumberFormatUsage.hpp>
#include <com/sun/star/i18n/KNumberFormatType.hpp>
#include <com/sun/star/i18n/LocaleData2.hpp>
#include <com/sun/star/i18n/NumberFormatIndex.hpp>
#include <com/sun/star/i18n/NumberFormatMapper.hpp>
#include <comphelper/processfactory.hxx>
#include <comphelper/sequence.hxx>
#include <rtl/ustrbuf.hxx>
#include <rtl/math.hxx>
#include <tools/date.hxx>
#include <tools/time.hxx>
#include <tools/duration.hxx>
#include <o3tl/string_view.hxx>
#include <utility>
Include dependency graph for localedatawrapper.cxx:

Go to the source code of this file.

Functions

static DateOrder getDateOrderFromLongDateOrder (LongDateOrder eLong)
 
static void ImplAddUNum (OUStringBuffer &rBuf, sal_uInt64 nNumber)
 
static void ImplAddUNum (OUStringBuffer &rBuf, sal_uInt64 nNumber, int nMinLen)
 
static void ImplAddNum (OUStringBuffer &rBuf, sal_Int64 nNumber, int nMinLen)
 
static void ImplAdd2UNum (OUStringBuffer &rBuf, sal_uInt16 nNumber)
 
static void ImplAdd9UNum (OUStringBuffer &rBuf, sal_uInt32 nNumber)
 
static size_t ImplGetNumberStringLengthGuess (const css::i18n::LocaleDataItem2 &rLocaleDataItem, sal_uInt16 nDecimals)
 

Variables

const sal_uInt16 nCurrFormatDefault = 0
 

Function Documentation

◆ getDateOrderFromLongDateOrder()

static DateOrder getDateOrderFromLongDateOrder ( LongDateOrder  eLong)
static

Definition at line 772 of file localedatawrapper.cxx.

References DMY, MDY, YDM, and YMD.

Referenced by LocaleDataWrapper::loadDateOrders().

◆ ImplAdd2UNum()

static void ImplAdd2UNum ( OUStringBuffer &  rBuf,
sal_uInt16  nNumber 
)
static

◆ ImplAdd9UNum()

static void ImplAdd9UNum ( OUStringBuffer &  rBuf,
sal_uInt32  nNumber 
)
static

Definition at line 996 of file localedatawrapper.cxx.

References aStr, and DBG_ASSERT.

Referenced by LocaleDataWrapper::getDuration(), and LocaleDataWrapper::getTime().

◆ ImplAddNum()

static void ImplAddNum ( OUStringBuffer &  rBuf,
sal_Int64  nNumber,
int  nMinLen 
)
static

Definition at line 968 of file localedatawrapper.cxx.

References ImplAddUNum().

Referenced by LocaleDataWrapper::getDate(), and LocaleDataWrapper::getDuration().

◆ ImplAddUNum() [1/2]

static void ImplAddUNum ( OUStringBuffer &  rBuf,
sal_uInt64  nNumber 
)
static

Definition at line 916 of file localedatawrapper.cxx.

Referenced by LocaleDataWrapper::ImplAddFormatNum(), and ImplAddNum().

◆ ImplAddUNum() [2/2]

static void ImplAddUNum ( OUStringBuffer &  rBuf,
sal_uInt64  nNumber,
int  nMinLen 
)
static

Definition at line 938 of file localedatawrapper.cxx.

◆ ImplGetNumberStringLengthGuess()

static size_t ImplGetNumberStringLengthGuess ( const css::i18n::LocaleDataItem2 &  rLocaleDataItem,
sal_uInt16  nDecimals 
)
static

Variable Documentation

◆ nCurrFormatDefault

const sal_uInt16 nCurrFormatDefault = 0