Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qsqlnumeric_p.h File Reference

(e46cf88b5b5aa3237713ef34c0b7f52b5f0a7334)

#include <QtSql/private/qtsqlglobal_p.h>
#include <QtCore/private/qlocale_tools_p.h>
#include <QtCore/qbytearray.h>
#include <QtCore/qbytearrayview.h>
#include <QtCore/qloggingcategory.h>
#include <QtCore/qmetatype.h>
#include <QtCore/qstring.h>
#include <QtCore/qvariant.h>
#include <limits>
#include <type_traits>
Include dependency graph for qsqlnumeric_p.h:

Go to the source code of this file.

Namespaces

namespace  QtPrivate

Functions

template<typename T>
T QtPrivate::sqlIntPow10 (int nn)
template<typename T>
QString QtPrivate::sqlIntegerToString (T valval)
template<typename Narrow, typename T>
bool QtPrivate::sqlFitsIn (T valval)
template<typename T>
QString QtPrivate::sqlScaledToString (T valval, int scalescale)
template<typename T>
double QtPrivate::sqlScaledToDouble (T valval, int scalescale)
template<typename T>
QVariant QtPrivate::sqlApplyScale (T valval, int scalescale, QSql::NumericalPrecisionPolicy policy, bool *overflow=nullptr)
template<typename Category>
void QtPrivate::sqlWarnLowPrecisionOverflow (Category &&category, const QString &valuevalue, QSql::NumericalPrecisionPolicy policy)
bool QtPrivate::sqlExpandExponent (QByteArrayView inin, QByteArray *out)
bool QtPrivate::sqlIsIntegralVariant (int typeId)
QString QtPrivate::sqlOutOfRangeError (const QVariant &valval, int scalescale)
QString QtPrivate::sqlCannotEncodeError (const QByteArray &text, int scalescale)
QByteArray QtPrivate::sqlNumericInputString (const QVariant &valval)
bool QtPrivate::sqlSplitScaledDecimal (QByteArrayView decimal, int scalescale, bool *negativeOut, QByteArray *intPartOut, bool *roundUpOut)
bool QtPrivate::sqlIsPlainDecimal (QByteArrayView decimal)
template<typename T>
bool QtPrivate::sqlDecimalToScaled (QByteArrayView decimal, int scalescale, T *out)
template<typename T>
bool QtPrivate::sqlScaledFromVariant (const QVariant &valval, int scalescale, T *out, QString *errorText)

Variables

template<typename T>
constexpr bool QtPrivate::sqlIsInt128 = false