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

QLocalePrivate Struct Reference

#include </home/clem/local/src/opie/qmake/include/private/qlocale_p.h>

Collaboration diagram for QLocalePrivate:

Collaboration graph
[legend]
List of all members.

Public Types

enum  GroupSeparatorMode { FailOnGroupSeparators, ParseGroupSeparators }
enum  DoubleForm { DFExponent = 0, DFDecimal, DFSignificantDigits, _DFMax = DFSignificantDigits }
enum  Flags {
  NoFlags = 0, Alternate = 0x01, ZeroPadded = 0x02, LeftAdjusted = 0x04,
  BlankBeforePositive = 0x08, AlwaysShowSign = 0x10, ThousandsGroup = 0x20, CapitalEorX = 0x40
}

Public Member Functions

const QChardecimal () const
const QChargroup () const
const QCharlist () const
const QCharpercent () const
const QCharzero () const
QChar plus () const
const QCharminus () const
const QCharexponential () const
QString infinity () const
QString nan () const
Q_UINT32 languageId () const
Q_UINT32 countryId () const
bool isDigit (QChar d) const
QString doubleToString (double d, int precision=-1, DoubleForm form=DFSignificantDigits, int width=-1, unsigned flags=NoFlags) const
QString longLongToString (Q_LLONG l, int precision=-1, int base=10, int width=-1, unsigned flags=NoFlags) const
QString unsLongLongToString (Q_ULLONG l, int precision=-1, int base=10, int width=-1, unsigned flags=NoFlags) const
double stringToDouble (QString num, bool *ok, GroupSeparatorMode group_sep_mode) const
Q_LLONG stringToLongLong (QString num, int base, bool *ok, GroupSeparatorMode group_sep_mode) const
Q_ULLONG stringToUnsLongLong (QString num, int base, bool *ok, GroupSeparatorMode group_sep_mode) const
bool removeGroupSeparators (QString &num_str) const
bool numberToCLocale (QString &locale_num, GroupSeparatorMode group_sep_mode) const

Static Public Member Functions

static const char * systemLocaleName ()

Public Attributes

Q_UINT32 m_language_id
Q_UINT32 m_country_id
Q_UINT16 m_decimal
Q_UINT16 m_group
Q_UINT16 m_list
Q_UINT16 m_percent
Q_UINT16 m_zero
Q_UINT16 m_minus
Q_UINT16 m_exponential

Static Public Attributes

static const QString m_infinity
static const QString m_nan
static const QChar m_plus

Member Enumeration Documentation

enum QLocalePrivate::DoubleForm
 

Enumeration values:
DFExponent 
DFDecimal 
DFSignificantDigits 
_DFMax 

Definition at line 77 of file qlocale_p.h.

enum QLocalePrivate::Flags
 

Enumeration values:
NoFlags 
Alternate 
ZeroPadded 
LeftAdjusted 
BlankBeforePositive 
AlwaysShowSign 
ThousandsGroup 
CapitalEorX 

Definition at line 84 of file qlocale_p.h.

enum QLocalePrivate::GroupSeparatorMode
 

Enumeration values:
FailOnGroupSeparators 
ParseGroupSeparators 

Definition at line 72 of file qlocale_p.h.


Member Function Documentation

Q_UINT32 QLocalePrivate::countryId  )  const [inline]
 

Definition at line 68 of file qlocale_p.h.

References m_country_id.

Referenced by QLocale::country(), and findLocale().

const QChar& QLocalePrivate::decimal  )  const [inline]
 

Definition at line 56 of file qlocale_p.h.

References m_decimal.

Referenced by decimalForm(), exponentForm(), numberToCLocale(), and removeGroupSeparators().

QString QLocalePrivate::doubleToString double  d,
int  precision = -1,
DoubleForm  form = DFSignificantDigits,
int  width = -1,
unsigned  flags = NoFlags
const
 

Definition at line 2967 of file qlocale.cpp.

References Alternate, AlwaysShowSign, BlankBeforePositive, CapitalEorX, decimalForm(), DFDecimal, DFExponent, DFSignificantDigits, exponentForm(), i, infinity(), INFINITY, LeftAdjusted, QString::length(), minus(), nan(), plus(), PMChopTrailingZeros, PMDecimalDigits, PMSignificantDigits, QString::prepend(), qdtoa(), QString::ref(), ThousandsGroup, QString::truncate(), QString::unicode(), QString::upper(), zero(), and ZeroPadded.

Referenced by QLocale::toString().

const QChar& QLocalePrivate::exponential  )  const [inline]
 

Definition at line 63 of file qlocale_p.h.

References m_exponential.

Referenced by exponentForm(), numberToCLocale(), and removeGroupSeparators().

const QChar& QLocalePrivate::group  )  const [inline]
 

Definition at line 57 of file qlocale_p.h.

References m_group.

Referenced by decimalForm(), longLongToString(), numberToCLocale(), removeGroupSeparators(), and unsLongLongToString().

QString QLocalePrivate::infinity  )  const
 

Definition at line 1635 of file qlocale.cpp.

References QString::fromLatin1().

Referenced by doubleToString(), and numberToCLocale().

bool QLocalePrivate::isDigit QChar  d  )  const
 

Definition at line 2838 of file qlocale.cpp.

References QChar::unicode(), and zero().

Referenced by numberToCLocale(), and removeGroupSeparators().

Q_UINT32 QLocalePrivate::languageId  )  const [inline]
 

Definition at line 67 of file qlocale_p.h.

References m_language_id.

Referenced by findLocale(), QLocale::language(), and QLocale::QLocale().

const QChar& QLocalePrivate::list  )  const [inline]
 

Definition at line 58 of file qlocale_p.h.

References m_list.

Referenced by numberToCLocale().

QString QLocalePrivate::longLongToString Q_LLONG  l,
int  precision = -1,
int  base = 10,
int  width = -1,
unsigned  flags = NoFlags
const
 

Definition at line 3125 of file qlocale.cpp.

References Alternate, AlwaysShowSign, BlankBeforePositive, CapitalEorX, group(), i, QString::insert(), QString::isEmpty(), LeftAdjusted, QString::length(), minus(), plus(), QString::prepend(), qlltoa(), qulltoa(), ThousandsGroup, QString::unicode(), QString::upper(), zero(), and ZeroPadded.

Referenced by exponentForm(), and QLocale::toString().

const QChar& QLocalePrivate::minus  )  const [inline]
 

Definition at line 62 of file qlocale_p.h.

References m_minus.

Referenced by doubleToString(), longLongToString(), and numberToCLocale().

QString QLocalePrivate::nan  )  const
 

Definition at line 1640 of file qlocale.cpp.

References QString::fromLatin1().

Referenced by doubleToString(), and numberToCLocale().

bool QLocalePrivate::numberToCLocale QString locale_num,
GroupSeparatorMode  group_sep_mode
const
 

Definition at line 3369 of file qlocale.cpp.

References compareSubstr(), decimal(), digitToCLocale(), exponential(), group(), i, infinity(), isDigit(), list(), minus(), nan(), ParseGroupSeparators, percent(), plus(), removeGroupSeparators(), stripWhiteSpaceInPlace(), QChar::unicode(), upper(), and zero().

Referenced by stringToDouble(), stringToLongLong(), and stringToUnsLongLong().

const QChar& QLocalePrivate::percent  )  const [inline]
 

Definition at line 59 of file qlocale_p.h.

References m_percent.

Referenced by numberToCLocale().

QChar QLocalePrivate::plus  )  const [inline]
 

Definition at line 61 of file qlocale_p.h.

Referenced by doubleToString(), longLongToString(), and numberToCLocale().

bool QLocalePrivate::removeGroupSeparators QString num_str  )  const
 

Definition at line 3281 of file qlocale.cpp.

References decimal(), exponential(), group(), i, isDigit(), QString::length(), QString::remove(), QString::unicode(), and upper().

Referenced by numberToCLocale().

double QLocalePrivate::stringToDouble QString  num,
bool *  ok,
GroupSeparatorMode  group_sep_mode
const
 

Definition at line 3445 of file qlocale.cpp.

References d, INFINITY, QString::latin1(), NAN, numberToCLocale(), and qstrtod().

Referenced by QLocale::toDouble().

Q_LLONG QLocalePrivate::stringToLongLong QString  num,
int  base,
bool *  ok,
GroupSeparatorMode  group_sep_mode
const
 

Definition at line 3489 of file qlocale.cpp.

References l, QString::latin1(), numberToCLocale(), and qstrtoll().

Referenced by QLocale::toLongLong().

Q_ULLONG QLocalePrivate::stringToUnsLongLong QString  num,
int  base,
bool *  ok,
GroupSeparatorMode  group_sep_mode
const
 

Definition at line 3515 of file qlocale.cpp.

References l, QString::latin1(), numberToCLocale(), and qstrtoull().

Referenced by QLocale::toULongLong().

const char * QLocalePrivate::systemLocaleName  )  [static]
 

Definition at line 1645 of file qlocale.cpp.

References QString::fromUcs2(), QCString::isEmpty(), lower(), NULL, and out.

Referenced by QLocale::system().

QString QLocalePrivate::unsLongLongToString Q_ULLONG  l,
int  precision = -1,
int  base = 10,
int  width = -1,
unsigned  flags = NoFlags
const
 

Definition at line 3210 of file qlocale.cpp.

References Alternate, CapitalEorX, group(), i, QString::insert(), QString::isEmpty(), LeftAdjusted, QString::length(), QString::prepend(), qulltoa(), ThousandsGroup, QString::unicode(), QString::upper(), zero(), and ZeroPadded.

Referenced by QLocale::toString().

const QChar& QLocalePrivate::zero  )  const [inline]
 

Definition at line 60 of file qlocale_p.h.

References m_zero.

Referenced by decimalForm(), doubleToString(), exponentForm(), isDigit(), longLongToString(), numberToCLocale(), qulltoa(), and unsLongLongToString().


Member Data Documentation

Q_UINT32 QLocalePrivate::m_country_id
 

Definition at line 116 of file qlocale_p.h.

Referenced by countryId().

Q_UINT16 QLocalePrivate::m_decimal
 

Definition at line 118 of file qlocale_p.h.

Referenced by decimal().

Q_UINT16 QLocalePrivate::m_exponential
 

Definition at line 118 of file qlocale_p.h.

Referenced by exponential().

Q_UINT16 QLocalePrivate::m_group
 

Definition at line 118 of file qlocale_p.h.

Referenced by group().

const QString QLocalePrivate::m_infinity [static]
 

Definition at line 121 of file qlocale_p.h.

Q_UINT32 QLocalePrivate::m_language_id
 

Definition at line 116 of file qlocale_p.h.

Referenced by languageId().

Q_UINT16 QLocalePrivate::m_list
 

Definition at line 118 of file qlocale_p.h.

Referenced by list().

Q_UINT16 QLocalePrivate::m_minus
 

Definition at line 118 of file qlocale_p.h.

Referenced by minus().

const QString QLocalePrivate::m_nan [static]
 

Definition at line 122 of file qlocale_p.h.

Q_UINT16 QLocalePrivate::m_percent
 

Definition at line 118 of file qlocale_p.h.

Referenced by percent().

const QChar QLocalePrivate::m_plus [static]
 

Definition at line 123 of file qlocale_p.h.

Q_UINT16 QLocalePrivate::m_zero
 

Definition at line 118 of file qlocale_p.h.

Referenced by zero().


The documentation for this struct was generated from the following files:
Generated on Sat Nov 5 17:47:45 2005 for OPIE by  doxygen 1.4.2