QLocale: move QSimpleParsedNumber to qlocale_p.h

It was defined in qlocale_tools_p.h which already includes qlocale_p.h.

Change-Id: I43464a27ec15266ce8632ca30dcd1c57d94b1f25
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Ahmad Samir 2023-03-21 23:38:36 +02:00
parent 67129ef9cd
commit 62d1ebe465
2 changed files with 8 additions and 8 deletions

View File

@ -32,6 +32,14 @@
QT_BEGIN_NAMESPACE
template <typename T> struct QSimpleParsedNumber
{
T result;
// When used < 0, -used is how much was used, but it was an error.
qsizetype used;
bool ok() const { return used > 0; }
};
template <typename MaskType, uchar Lowest> struct QCharacterSetMatch
{
static constexpr int MaxRange = std::numeric_limits<MaskType>::digits;

View File

@ -26,14 +26,6 @@ enum StrayCharacterMode {
WhitespacesAllowed
};
template <typename T> struct QSimpleParsedNumber
{
T result;
// When used < 0, -used is how much was used, but it was an error.
qsizetype used;
bool ok() const { return used > 0; }
};
// API note: this function can't process a number with more than 2.1 billion digits
[[nodiscard]] QSimpleParsedNumber<double>
qt_asciiToDouble(const char *num, qsizetype numLen,