(7838a57d2937070bb1a83122491f25b2b396553b)
#include "qlocale_tools_p.h"
#include "qdoublescanprint_p.h"
#include "qlocale_p.h"
#include "qstring.h"
#include <private/qtools_p.h>
#include <private/qnumeric_p.h>
#include <cstdio>
#include <ctype.h>
#include <errno.h>
#include <float.h>
#include <limits.h>
#include <math.h>
#include <stdlib.h>
#include <time.h>
#include <limits>
#include <charconv>
Go to the source code of this file.
|
QT_CLOCALE_HOLDER void | qt_doubleToAscii (double d, QLocaleData::DoubleForm form, int precision, char *buf, qsizetype bufSize, bool &sign, int &length, int &decpt) |
QSimpleParsedNumber< double > | qt_asciiToDouble (const char *num, qsizetype numLen, StrayCharacterMode strayCharMode) |
static auto | scanPrefix (const char *p, const char *stop, int base) |
static bool | isDigitForBase (char d, int base) |
QSimpleParsedNumber< qulonglong > | qstrntoull (const char *begin, qsizetype size, int base) |
QSimpleParsedNumber< qlonglong > | qstrntoll (const char *begin, qsizetype size, int base) |
template<typename Char> |
static Q_ALWAYS_INLINE void | qulltoString_helper (qulonglong number, int base, Char *&p) |
QString | qulltoBasicLatin (qulonglong number, int base, bool negative) |
QString | qulltoa (qulonglong number, int base, const QStringView zero) |
char * | qulltoa2 (char *p, qulonglong n, int base) |
double | qstrntod (const char *s00, qsizetype len, const char **se, bool *ok) |
QString | qdtoa (qreal d, int *decpt, int *sign) |
static QLocaleData::DoubleForm | resolveFormat (int precision, int decpt, qsizetype length) |
static constexpr int | digits (int number) |
template<typename T> |
static T | dtoString (double d, QLocaleData::DoubleForm form, int precision, bool uppercase) |
QString | qdtoBasicLatin (double d, QLocaleData::DoubleForm form, int precision, bool uppercase) |
QByteArray | qdtoAscii (double d, QLocaleData::DoubleForm form, int precision, bool uppercase) |
◆ BIG_BASE_LOOP
#define BIG_BASE_LOOP |
( |
| b | ) |
|
Value: do { \
*--
p =
Char((
r < 10 ?
'0' :
'a' - 10) +
r); \
GLboolean GLboolean GLboolean b
◆ LLONG_MAX
#define LLONG_MAX Q_INT64_C(0x7fffffffffffffff) |
◆ LLONG_MIN
◆ SMALL_BASE_LOOP
#define SMALL_BASE_LOOP |
( |
| b | ) |
|
◆ ULLONG_MAX
◆ digits()
constexpr int digits |
( |
int | number | ) |
|
|
staticconstexpr |
◆ dtoString()
◆ isDigitForBase()
bool isDigitForBase |
( |
char | d, |
|
|
int | base ) |
|
static |
◆ qdtoa()
◆ qdtoAscii()
◆ qdtoBasicLatin()
◆ qstrntod()
double qstrntod |
( |
const char * | s00, |
|
|
qsizetype | len, |
|
|
const char ** | se, |
|
|
bool * | ok ) |
|
nodiscard |
Converts the initial portion of the string pointed to by s00 to a double, using the 'C' locale. The function sets the pointer pointed to by se to point to the character past the last character converted.
Definition at line 575 of file qlocale_tools.cpp.
◆ qstrntoll()
◆ qstrntoull()
◆ qt_asciiToDouble()
◆ qt_doubleToAscii()
◆ qulltoa()
◆ qulltoa2()
char * qulltoa2 |
( |
char * | p, |
|
|
qulonglong | n, |
|
|
int | base ) |
|
nodiscard |
◆ qulltoBasicLatin()
◆ qulltoString_helper()
◆ resolveFormat()
◆ scanPrefix()
auto scanPrefix |
( |
const char * | p, |
|
|
const char * | stop, |
|
|
int | base ) |
|
static |