LibreOffice Module svl (master) 1
Macros | Functions | Variables
zforfind.cxx File Reference
#include <cstdlib>
#include <dtoa.h>
#include <float.h>
#include <comphelper/string.hxx>
#include <o3tl/string_view.hxx>
#include <sal/log.hxx>
#include <tools/date.hxx>
#include <rtl/math.hxx>
#include <rtl/character.hxx>
#include <unotools/charclass.hxx>
#include <unotools/calendarwrapper.hxx>
#include <unotools/localedatawrapper.hxx>
#include <com/sun/star/i18n/CalendarFieldIndex.hpp>
#include <com/sun/star/i18n/LocaleCalendar2.hpp>
#include <unotools/digitgroupingiterator.hxx>
#include <comphelper/sequence.hxx>
#include <svl/zforlist.hxx>
#include "zforscan.hxx"
#include <svl/zformat.hxx>
#include <memory>
#include "zforfind.hxx"
Include dependency graph for zforfind.cxx:

Go to the source code of this file.

Macros

#define NF_TEST_CALENDAR   0
 
#define NF_RECOGNIZE_ISO8601_TIMEZONES   0
 

Functions

static void TransformInput (SvNumberFormatter const *pFormatter, OUString &rStr)
 
static bool lcl_IsSignedYearSep (std::u16string_view rStr, std::u16string_view rPat, sal_Int32 nPat)
 If a string is a separator plus '-' minus sign preceding a 'Y' year in a date pattern at position nPat. More...
 
static sal_Int32 lcl_getPatternSeparatorLength (std::u16string_view rPat, sal_Int32 nPat)
 Length of separator usually is 1 but theoretically could be anything. More...
 

Variables

const sal_Unicode cNoBreakSpace = 0xA0
 
const sal_Unicode cNarrowNoBreakSpace = 0x202F
 
const bool kDefaultEra = true
 

Macro Definition Documentation

◆ NF_RECOGNIZE_ISO8601_TIMEZONES

#define NF_RECOGNIZE_ISO8601_TIMEZONES   0

Definition at line 69 of file zforfind.cxx.

◆ NF_TEST_CALENDAR

#define NF_TEST_CALENDAR   0

Definition at line 48 of file zforfind.cxx.

Function Documentation

◆ lcl_getPatternSeparatorLength()

static sal_Int32 lcl_getPatternSeparatorLength ( std::u16string_view  rPat,
sal_Int32  nPat 
)
static

Length of separator usually is 1 but theoretically could be anything.

Definition at line 1287 of file zforfind.cxx.

Referenced by ImpSvNumberInputScan::IsAcceptedDatePattern(), and ImpSvNumberInputScan::SkipDatePatternSeparator().

◆ lcl_IsSignedYearSep()

static bool lcl_IsSignedYearSep ( std::u16string_view  rStr,
std::u16string_view  rPat,
sal_Int32  nPat 
)
static

If a string is a separator plus '-' minus sign preceding a 'Y' year in a date pattern at position nPat.

Definition at line 1269 of file zforfind.cxx.

Referenced by ImpSvNumberInputScan::IsAcceptedDatePattern(), and ImpSvNumberInputScan::SkipDatePatternSeparator().

◆ TransformInput()

static void TransformInput ( SvNumberFormatter const *  pFormatter,
OUString &  rStr 
)
static

Variable Documentation

◆ cNarrowNoBreakSpace

const sal_Unicode cNarrowNoBreakSpace = 0x202F

◆ cNoBreakSpace

const sal_Unicode cNoBreakSpace = 0xA0

◆ kDefaultEra

const bool kDefaultEra = true