Files
Mike Kaganski d1c9252bf3 tdf#166342: refactor SbxValue::Format again, to handle date/time strings
Commit 81e1e0a2a671f19950c1bd3c69f9aa24b0c562e7 changed string-to-number
procedure from SvNumberFormatter to only use SbxValue::ScanNumIntnl. But
the latter can only handle strings with simple numbers, not with dates,
times and the like.

This change restores use of SvNumberFormatter to convert input strings
to number, when SbxValue::ScanNumIntnl fails. The code is re-structured
for performance, to avoid creating SvNumberFormatter twice, and repeated
calls to GetOUString.

Change-Id: I89a4fc041fe24fe00b099ab4fbee371d1f6b5567
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/185047
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
(cherry picked from commit 33434f16206aaa07f56af8f4c23b05b3c88a2124)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/185065
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-05-15 16:35:05 +02:00
..
2024-11-04 08:51:00 +01:00