QCharRef Class Reference

#include <qstring.h>

Collaboration diagram for QCharRef:

Collaboration graph
[legend]
List of all members.

Detailed Description

The QCharRef class is a helper class for QString.

Definition at line 647 of file qstring.h.

Public Member Functions

 operator QChar () const
QCharRefoperator= (const QChar &c)
QT_ASCII_CAST_WARN QCharRefoperator= (char c)
QT_ASCII_CAST_WARN QCharRefoperator= (uchar c)
QCharRefoperator= (const QCharRef &c)
QCharRefoperator= (ushort rc)
QCharRefoperator= (short rc)
QCharRefoperator= (uint rc)
QCharRefoperator= (int rc)
bool isNull () const
bool isPrint () const
bool isPunct () const
bool isSpace () const
bool isMark () const
bool isLetter () const
bool isNumber () const
bool isLetterOrNumber ()
bool isDigit () const
int digitValue () const
QChar toLower () const
QChar toUpper () const
QChar::Category category () const
QChar::Direction direction () const
QChar::Joining joining () const
bool hasMirrored () const
QChar mirroredChar () const
QString decomposition () const
QChar::Decomposition decompositionTag () const
uchar combiningClass () const
QChar::UnicodeVersion unicodeVersion () const
uchar cell () const
uchar row () const
void setCell (uchar cell)
void setRow (uchar row)
const char toAscii () const
const char toLatin1 () const
const ushort unicode () const

Private Member Functions

 QCharRef (QString &str, int idx)

Private Attributes

QStrings
int i

Friends

class QString


Constructor & Destructor Documentation

QCharRef::QCharRef ( QString str,
int  idx 
) [inline, private]

Definition at line 650 of file qstring.h.

00651         : s(str),i(idx) {}


Member Function Documentation

QCharRef::operator QChar (  )  const [inline]

Definition at line 658 of file qstring.h.

References i, and s.

00659         { return i < s.d->size ? s.d->data[i] : 0; }

QCharRef& QCharRef::operator= ( const QChar c  )  [inline]

Definition at line 660 of file qstring.h.

References c, i, and s.

00661         { if (s.d->ref != 1 || i >= s.d->size) s.expand(i);
00662           s.d->data[i] = c.unicode();  return *this; }

QT_ASCII_CAST_WARN QCharRef& QCharRef::operator= ( char  c  )  [inline]

Definition at line 666 of file qstring.h.

References QChar::fromAscii(), and QString::operator=().

00667     { return operator=(QChar::fromAscii(c)); }

Here is the call graph for this function:

QT_ASCII_CAST_WARN QCharRef& QCharRef::operator= ( uchar  c  )  [inline]

Definition at line 668 of file qstring.h.

References QChar::fromAscii(), and QString::operator=().

00669     { return operator=(QChar::fromAscii(c)); }

Here is the call graph for this function:

QCharRef& QCharRef::operator= ( const QCharRef c  )  [inline]

Definition at line 671 of file qstring.h.

References c, and QString::operator=().

00671 { return operator=(QChar(c)); }

Here is the call graph for this function:

QCharRef& QCharRef::operator= ( ushort  rc  )  [inline]

Definition at line 672 of file qstring.h.

References QString::operator=().

00672 { return operator=(QChar(rc)); }

Here is the call graph for this function:

QCharRef& QCharRef::operator= ( short  rc  )  [inline]

Definition at line 673 of file qstring.h.

References QString::operator=().

00673 { return operator=(QChar(rc)); }

Here is the call graph for this function:

QCharRef& QCharRef::operator= ( uint  rc  )  [inline]

Definition at line 674 of file qstring.h.

References QString::operator=().

00674 { return operator=(QChar(rc)); }

Here is the call graph for this function:

QCharRef& QCharRef::operator= ( int  rc  )  [inline]

Definition at line 675 of file qstring.h.

References QString::operator=().

00675 { return operator=(QChar(rc)); }

Here is the call graph for this function:

bool QCharRef::isNull (  )  const [inline]

Definition at line 678 of file qstring.h.

00678 { return QChar(*this).isNull(); }

bool QCharRef::isPrint (  )  const [inline]

Definition at line 679 of file qstring.h.

00679 { return QChar(*this).isPrint(); }

bool QCharRef::isPunct (  )  const [inline]

Definition at line 680 of file qstring.h.

00680 { return QChar(*this).isPunct(); }

bool QCharRef::isSpace (  )  const [inline]

Definition at line 681 of file qstring.h.

00681 { return QChar(*this).isSpace(); }

bool QCharRef::isMark (  )  const [inline]

Definition at line 682 of file qstring.h.

00682 { return QChar(*this).isMark(); }

bool QCharRef::isLetter (  )  const [inline]

Definition at line 683 of file qstring.h.

00683 { return QChar(*this).isLetter(); }

bool QCharRef::isNumber (  )  const [inline]

Definition at line 684 of file qstring.h.

00684 { return QChar(*this).isNumber(); }

bool QCharRef::isLetterOrNumber (  )  [inline]

Definition at line 685 of file qstring.h.

00685 { return QChar(*this).isLetterOrNumber(); }

bool QCharRef::isDigit (  )  const [inline]

Definition at line 686 of file qstring.h.

00686 { return QChar(*this).isDigit(); }

int QCharRef::digitValue (  )  const [inline]

Definition at line 688 of file qstring.h.

00688 { return QChar(*this).digitValue(); }

QChar QCharRef::toLower (  )  const [inline]

Definition at line 689 of file qstring.h.

References QString::toLower().

00689 { return QChar(*this).toLower(); }

Here is the call graph for this function:

QChar QCharRef::toUpper (  )  const [inline]

Definition at line 690 of file qstring.h.

References QString::toUpper().

00690 { return QChar(*this).toUpper(); }

Here is the call graph for this function:

QChar::Category QCharRef::category (  )  const [inline]

Definition at line 696 of file qstring.h.

00696 { return QChar(*this).category(); }

QChar::Direction QCharRef::direction (  )  const [inline]

Definition at line 697 of file qstring.h.

00697 { return QChar(*this).direction(); }

QChar::Joining QCharRef::joining (  )  const [inline]

Definition at line 698 of file qstring.h.

00698 { return QChar(*this).joining(); }

bool QCharRef::hasMirrored (  )  const [inline]

Definition at line 699 of file qstring.h.

00699 { return QChar(*this).hasMirrored(); }

QChar QCharRef::mirroredChar (  )  const [inline]

Definition at line 703 of file qstring.h.

References QChar::mirroredChar().

00703 { return QChar(*this).mirroredChar(); }

Here is the call graph for this function:

QString QCharRef::decomposition (  )  const [inline]

Definition at line 704 of file qstring.h.

00704 { return QChar(*this).decomposition(); }

QChar::Decomposition QCharRef::decompositionTag (  )  const [inline]

Definition at line 705 of file qstring.h.

00705 { return QChar(*this).decompositionTag(); }

uchar QCharRef::combiningClass (  )  const [inline]

Definition at line 706 of file qstring.h.

00706 { return QChar(*this).combiningClass(); }

QChar::UnicodeVersion QCharRef::unicodeVersion (  )  const [inline]

Definition at line 708 of file qstring.h.

00708 { return QChar(*this).unicodeVersion(); }

uchar QCharRef::cell (  )  const [inline]

Definition at line 710 of file qstring.h.

00710 { return QChar(*this).cell(); }

uchar QCharRef::row (  )  const [inline]

Definition at line 711 of file qstring.h.

00711 { return QChar(*this).row(); }

void QCharRef::setCell ( uchar  cell  )  [inline]

Definition at line 725 of file qstring.h.

00725 { QChar(*this).setCell(acell); }

void QCharRef::setRow ( uchar  row  )  [inline]

Definition at line 724 of file qstring.h.

00724 { QChar(*this).setRow(arow); }

const char QCharRef::toAscii (  )  const [inline]

Definition at line 715 of file qstring.h.

00715 { return QChar(*this).toAscii(); }

const char QCharRef::toLatin1 (  )  const [inline]

Definition at line 716 of file qstring.h.

00716 { return QChar(*this).toLatin1(); }

const ushort QCharRef::unicode (  )  const [inline]

Definition at line 721 of file qstring.h.

References QChar::unicode().

00721 { return QChar(*this).unicode(); }

Here is the call graph for this function:


Friends And Related Function Documentation

friend class QString [friend]

Definition at line 652 of file qstring.h.


Member Data Documentation

QString& QCharRef::s [private]

Definition at line 648 of file qstring.h.

int QCharRef::i [private]

Definition at line 649 of file qstring.h.


The documentation for this class was generated from the following file:
Generated on Thu Mar 15 16:58:19 2007 for Qt 4.2 User's Guide by  doxygen 1.5.1