(c85d8962576cdd6dbfce0508b585ab34cd94ebed)
#include "qlocale_p.h"
#include "qstring.h"
Go to the source code of this file.
|
QSimpleParsedNumber< double > | qt_asciiToDouble (const char *num, qsizetype numLen, StrayCharacterMode strayCharMode=TrailingJunkProhibited) |
|
void | qt_doubleToAscii (double d, QLocaleData::DoubleForm form, int precision, char *buf, qsizetype bufSize, bool &sign, int &length, int &decpt) |
|
QString | qulltoBasicLatin (qulonglong l, int base, bool negative) |
|
QString | qulltoa (qulonglong l, int base, const QStringView zero) |
|
char * | qulltoa2 (char *p, qulonglong n, int base) |
|
Q_CORE_EXPORT QString | qdtoa (qreal d, int *decpt, int *sign) |
|
QString | qdtoBasicLatin (double d, QLocaleData::DoubleForm form, int precision, bool uppercase) |
|
QByteArray | qdtoAscii (double d, QLocaleData::DoubleForm form, int precision, bool uppercase) |
|
int | wholePartSpace (double d) |
|
template<typename UcsInt> |
UcsInt | unicodeForDigit (uint digit, UcsInt zero) |
|
Q_CORE_EXPORT double | qstrntod (const char *s00, qsizetype len, char const **se, bool *ok) |
|
double | qstrtod (const char *s00, char const **se, bool *ok) |
|
Q_AUTOTEST_EXPORT QSimpleParsedNumber< qlonglong > | qstrntoll (const char *nptr, qsizetype size, int base) |
|
QSimpleParsedNumber< qulonglong > | qstrntoull (const char *nptr, qsizetype size, int base) |
|
◆ StrayCharacterMode
Enumerator |
---|
TrailingJunkProhibited | |
TrailingJunkAllowed | |
WhitespacesAllowed | |
Definition at line 36 of file qlocale_tools_p.h.
◆ 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 578 of file qlocale_tools.cpp.
◆ qstrntoll()
◆ qstrntoull()
◆ qstrtod()
double qstrtod |
( |
const char * | s00, |
|
|
char const ** | se, |
|
|
bool * | ok ) |
|
inlinenodiscard |
◆ qt_asciiToDouble()
◆ qt_doubleToAscii()
◆ qulltoa()
◆ qulltoa2()
char * qulltoa2 |
( |
char * | p, |
|
|
qulonglong | n, |
|
|
int | base ) |
|
nodiscard |
◆ qulltoBasicLatin()
◆ unicodeForDigit()
template<typename UcsInt>
UcsInt unicodeForDigit |
( |
uint | digit, |
|
|
UcsInt | zero ) |
|
inlinenodiscard |
◆ wholePartSpace()
int wholePartSpace |
( |
double | d | ) |
|
|
inlinenodiscard |