diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2022-10-28 17:38:41 +0200 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2023-01-19 18:46:35 +0100 |
commit | e7c7902e73b0d010f91fad9a4287b8315caa9a2a (patch) | |
tree | 43285c7e0d5a97bf7f4ac910fa1ec338bbba8809 /src/corelib/text/qlocale_p.h | |
parent | 2d7b9b02e991aecb51a27467f577b07563fd0e15 (diff) |
Let QLocaleData::numberToCLocale() know the type of number
Passing a NumberMode lets it exclude floating-specific details for
integer parsing. For now this is only partially exploited, but later
work shall make more use of it.
Fixes: QTBUG-81756
Change-Id: If11d3a5a122d0714f645e58a51ee0d0c47ebe61d
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/text/qlocale_p.h')
-rw-r--r-- | src/corelib/text/qlocale_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/text/qlocale_p.h b/src/corelib/text/qlocale_p.h index bd7f2be990..831bfe9eda 100644 --- a/src/corelib/text/qlocale_p.h +++ b/src/corelib/text/qlocale_p.h @@ -252,7 +252,7 @@ public: [[nodiscard]] static quint64 bytearrayToUnsLongLong(QByteArrayView num, int base, bool *ok); [[nodiscard]] bool numberToCLocale(QStringView s, QLocale::NumberOptions number_options, - CharBuff *result) const; + NumberMode mode, CharBuff *result) const; [[nodiscard]] inline char numericToCLocale(QStringView in) const; // this function is used in QIntValidator (QtGui) |