summaryrefslogtreecommitdiff
path: root/svl/source/numbers/zforfind.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-05-03 09:07:15 +0200
committerStephan Bergmann <sbergman@redhat.com>2018-05-03 09:07:15 +0200
commitf5a56c367fba1c42b4f9719b10ff3e86ad5e2ab1 (patch)
treea8c37f222193d46d2ff0b19817113c9a165f2ccc /svl/source/numbers/zforfind.hxx
parent7f580d4fba2da90da2ccfbad7f0e21c12e810a26 (diff)
Revert "Resolves: tdf#116579 consider both work locale and format locale date patterns"
This reverts commit dfb9138b8b5a239b46f189a717999bcaff19aa79, which caused CppunitTest_basic_macros to fail with > macro result for weekday.vb > macro returned: > Test Results > ============ > > Failed: : the return WeekDay is: 1 > Failed: : the return WeekDay is: 3 > Failed: : the return WeekDay is: 7 > Failed: : the return WeekDay is: 2 > Failed: : the return WeekDay is: 6 > Tests passed: 1 > Tests failed: 5 etc.
Diffstat (limited to 'svl/source/numbers/zforfind.hxx')
-rw-r--r--svl/source/numbers/zforfind.hxx19
1 files changed, 12 insertions, 7 deletions
diff --git a/svl/source/numbers/zforfind.hxx b/svl/source/numbers/zforfind.hxx
index e7ddb7e6f1d9..17b14edb4c2d 100644
--- a/svl/source/numbers/zforfind.hxx
+++ b/svl/source/numbers/zforfind.hxx
@@ -70,7 +70,6 @@ public:
private:
SvNumberFormatter* pFormatter;
- const SvNumberformat* mpFormat; //* The format to compare against, if any
std::unique_ptr<OUString[]> pUpperMonthText; //* Array of month names, uppercase
std::unique_ptr<OUString[]> pUpperAbbrevMonthText; //* Array of month names, abbreviated, uppercase
std::unique_ptr<OUString[]> pUpperGenitiveMonthText; //* Array of genitive month names, uppercase
@@ -284,7 +283,8 @@ private:
// Get currency symbol and advance string position
bool GetCurrency( const OUString& rString,
- sal_Int32& nPos );
+ sal_Int32& nPos,
+ const SvNumberformat* pFormat ); // number format to match against
// Get symbol AM or PM and advance string position
bool GetTimeAmPm( const OUString& rString,
@@ -324,23 +324,28 @@ private:
// Conversion of date to number
bool GetDateRef( double& fDays, // OUT: days diff to null date
- sal_uInt16& nCounter ); // Count of date substrings
+ sal_uInt16& nCounter, // Count of date substrings
+ const SvNumberformat* pFormat ); // number format to match against
// Analyze start of string
- bool ScanStartString( const OUString& rString );
+ bool ScanStartString( const OUString& rString,
+ const SvNumberformat* pFormat );
// Analyze middle substring
bool ScanMidString( const OUString& rString,
- sal_uInt16 nStringPos );
+ sal_uInt16 nStringPos,
+ const SvNumberformat* pFormat );
// Analyze end of string
- bool ScanEndString( const OUString& rString );
+ bool ScanEndString( const OUString& rString,
+ const SvNumberformat* pFormat );
// Compare rString to substring of array indexed by nString
// nString == 0xFFFF => last substring
bool ScanStringNumFor( const OUString& rString,
sal_Int32 nPos,
+ const SvNumberformat* pFormat,
sal_uInt16 nString,
bool bDontDetectNegation = false );
@@ -415,7 +420,7 @@ private:
/** Whether input is acceptable as ISO 8601 date format in the current
NfEvalDateFormat setting.
*/
- bool IsAcceptableIso8601();
+ bool IsAcceptableIso8601( const SvNumberformat* pFormat );
};
#endif // INCLUDED_SVL_SOURCE_NUMBERS_ZFORFIND_HXX