LibreOffice Module svl (master) 1
|
#include <string_view>
#include <o3tl/sprintf.hxx>
#include <o3tl/string_view.hxx>
#include <comphelper/string.hxx>
#include <sal/log.hxx>
#include <tools/debug.hxx>
#include <tools/long.hxx>
#include <i18nlangtag/mslangid.hxx>
#include <rtl/math.hxx>
#include <unotools/charclass.hxx>
#include <unotools/calendarwrapper.hxx>
#include <unotools/nativenumberwrapper.hxx>
#include <com/sun/star/i18n/CalendarFieldIndex.hpp>
#include <com/sun/star/i18n/CalendarDisplayIndex.hpp>
#include <com/sun/star/i18n/CalendarDisplayCode.hpp>
#include <com/sun/star/i18n/AmPmValue.hpp>
#include <com/sun/star/i18n/NativeNumberMode.hpp>
#include <com/sun/star/i18n/NativeNumberXmlAttributes2.hpp>
#include <svl/zformat.hxx>
#include "zforscan.hxx"
#include "zforfind.hxx"
#include <svl/zforlist.hxx>
#include <unotools/digitgroupingiterator.hxx>
#include <svl/nfsymbol.hxx>
#include <cmath>
#include <array>
Go to the source code of this file.
Macros | |
#define | HAS_MINUTE_SECOND(state) ((state) == (kMM|kTS|kSS) || (state) == (kLB|kMM|kRB|kTS|kSS)) |
Functions | |
static tools::Long | GetPrecExp (double fAbsVal) |
static bool | lcl_SvNumberformat_IsBracketedPrefix (short nSymbolType) |
static bool | lcl_isNatNum12Currency (const OUString &sParam) |
static bool | lcl_matchKeywordAndGetNumber (std::u16string_view rString, const sal_Int32 nPos, std::u16string_view rKeyword, sal_Int32 &nNumber) |
static bool | lcl_appendStarFillChar (OUStringBuffer &rBuf, std::u16string_view rStr) |
static bool | lcl_insertStarFillChar (OUStringBuffer &rBuf, sal_Int32 nPos, std::u16string_view rStr) |
static bool | lcl_hasEra (const ImpSvNumFor &rNumFor) |
static bool | lcl_isSignedYear (const CalendarWrapper &rCal, const ImpSvNumFor &rNumFor) |
static bool | lcl_getValidDate (const DateTime &rNullDate, const DateTime &rEpochStart, double &fNumber) |
static void | lcl_SvNumberformat_AddLimitStringImpl (OUString &rStr, SvNumberformatLimitOps eOp, double fLimit, std::u16string_view rDecSep) |
static void | lcl_insertLCID (OUStringBuffer &rFormatStr, sal_uInt32 nLCID, sal_Int32 nPosInsertLCID, bool bDBNumInserted) |
static void | lcl_incrementAlphabetWithNatNum (sal_uInt32 &nAlphabetID, sal_uInt32 nNatNum) |
Increment nAlphabetID for CJK numerals +1 for financial numerals [NatNum2] +2 for Arabic fullwidth numerals [NatNum3]. More... | |
Variables | |
const double | D_MAX_U_INT32 = double(0xffffffff) |
constexpr double | D_MAX_INTEGER = (sal_uInt64(1) << 53) - 1 |
const double | D_MAX_D_BY_100 = 1.7E306 |
const double | D_MIN_M_BY_1000 = 2.3E-305 |
const sal_uInt8 | cCharWidths [128-32] |
const std::map< LanguageType, std::array< sal_uInt8, 4 > > | tblDBNumToNatNum |
const std::map< LanguageType, std::array< sal_uInt8, 9 > > | tblNatNumToDBNum |
#define HAS_MINUTE_SECOND | ( | state | ) | ((state) == (kMM|kTS|kSS) || (state) == (kLB|kMM|kRB|kTS|kSS)) |
|
static |
Definition at line 102 of file zformat.cxx.
References DBG_ASSERT.
Referenced by SvNumberformat::ImpGetNumberOutput().
|
static |
Definition at line 2174 of file zformat.cxx.
References u.
Referenced by SvNumberformat::GetOutputString(), SvNumberformat::ImpGetDateOutput(), SvNumberformat::ImpGetDateTimeOutput(), and SvNumberformat::ImpGetTimeOutput().
|
static |
Definition at line 3686 of file zformat.cxx.
References tools::Time::nanoSecPerSec, SAL_MAX_INT16, SAL_MIN_INT16, and DateTime::Sub().
Referenced by SvNumberformat::ImpGetDateOutput(), and SvNumberformat::ImpGetDateTimeOutput().
|
static |
Definition at line 3660 of file zformat.cxx.
References ImpSvNumFor::GetCount(), i, ImpSvNumFor::Info(), NF_KEY_G, NF_KEY_GG, NF_KEY_GGG, NF_KEY_RR, and ImpSvNumberformatInfo::nTypeArray.
Referenced by SvNumberformat::ImpGetDateOutput(), SvNumberformat::ImpGetDateTimeOutput(), and lcl_isSignedYear().
|
static |
Increment nAlphabetID for CJK numerals +1 for financial numerals [NatNum2] +2 for Arabic fullwidth numerals [NatNum3].
Definition at line 5226 of file zformat.cxx.
References nNatNum.
Referenced by SvNumberformat::GetMappedFormatstring().
|
static |
Definition at line 5202 of file zformat.cxx.
Referenced by SvNumberformat::GetMappedFormatstring().
|
static |
Definition at line 2187 of file zformat.cxx.
Referenced by SvNumberformat::ImpDecimalFill(), SvNumberformat::ImpNumberFill(), and SvNumberformat::ImpNumberFillWithThousands().
|
static |
Definition at line 726 of file zformat.cxx.
References n.
Referenced by SvNumberformat::SvNumberformat().
|
static |
Definition at line 3678 of file zformat.cxx.
References CalendarWrapper::getUniqueID(), CalendarWrapper::getValue(), and lcl_hasEra().
Referenced by SvNumberformat::ImpGetDateOutput(), and SvNumberformat::ImpGetDateTimeOutput().
|
static |
Definition at line 1643 of file zformat.cxx.
References o3tl::matchIgnoreAsciiCase(), nPos, and o3tl::toInt32().
Referenced by SvNumberformat::ImpNextSymbol().
|
static |
Definition at line 5165 of file zformat.cxx.
References NUMBERFORMAT_OP_EQ, NUMBERFORMAT_OP_GE, NUMBERFORMAT_OP_GT, NUMBERFORMAT_OP_LE, NUMBERFORMAT_OP_LT, NUMBERFORMAT_OP_NE, NUMBERFORMAT_OP_NO, and SAL_WARN.
Referenced by SvNumberformat::GetMappedFormatstring().
|
static |
Definition at line 377 of file zformat.cxx.
Referenced by SvNumberformat::SvNumberformat().
const sal_uInt8 cCharWidths[128-32] |
Definition at line 75 of file zformat.cxx.
Referenced by SvNumberformat::InsertBlanks().
const double D_MAX_D_BY_100 = 1.7E306 |
Definition at line 72 of file zformat.cxx.
Referenced by SvNumberformat::ImpGetNumberOutput(), and SvNumberformat::ImpGetOutputInputLine().
|
constexpr |
Definition at line 70 of file zformat.cxx.
Referenced by SvNumberformat::ImpGetFractionOutput().
const double D_MAX_U_INT32 = double(0xffffffff) |
Definition at line 69 of file zformat.cxx.
Referenced by SvNumberformat::ImpGetFractionOutput(), and SvNumberformat::ImpGetTimeOutput().
const double D_MIN_M_BY_1000 = 2.3E-305 |
Definition at line 73 of file zformat.cxx.
Referenced by SvNumberformat::ImpGetNumberOutput().
const std::map<LanguageType, std::array<sal_uInt8, 4> > tblDBNumToNatNum |
Definition at line 146 of file zformat.cxx.
Referenced by SvNumberNatNum::MapDBNumToNatNum().
const std::map<LanguageType, std::array<sal_uInt8, 9> > tblNatNumToDBNum |
Definition at line 181 of file zformat.cxx.
Referenced by SvNumberNatNum::MapNatNumToDBNum().