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

QCharRef Class Reference

The QCharRef class is a helper class for QString. More...

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

Collaboration diagram for QCharRef:

Collaboration graph
[legend]
List of all members.

Public Member Functions

ushort unicode () const
char latin1 () const
QCharRef operator= (char c)
QCharRef operator= (uchar c)
QCharRef operator= (QChar c)
QCharRef operator= (const QCharRef &c)
QCharRef operator= (ushort rc)
QCharRef operator= (short rc)
QCharRef operator= (uint rc)
QCharRef operator= (int rc)
 operator QChar () const
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 lower () const
QChar upper () const
QChar::Category category () const
QChar::Direction direction () const
QChar::Joining joining () const
bool mirrored () const
QChar mirroredChar () const
const QStringdecomposition () const
QChar::Decomposition decompositionTag () const
unsigned char combiningClass () const
uchar cell () const
uchar row () const

Private Member Functions

 QCharRef (QString *str, uint pos)

Private Attributes

QStrings
uint p

Friends

class QString

Detailed Description

The QCharRef class is a helper class for QString.

When you get an object of type QCharRef, if you can assign to it, the assignment will apply to the character in the string from which you got the reference. That is its whole purpose in life. The QCharRef becomes invalid once modifications are made to the string: if you want to keep the character, copy it into a QChar.

Most of the QChar member functions also exist in QCharRef. However, they are not explicitly documented here.

See also:
QString::operator[]() QString::at() QChar

Definition at line 676 of file qstring.h.


Constructor & Destructor Documentation

QCharRef::QCharRef QString str,
uint  pos
[inline, private]
 

Definition at line 680 of file qstring.h.


Member Function Documentation

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

Definition at line 717 of file qstring.h.

References p, and s.

uchar QCharRef::cell  )  const [inline]
 

Definition at line 727 of file qstring.h.

References p, and s.

unsigned char QCharRef::combiningClass  )  const [inline]
 

Definition at line 724 of file qstring.h.

References p, and s.

const QString& QCharRef::decomposition  )  const [inline]
 

Definition at line 722 of file qstring.h.

References p, and s.

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

Definition at line 723 of file qstring.h.

References p, and s.

int QCharRef::digitValue  )  const [inline]
 

Definition at line 713 of file qstring.h.

References p, and s.

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

Definition at line 718 of file qstring.h.

References p, and s.

bool QCharRef::isDigit  )  const [inline]
 

Definition at line 711 of file qstring.h.

References p, and s.

bool QCharRef::isLetter  )  const [inline]
 

Definition at line 708 of file qstring.h.

References p, and s.

bool QCharRef::isLetterOrNumber  )  [inline]
 

Definition at line 710 of file qstring.h.

References p, and s.

bool QCharRef::isMark  )  const [inline]
 

Definition at line 707 of file qstring.h.

References p, and s.

bool QCharRef::isNull  )  const [inline]
 

Definition at line 703 of file qstring.h.

References QString::unicode().

bool QCharRef::isNumber  )  const [inline]
 

Definition at line 709 of file qstring.h.

References p, and s.

bool QCharRef::isPrint  )  const [inline]
 

Definition at line 704 of file qstring.h.

References p, and s.

bool QCharRef::isPunct  )  const [inline]
 

Definition at line 705 of file qstring.h.

References p, and s.

bool QCharRef::isSpace  )  const [inline]
 

Definition at line 706 of file qstring.h.

References p, and s.

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

Definition at line 719 of file qstring.h.

References p, and s.

char QCharRef::latin1  )  const [inline]
 

Definition at line 688 of file qstring.h.

References p, and s.

QChar QCharRef::lower  )  const [inline]
 

Definition at line 714 of file qstring.h.

References p, and s.

bool QCharRef::mirrored  )  const [inline]
 

Definition at line 720 of file qstring.h.

References p, and s.

QChar QCharRef::mirroredChar  )  const [inline]
 

Definition at line 721 of file qstring.h.

References p, and s.

QCharRef::operator QChar  )  const [inline]
 

Definition at line 700 of file qstring.h.

References p, and s.

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

Definition at line 698 of file qstring.h.

References p, and s.

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

Definition at line 697 of file qstring.h.

References p, and s.

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

Definition at line 696 of file qstring.h.

References p, and s.

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

Definition at line 695 of file qstring.h.

References p, and s.

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

Definition at line 694 of file qstring.h.

References p, and s.

QCharRef QCharRef::operator= QChar  c  )  [inline]
 

Definition at line 693 of file qstring.h.

References p, and s.

QCharRef QCharRef::operator= uchar  c  )  [inline]
 

Definition at line 692 of file qstring.h.

References p, and s.

QCharRef QCharRef::operator= char  c  )  [inline]
 

Definition at line 691 of file qstring.h.

References p, and s.

uchar QCharRef::row  )  const [inline]
 

Definition at line 728 of file qstring.h.

References p, and s.

ushort QCharRef::unicode  )  const [inline]
 

Definition at line 687 of file qstring.h.

References p, and s.

QChar QCharRef::upper  )  const [inline]
 

Definition at line 715 of file qstring.h.

References p, and s.


Friends And Related Function Documentation

friend class QString [friend]
 

Definition at line 677 of file qstring.h.


Member Data Documentation

uint QCharRef::p [private]
 

Definition at line 679 of file qstring.h.

QString& QCharRef::s [private]
 

Definition at line 678 of file qstring.h.


The documentation for this class was generated from the following file:
Generated on Sat Nov 5 17:46:11 2005 for OPIE by  doxygen 1.4.2