ISLEman
Public Member Functions | Friends | List of all members
QCharRef Class Reference

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

#include <qstring.h>

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 ()
 
QChar upper ()
 
QChar::Category category () const
 
QChar::Direction direction () const
 
QChar::Joining joining () const
 
bool mirrored () const
 
QChar mirroredChar () const
 
QString decomposition () const
 
QChar::Decomposition decompositionTag () const
 
uchar cell () const
 
uchar row () const
 

Friends

class QString
 

Detailed Description

The QCharRef class is a helper class for QString.

It provides the ability to work on characters in a QString in a natural fashion.

When you get an object of type QCharRef, you can assign to it, which will operate on the string from which you got it. That is its whole purpose in life. It becomes invalid once further modifications are made to the string: If you want to keep it, 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

The documentation for this class was generated from the following file: