QtBase  v6.3.1
Enumerations | Functions
qlocale_tools_p.h File Reference
#include "qlocale_p.h"
#include "qstring.h"
Include dependency graph for qlocale_tools_p.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  StrayCharacterMode { TrailingJunkProhibited , TrailingJunkAllowed , WhitespacesAllowed }
 

Functions

double qt_asciiToDouble (const char *num, qsizetype numLen, bool &ok, int &processed, StrayCharacterMode strayCharMode=TrailingJunkProhibited)
 
void qt_doubleToAscii (double d, QLocaleData::DoubleForm form, int precision, char *buf, int bufSize, bool &sign, int &length, int &decpt)
 
QString qulltoBasicLatin (qulonglong l, int base, bool negative)
 
QString qulltoa (qulonglong l, int base, const QStringView zero)
 
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)
 
constexpr bool isZero (double d)
 
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)
 
qlonglong qstrntoll (const char *nptr, qsizetype size, const char **endptr, int base, bool *ok)
 
qulonglong qstrntoull (const char *nptr, qsizetype size, const char **endptr, int base, bool *ok)
 

Enumeration Type Documentation

◆ StrayCharacterMode

Enumerator
TrailingJunkProhibited 
TrailingJunkAllowed 
WhitespacesAllowed 

Definition at line 59 of file qlocale_tools_p.h.

Function Documentation

◆ isZero()

constexpr bool isZero ( double  d)
inlineconstexpr

Definition at line 79 of file qlocale_tools_p.h.

◆ qdtoa()

Q_CORE_EXPORT QString qdtoa ( qreal  d,
int *  decpt,
int *  sign 
)

Definition at line 615 of file qlocale_tools.cpp.

◆ qdtoAscii()

QByteArray qdtoAscii ( double  d,
QLocaleData::DoubleForm  form,
int  precision,
bool  uppercase 
)

Definition at line 836 of file qlocale_tools.cpp.

◆ qdtoBasicLatin()

QString qdtoBasicLatin ( double  d,
QLocaleData::DoubleForm  form,
int  precision,
bool  uppercase 
)

Definition at line 831 of file qlocale_tools.cpp.

◆ qstrntod()

Q_CORE_EXPORT double qstrntod ( const char *  s00,
qsizetype  len,
char const **  se,
bool *  ok 
)

Definition at line 603 of file qlocale_tools.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ qstrntoll()

qlonglong qstrntoll ( const char *  nptr,
qsizetype  size,
const char **  endptr,
int  base,
bool *  ok 
)

Definition at line 473 of file qlocale_tools.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ qstrntoull()

qulonglong qstrntoull ( const char *  nptr,
qsizetype  size,
const char **  endptr,
int  base,
bool *  ok 
)

Definition at line 445 of file qlocale_tools.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ qstrtod()

double qstrtod ( const char *  s00,
char const **  se,
bool *  ok 
)
inline

Definition at line 113 of file qlocale_tools_p.h.

Here is the call graph for this function:

◆ qt_asciiToDouble()

double qt_asciiToDouble ( const char *  num,
qsizetype  numLen,
bool &  ok,
int &  processed,
StrayCharacterMode  strayCharMode = TrailingJunkProhibited 
)

Definition at line 281 of file qlocale_tools.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ qt_doubleToAscii()

void qt_doubleToAscii ( double  d,
QLocaleData::DoubleForm  form,
int  precision,
char *  buf,
int  bufSize,
bool &  sign,
int &  length,
int &  decpt 
)

Definition at line 78 of file qlocale_tools.cpp.

◆ qulltoa()

QString qulltoa ( qulonglong  l,
int  base,
const QStringView  zero 
)

Definition at line 562 of file qlocale_tools.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ qulltoBasicLatin()

QString qulltoBasicLatin ( qulonglong  l,
int  base,
bool  negative 
)

Definition at line 544 of file qlocale_tools.cpp.

Here is the caller graph for this function:

◆ unicodeForDigit()

template<typename UcsInt >
UcsInt unicodeForDigit ( uint  digit,
UcsInt  zero 
)
inline

Definition at line 95 of file qlocale_tools_p.h.

Here is the caller graph for this function:

◆ wholePartSpace()

int wholePartSpace ( double  d)
inline

Definition at line 85 of file qlocale_tools_p.h.

Here is the caller graph for this function: