Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

qlocale.cpp File Reference

#include <sys/types.h>
#include <ctype.h>
#include <float.h>
#include <limits.h>
#include <math.h>
#include <stdlib.h>
#include "qlocale.h"
#include "qlocale_p.h"

Include dependency graph for qlocale.cpp:

Go to the source code of this file.

Defines

#define INFINITY   (::inf())
#define NAN   (::nan())
#define LLONG_MAX   Q_INT64_C(9223372036854775807)
#define LLONG_MIN   (-LLONG_MAX - Q_INT64_C(1))
#define ULLONG_MAX   Q_UINT64_C(0xffffffffffffffff)
#define IEEE_BIG_OR_LITTLE_ENDIAN   1
#define Long   Q_INT32
#define ULong   Q_UINT32
#define MALLOC   malloc
#define CONST   const
#define Sign_Extend(a, b)
#define word0(x)   ((volatile ULong *)&x)[ByteOrder == BigEndian ? 0 : 1]
#define word1(x)   ((volatile ULong *)&x)[ByteOrder == BigEndian ? 1 : 0]
#define USE_LITTLE_ENDIAN   0
#define USE_IEEE   1
#define Exp_shift   20
#define Exp_shift1   20
#define Exp_msk1   0x100000
#define Exp_msk11   0x100000
#define Exp_mask   0x7ff00000
#define P   53
#define Bias   1023
#define IEEE_Arith
#define Emin   (-1022)
#define Exp_1   0x3ff00000
#define Exp_11   0x3ff00000
#define Ebits   11
#define Frac_mask   0xfffff
#define Frac_mask1   0xfffff
#define Ten_pmax   22
#define Bletch   0x10
#define Bndry_mask   0xfffff
#define Bndry_mask1   0xfffff
#define LSB   1
#define Sign_bit   0x80000000
#define Log2P   1
#define Tiny0   0
#define Tiny1   1
#define Quick_max   14
#define Int_max   14
#define Infinite(x)   (word0(x) == 0x7ff00000)
#define rounded_product(a, b)   a *= b
#define rounded_quotient(a, b)   a /= b
#define Big0   (Frac_mask1 | Exp_msk1*(DBL_MAX_EXP+Bias-1))
#define Big1   0xffffffff
#define Kmax   15
#define Bcopy(x, y)
#define d0   word0(d)
#define d1   word1(d)
#define d0   word0(d)
#define d1   word1(d)
#define n_bigtens   5

Typedefs

typedef Bigint Bigint

Enumerations

enum  { LittleEndian, BigEndian }
enum  PrecisionMode { PMDecimalDigits = 0x01, PMSignificantDigits = 0x02, PMChopTrailingZeros = 0x03 }

Functions

static double inf ()
static double nan ()
static char * qdtoa (double d, int mode, int ndigits, int *decpt, int *sign, char **rve, char **digits_str)
static double qstrtod (const char *s00, char const **se, bool *ok)
static Q_LLONG qstrtoll (const char *nptr, const char **endptr, register int base, bool *ok)
static Q_ULLONG qstrtoull (const char *nptr, const char **endptr, register int base, bool *ok)
static QLocale::Language codeToLanguage (const QString &code)
static QLocale::Country codeToCountry (const QString &code)
static QString languageToCode (QLocale::Language language)
static QString countryToCode (QLocale::Country country)
static const QLocalePrivatefindLocale (QLocale::Language language, QLocale::Country country)
static bool qIsUpper (char c)
static char qToLower (char c)
static char digitToCLocale (QChar zero, QChar d)
static QString qulltoa (Q_ULLONG l, int base, const QLocalePrivate &locale)
static QString qlltoa (Q_LLONG l, int base, const QLocalePrivate &locale)
static QStringdecimalForm (QString &digits, int decpt, uint precision, PrecisionMode pm, bool always_show_decpt, bool thousands_group, const QLocalePrivate &locale)
static QStringexponentForm (QString &digits, int decpt, uint precision, PrecisionMode pm, bool always_show_decpt, const QLocalePrivate &locale)
static bool compareSubstr (const QString &s1, uint idx, const QString &s2)
static void stripWhiteSpaceInPlace (QString &s)
static void Storeinc (ULong *&a, const ULong &b, const ULong &c)
static BigintBalloc (int k)
static void Bfree (Bigint *v)
static Bigintmultadd (Bigint *b, int m, int a)
static Bigints2b (CONST char *s, int nd0, int nd, ULong y9)
static int hi0bits (ULong x)
static int lo0bits (ULong *y)
static Biginti2b (int i)
static Bigintmult (Bigint *a, Bigint *b)
static Bigintpow5mult (Bigint *b, int k)
static Bigintlshift (Bigint *b, int k)
static int cmp (Bigint *a, Bigint *b)
static Bigintdiff (Bigint *a, Bigint *b)
static double ulp (volatile double x)
static double b2d (Bigint *a, int *e)
static Bigintd2b (double d, int *e, int *bits)
static double ratio (Bigint *a, Bigint *b)
static double qstrtod (CONST char *s00, CONST char **se, bool *ok)
static int quorem (Bigint *b, Bigint *S)

Variables

static const unsigned int one = 1
static const bool ByteOrder = ((*((unsigned char *) &one) == 0) ? BigEndian : LittleEndian)
static const unsigned char be_inf_bytes [] = { 0x7f, 0xf0, 0, 0, 0, 0, 0, 0 }
static const unsigned char le_inf_bytes [] = { 0, 0, 0, 0, 0, 0, 0xf0, 0x7f }
static const unsigned char be_nan_bytes [] = { 0x7f, 0xf8, 0, 0, 0, 0, 0, 0 }
static const unsigned char le_nan_bytes [] = { 0, 0, 0, 0, 0, 0, 0xf8, 0x7f }
static const uint locale_index []
static const QLocalePrivate locale_data []
static const char language_name_list []
static const uint language_name_index []
static const char country_name_list []
static const uint country_name_index []
static const char language_code_list []
static const char country_code_list []
static Bigintp5s
static CONST double tens []
static CONST double bigtens [] = { 1e16, 1e32, 1e64, 1e128, 1e256 }
static CONST double tinytens [] = { 1e-16, 1e-32, 1e-64, 1e-128, 1e-256 }
static double g_double_zero = 0.0


Define Documentation

#define Bcopy x,
y   ) 
 

Value:

memcpy((char *)&x->sign, (char *)&y->sign, \
y->wds*sizeof(Long) + 2*sizeof(int))

Definition at line 4078 of file qlocale.cpp.

Referenced by multadd(), qdtoa(), and qstrtod().

#define Bias   1023
 

Definition at line 3944 of file qlocale.cpp.

Referenced by d2b(), qdtoa(), and qstrtod().

#define Big0   (Frac_mask1 | Exp_msk1*(DBL_MAX_EXP+Bias-1))
 

Definition at line 4035 of file qlocale.cpp.

Referenced by qstrtod().

#define Big1   0xffffffff
 

Definition at line 4036 of file qlocale.cpp.

Referenced by qstrtod().

#define Bletch   0x10
 

Definition at line 3953 of file qlocale.cpp.

Referenced by qdtoa().

#define Bndry_mask   0xfffff
 

Definition at line 3954 of file qlocale.cpp.

Referenced by qdtoa(), and qstrtod().

#define Bndry_mask1   0xfffff
 

Definition at line 3955 of file qlocale.cpp.

Referenced by qstrtod().

#define CONST   const
 

Definition at line 3865 of file qlocale.cpp.

Referenced by qstrtod().

#define d0   word0(d)
 

#define d0   word0(d)
 

Referenced by b2d(), and d2b().

#define d1   word1(d)
 

#define d1   word1(d)
 

Referenced by b2d(), TranInfoList::compareItems(), GfxState::concatCTM(), d2b(), OProcess::flushStdin(), Opie::Core::OProcess::flushStdin(), Sheet::functionCount(), Sheet::functionMax(), Sheet::functionMin(), Sheet::functionSum(), Sheet::functionSumSQ(), ExcelBook::GetFormula(), QTReaderApp::showinfo(), and ZSafe::ZSafe().

#define Ebits   11
 

Definition at line 3949 of file qlocale.cpp.

Referenced by b2d().

#define Emin   (-1022)
 

Definition at line 3946 of file qlocale.cpp.

Referenced by qstrtod().

#define Exp_1   0x3ff00000
 

Definition at line 3947 of file qlocale.cpp.

Referenced by b2d().

#define Exp_11   0x3ff00000
 

Definition at line 3948 of file qlocale.cpp.

Referenced by qdtoa().

#define Exp_mask   0x7ff00000
 

Definition at line 3942 of file qlocale.cpp.

Referenced by qdtoa(), qstrtod(), and ulp().

#define Exp_msk1   0x100000
 

Definition at line 3940 of file qlocale.cpp.

Referenced by d2b(), qdtoa(), qstrtod(), ratio(), and ulp().

#define Exp_msk11   0x100000
 

Definition at line 3941 of file qlocale.cpp.

Referenced by d2b().

#define Exp_shift   20
 

Definition at line 3938 of file qlocale.cpp.

Referenced by d2b(), and ulp().

#define Exp_shift1   20
 

Definition at line 3939 of file qlocale.cpp.

Referenced by qdtoa().

#define Frac_mask   0xfffff
 

Definition at line 3950 of file qlocale.cpp.

Referenced by d2b(), and qdtoa().

#define Frac_mask1   0xfffff
 

Definition at line 3951 of file qlocale.cpp.

Referenced by qdtoa().

#define IEEE_Arith
 

Definition at line 3945 of file qlocale.cpp.

#define IEEE_BIG_OR_LITTLE_ENDIAN   1
 

Definition at line 3846 of file qlocale.cpp.

#define Infinite  )     (word0(x) == 0x7ff00000)
 

Definition at line 3963 of file qlocale.cpp.

#define INFINITY   (::inf())
 

Definition at line 102 of file qlocale.cpp.

Referenced by QLocalePrivate::doubleToString(), and QLocalePrivate::stringToDouble().

#define Int_max   14
 

Definition at line 3962 of file qlocale.cpp.

Referenced by qdtoa().

#define Kmax   15
 

Definition at line 4049 of file qlocale.cpp.

#define LLONG_MAX   Q_INT64_C(9223372036854775807)
 

Definition at line 119 of file qlocale.cpp.

#define LLONG_MIN   (-LLONG_MAX - Q_INT64_C(1))
 

Definition at line 122 of file qlocale.cpp.

#define Log2P   1
 

Definition at line 3958 of file qlocale.cpp.

Referenced by qdtoa(), and qstrtod().

#define Long   Q_INT32
 

Definition at line 3861 of file qlocale.cpp.

Referenced by Balloc(), diff(), qdtoa(), qstrtod(), quorem(), s2b(), and ulp().

#define LSB   1
 

Definition at line 3956 of file qlocale.cpp.

Referenced by qstrtod().

#define MALLOC   malloc
 

Definition at line 3864 of file qlocale.cpp.

Referenced by Balloc().

#define n_bigtens   5
 

Definition at line 4774 of file qlocale.cpp.

Referenced by qdtoa(), and qstrtod().

#define NAN   (::nan())
 

Definition at line 114 of file qlocale.cpp.

Referenced by QLocalePrivate::stringToDouble().

#define P   53
 

Definition at line 3943 of file qlocale.cpp.

Referenced by d2b(), System::execAsUser(), TheNSResources::getPixmap(), ANetNode::isToplevel(), Opietooth2::OTGateway::loadActiveNetworkSetups(), Opietooth2::OTPairing::OTPairing(), Opietooth2::OTScan::OTScan(), qdtoa(), qstrtod(), System::runAsRoot(), BluetoothRFCOMMEdit::showData(), BluetoothRFCOMMEdit::SLOT_AddServer(), Opietooth2::OTInquiry::slotHCIEvent(), and ulp().

#define Quick_max   14
 

Definition at line 3961 of file qlocale.cpp.

Referenced by qdtoa().

#define rounded_product a,
 )     a *= b
 

Definition at line 4031 of file qlocale.cpp.

Referenced by qstrtod().

#define rounded_quotient a,
 )     a /= b
 

Definition at line 4032 of file qlocale.cpp.

Referenced by qstrtod().

#define Sign_bit   0x80000000
 

Definition at line 3957 of file qlocale.cpp.

Referenced by qdtoa().

#define Sign_Extend a,
 ) 
 

Definition at line 3875 of file qlocale.cpp.

Referenced by diff(), and quorem().

#define Ten_pmax   22
 

Definition at line 3952 of file qlocale.cpp.

Referenced by qdtoa(), and qstrtod().

#define Tiny0   0
 

Definition at line 3959 of file qlocale.cpp.

Referenced by qstrtod().

#define Tiny1   1
 

Definition at line 3960 of file qlocale.cpp.

Referenced by qstrtod().

#define ULLONG_MAX   Q_UINT64_C(0xffffffffffffffff)
 

Definition at line 125 of file qlocale.cpp.

Referenced by qstrtoull().

#define ULong   Q_UINT32
 

Definition at line 3862 of file qlocale.cpp.

Referenced by b2d(), cmp(), d2b(), diff(), lo0bits(), lshift(), mult(), multadd(), qdtoa(), qstrtod(), and quorem().

#define USE_IEEE   1
 

Referenced by Storeinc().

#define USE_LITTLE_ENDIAN   0
 

Referenced by Storeinc().

#define word0  )     ((volatile ULong *)&x)[ByteOrder == BigEndian ? 0 : 1]
 

Definition at line 3883 of file qlocale.cpp.

Referenced by b2d(), d2b(), qdtoa(), qstrtod(), ratio(), and ulp().

#define word1  )     ((volatile ULong *)&x)[ByteOrder == BigEndian ? 1 : 0]
 

Definition at line 3884 of file qlocale.cpp.

Referenced by b2d(), d2b(), qdtoa(), qstrtod(), and ulp().


Typedef Documentation

typedef struct Bigint Bigint
 

Definition at line 4058 of file qlocale.cpp.


Enumeration Type Documentation

anonymous enum
 

Enumeration values:
LittleEndian 
BigEndian 

Definition at line 74 of file qlocale.cpp.

enum PrecisionMode
 

Enumeration values:
PMDecimalDigits 
PMSignificantDigits 
PMChopTrailingZeros 

Definition at line 2891 of file qlocale.cpp.


Function Documentation

static double b2d Bigint a,
int *  e
[static]
 

Definition at line 4540 of file qlocale.cpp.

References d, d0, d1, Ebits, Exp_1, hi0bits(), Bigint::k, ULong, Bigint::wds, word0, word1, Bigint::x, and Opie::MM::y.

Referenced by ratio().

static Bigint* Balloc int  k  )  [static]
 

Definition at line 4060 of file qlocale.cpp.

References Bigint::k, Long, MALLOC, Bigint::maxwds, Bigint::sign, Bigint::wds, and Opie::MM::x.

Referenced by d2b(), diff(), i2b(), lshift(), mult(), multadd(), qdtoa(), qstrtod(), and s2b().

static void Bfree Bigint v  )  [static]
 

Definition at line 4073 of file qlocale.cpp.

Referenced by lshift(), multadd(), pow5mult(), qdtoa(), and qstrtod().

static int cmp Bigint a,
Bigint b
[static]
 

Definition at line 4404 of file qlocale.cpp.

References i, ULong, Bigint::wds, and Bigint::x.

Referenced by _muldiv(), _muldivr(), diff(), Catalog::findDestInTree(), Gfx::findOp(), PostScriptFunction::parseCode(), qdtoa(), qstrtod(), quorem(), and XLessThanY().

static QLocale::Country codeToCountry const QString code  )  [static]
 

Definition at line 1590 of file qlocale.cpp.

References QLocale::AnyCountry, and country_code_list.

Referenced by QLocale::QLocale().

static QLocale::Language codeToLanguage const QString code  )  [static]
 

Definition at line 1573 of file qlocale.cpp.

References QLocale::C, language_code_list, QString::length(), and QString::unicode().

Referenced by QLocale::QLocale().

static bool compareSubstr const QString s1,
uint  idx,
const QString s2
[static]
 

Definition at line 3269 of file qlocale.cpp.

References i, QString::length(), and QString::unicode().

Referenced by QLocalePrivate::numberToCLocale().

static QString countryToCode QLocale::Country  country  )  [static]
 

Definition at line 1620 of file qlocale.cpp.

References QLocale::AnyCountry, code, country_code_list, QString::null, and QString::setLength().

Referenced by QLocale::name().

static Bigint* d2b double  d,
int *  e,
int *  bits
[static]
 

Definition at line 4604 of file qlocale.cpp.

References Balloc(), Bias, d0, d1, Exp_msk1, Exp_msk11, Exp_shift, Frac_mask, hi0bits(), i, Bigint::k, lo0bits(), P, ULong, Bigint::wds, word0, word1, Bigint::x, Opie::MM::x, and Opie::MM::y.

Referenced by qdtoa(), and qstrtod().

static QString& decimalForm QString digits,
int  decpt,
uint  precision,
PrecisionMode  pm,
bool  always_show_decpt,
bool  thousands_group,
const QLocalePrivate locale
[static]
 

Definition at line 2897 of file qlocale.cpp.

References QString::append(), QLocalePrivate::decimal(), QLocalePrivate::group(), i, QString::insert(), QString::length(), PMDecimalDigits, PMSignificantDigits, QString::prepend(), and QLocalePrivate::zero().

Referenced by QLocalePrivate::doubleToString().

static Bigint* diff Bigint a,
Bigint b
[static]
 

Definition at line 4432 of file qlocale.cpp.

References Balloc(), cmp(), i, Long, Bigint::sign, Sign_Extend, Storeinc(), ULong, Bigint::wds, Bigint::x, and Opie::MM::y.

Referenced by ChrisHoliday::calc_christmas(), Board::contentsMouseMoveEvent(), contrastingForeground(), FastValueList< Ptr >::fastat(), SFCave::handleGameFly(), SFCave::handleMenuSelect(), Qt3::QTextEdit::handleMouseMove(), QIMPenChar::match(), nextOccurance(), ORecur::p_nextOccurrence(), Opie::OPimRecurrence::p_nextOccurrence(), qdtoa(), qstrtod(), SFCave::SFCave(), PredictTabWidget::slotPredictTime(), and FlyGame::update().

static char digitToCLocale QChar  zero,
QChar  d
[static]
 

Definition at line 2844 of file qlocale.cpp.

References QChar::cell(), qWarning(), QChar::row(), and QChar::unicode().

Referenced by QLocalePrivate::numberToCLocale().

static QString& exponentForm QString digits,
int  decpt,
uint  precision,
PrecisionMode  pm,
bool  always_show_decpt,
const QLocalePrivate locale
[static]
 

Definition at line 2939 of file qlocale.cpp.

References QLocalePrivate::AlwaysShowSign, QString::append(), QLocalePrivate::decimal(), QLocalePrivate::exponential(), i, QString::insert(), QString::length(), QLocalePrivate::longLongToString(), PMDecimalDigits, PMSignificantDigits, and QLocalePrivate::zero().

Referenced by QLocalePrivate::doubleToString().

static const QLocalePrivate* findLocale QLocale::Language  language,
QLocale::Country  country
[static]
 

Definition at line 1693 of file qlocale.cpp.

References QLocale::AnyCountry, QLocalePrivate::countryId(), d, QLocalePrivate::languageId(), locale_index, and Q_ASSERT.

Referenced by QLocale::QLocale().

static int hi0bits ULong  x  )  [static]
 

Definition at line 4153 of file qlocale.cpp.

References Bigint::k.

Referenced by b2d(), d2b(), and qdtoa().

static Bigint* i2b int  i  )  [static]
 

Definition at line 4223 of file qlocale.cpp.

References Balloc(), Bigint::wds, and Bigint::x.

Referenced by pow5mult(), qdtoa(), and qstrtod().

static double inf  )  [inline, static]
 

Definition at line 96 of file qlocale.cpp.

References be_inf_bytes, BigEndian, ByteOrder, and le_inf_bytes.

Referenced by DCIM_DirLister::deleteImage(), DCIM_DirLister::findCameras(), ThumbNailTool::getThumb(), infoDlg::infoDlg(), ThumbNailTool::putThumb(), SlaveReciever::recieveAnswer(), saveLastDir(), PMainWindow::slotConfig(), SlaveReciever::slotImageInfo(), SlaveReciever::slotThumbNail(), and DCIM_DirLister::thumbNail().

static QString languageToCode QLocale::Language  language  )  [static]
 

Definition at line 1607 of file qlocale.cpp.

References QLocale::C, code, language_code_list, and QString::setLength().

Referenced by QLocale::name().

static int lo0bits ULong *  y  )  [static]
 

Definition at line 4181 of file qlocale.cpp.

References Bigint::k, ULong, and Opie::MM::x.

Referenced by d2b().

static Bigint* lshift Bigint b,
int  k
[static]
 

Definition at line 4350 of file qlocale.cpp.

References Balloc(), Bfree(), i, Bigint::k, Bigint::maxwds, ULong, Bigint::wds, Bigint::x, and Opie::MM::x.

Referenced by qdtoa(), and qstrtod().

static Bigint* mult Bigint a,
Bigint b
[static]
 

Definition at line 4233 of file qlocale.cpp.

References Balloc(), Bigint::k, Bigint::maxwds, Storeinc(), ULong, Bigint::wds, Bigint::x, Opie::MM::x, and Opie::MM::y.

Referenced by Board::bonussedValue(), QtRec::checkDiskSpace(), AdvancedFm::checkDiskSpace(), FormatterApp::deviceComboSelected(), InstallDlgImpl::displayAvailableSpace(), AdvancedFm::getDiskSpace(), Load::paintEvent(), pow5mult(), qdtoa(), qstrtod(), InstallDlg::slotDisplayAvailSpace(), and MountInfo::updateData().

static Bigint* multadd Bigint b,
int  m,
int  a
[static]
 

Definition at line 4082 of file qlocale.cpp.

References Balloc(), Bcopy, Bfree(), i, Bigint::k, Bigint::maxwds, ULong, Bigint::wds, Bigint::x, Opie::MM::x, and Opie::MM::y.

Referenced by pow5mult(), qdtoa(), and s2b().

static double nan  )  [inline, static]
 

Definition at line 108 of file qlocale.cpp.

References be_nan_bytes, BigEndian, ByteOrder, and le_nan_bytes.

static Bigint* pow5mult Bigint b,
int  k
[static]
 

Definition at line 4317 of file qlocale.cpp.

References Bfree(), i, i2b(), mult(), multadd(), and Bigint::next.

Referenced by qdtoa(), and qstrtod().

static char * qdtoa double  d,
int  mode,
int  ndigits,
int *  decpt,
int *  sign,
char **  rve,
char **  digits_str
[static]
 

Definition at line 5483 of file qlocale.cpp.

References Balloc(), Bcopy, Bfree(), Bias, Bletch, Bndry_mask, cmp(), d2b(), diff(), eps, Exp_11, Exp_mask, Exp_msk1, Exp_shift1, Frac_mask, Frac_mask1, hi0bits(), i, i2b(), Int_max, Bigint::k, Log2P, Long, lshift(), mult(), multadd(), n_bigtens, NULL, P, pow5mult(), Quick_max, quorem(), s, S, Bigint::sign, Sign_bit, Ten_pmax, ULong, Bigint::wds, word0, word1, Bigint::x, and Opie::MM::x.

Referenced by QLocalePrivate::doubleToString().

static bool qIsUpper char  c  )  [static]
 

Definition at line 2707 of file qlocale.cpp.

Referenced by QLocale::toString().

static QString qlltoa Q_LLONG  l,
int  base,
const QLocalePrivate locale
[static]
 

Definition at line 2886 of file qlocale.cpp.

References qulltoa().

Referenced by QLocalePrivate::longLongToString().

static double qstrtod CONST char *  s00,
CONST char **  se,
bool *  ok
[static]
 

Definition at line 4798 of file qlocale.cpp.

References Balloc(), Bcopy, Bfree(), Bias, Big0, Big1, Bndry_mask, Bndry_mask1, cmp(), CONST, d2b(), diff(), Emin, Exp_mask, Exp_msk1, i, i2b(), Bigint::k, Log2P, Long, LSB, lshift(), mult(), n_bigtens, NULL, P, pow5mult(), ratio(), rounded_product, rounded_quotient, s, s2b(), Bigint::sign, Ten_pmax, Tiny0, Tiny1, ULong, ulp(), word0, word1, and Opie::MM::y.

static double qstrtod const char *  s00,
char const **  se,
bool *  ok
[static]
 

Referenced by QLocalePrivate::stringToDouble().

static Q_LLONG qstrtoll const char *  nptr,
const char **  endptr,
register int  base,
bool *  ok
[static]
 

Definition at line 3664 of file qlocale.cpp.

References LLONG_MAX, LLONG_MIN, and s.

Referenced by QLocalePrivate::stringToLongLong().

static Q_ULLONG qstrtoull const char *  nptr,
const char **  endptr,
register int  base,
bool *  ok
[static]
 

Definition at line 3583 of file qlocale.cpp.

References s, and ULLONG_MAX.

Referenced by QLocalePrivate::stringToUnsLongLong().

static char qToLower char  c  )  [static]
 

Definition at line 2712 of file qlocale.cpp.

Referenced by QLocale::toString().

static QString qulltoa Q_ULLONG  l,
int  base,
const QLocalePrivate locale
[static]
 

Definition at line 2854 of file qlocale.cpp.

References p, and QLocalePrivate::zero().

Referenced by QLocalePrivate::longLongToString(), qlltoa(), and QLocalePrivate::unsLongLongToString().

static int quorem Bigint b,
Bigint S
[static]
 

Definition at line 5345 of file qlocale.cpp.

References cmp(), Long, Sign_Extend, Storeinc(), ULong, Bigint::wds, Bigint::x, and Opie::MM::y.

Referenced by qdtoa().

static double ratio Bigint a,
Bigint b
[static]
 

Definition at line 4727 of file qlocale.cpp.

References b2d(), Exp_msk1, Bigint::k, Bigint::wds, and word0.

Referenced by qstrtod().

static Bigint* s2b CONST char *  s,
int  nd0,
int  nd,
ULong  y9
[static]
 

Definition at line 4121 of file qlocale.cpp.

References Balloc(), i, Bigint::k, Long, multadd(), Bigint::wds, Bigint::x, Opie::MM::x, and Opie::MM::y.

Referenced by qstrtod().

static void Storeinc ULong *&  a,
const ULong &  b,
const ULong &  c
[inline, static]
 

Definition at line 3902 of file qlocale.cpp.

References ByteOrder, LittleEndian, USE_IEEE, and USE_LITTLE_ENDIAN.

Referenced by diff(), mult(), and quorem().

static void stripWhiteSpaceInPlace QString s  )  [static]
 

Definition at line 3349 of file qlocale.cpp.

References i, QString::length(), QString::remove(), QString::truncate(), and QString::unicode().

Referenced by QLocalePrivate::numberToCLocale().

static double ulp volatile double  x  )  [static]
 

Definition at line 4508 of file qlocale.cpp.

References Exp_mask, Exp_msk1, Exp_shift, Long, P, word0, and word1.

Referenced by qstrtod().


Variable Documentation

const unsigned char be_inf_bytes[] = { 0x7f, 0xf0, 0, 0, 0, 0, 0, 0 } [static]
 

Definition at line 94 of file qlocale.cpp.

Referenced by inf().

const unsigned char be_nan_bytes[] = { 0x7f, 0xf8, 0, 0, 0, 0, 0, 0 } [static]
 

Definition at line 106 of file qlocale.cpp.

Referenced by nan().

CONST double bigtens[] = { 1e16, 1e32, 1e64, 1e128, 1e256 } [static]
 

Definition at line 4772 of file qlocale.cpp.

const bool ByteOrder = ((*((unsigned char *) &one) == 0) ? BigEndian : LittleEndian) [static]
 

Definition at line 90 of file qlocale.cpp.

Referenced by inf(), nan(), and Storeinc().

const char country_code_list[] [static]
 

Definition at line 1329 of file qlocale.cpp.

Referenced by codeToCountry(), and countryToCode().

const uint country_name_index[] [static]
 

Definition at line 941 of file qlocale.cpp.

Referenced by QLocale::countryToString().

const char country_name_list[] [static]
 

Definition at line 698 of file qlocale.cpp.

Referenced by QLocale::countryToString().

double g_double_zero = 0.0 [static]
 

Definition at line 4796 of file qlocale.cpp.

const char language_code_list[] [static]
 

Definition at line 1185 of file qlocale.cpp.

Referenced by codeToLanguage(), and languageToCode().

const uint language_name_index[] [static]
 

Definition at line 554 of file qlocale.cpp.

Referenced by QLocale::languageToString().

const char language_name_list[] [static]
 

Definition at line 411 of file qlocale.cpp.

Referenced by QLocale::languageToString().

const unsigned char le_inf_bytes[] = { 0, 0, 0, 0, 0, 0, 0xf0, 0x7f } [static]
 

Definition at line 95 of file qlocale.cpp.

Referenced by inf().

const unsigned char le_nan_bytes[] = { 0, 0, 0, 0, 0, 0, 0xf8, 0x7f } [static]
 

Definition at line 107 of file qlocale.cpp.

Referenced by nan().

const QLocalePrivate locale_data[] [static]
 

Definition at line 281 of file qlocale.cpp.

const uint locale_index[] [static]
 

Definition at line 136 of file qlocale.cpp.

Referenced by findLocale().

const unsigned int one = 1 [static]
 

Definition at line 89 of file qlocale.cpp.

Referenced by Calculator::Calculator(), ChannelGroup::ChannelGroup(), and ChannelGroupConf::ChannelGroupConf().

Bigint* p5s [static]
 

Definition at line 4315 of file qlocale.cpp.

CONST double tens[] [static]
 

Initial value:

 {
    1e0, 1e1, 1e2, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9,
    1e10, 1e11, 1e12, 1e13, 1e14, 1e15, 1e16, 1e17, 1e18, 1e19,
    1e20, 1e21, 1e22



}

Definition at line 4762 of file qlocale.cpp.

CONST double tinytens[] = { 1e-16, 1e-32, 1e-64, 1e-128, 1e-256 } [static]
 

Definition at line 4773 of file qlocale.cpp.


Generated on Sat Nov 5 17:24:52 2005 for OPIE by  doxygen 1.4.2