Public Member Functions | List of all members
StringImpl Class Reference

#include <stringimpl.h>

Inheritance diagram for StringImpl:
QString IString

Public Member Functions

 StringImpl ()
 
 StringImpl (const QString &str)
 
StringImploperator= (const QString &str)
 
virtual ~StringImpl ()
 
const char * latin1 () const
 
const char * utf8 () const
 
unsigned short unicodeCharAt (int index) const
 
bool isEmpty () const
 
int length () const
 
- Public Member Functions inherited from QString
 QString ()
 
 QString (QChar)
 
 QString (const QString &)
 
 QString (const QByteArray &)
 
 QString (const QCString &)
 
 QString (const QChar *unicode, uint length)
 
 QString (const char *str)
 
 ~QString ()
 
QStringoperator= (const QString &)
 
QStringoperator= (const char *)
 
QStringoperator= (const QCString &)
 
QStringoperator= (QChar c)
 
QStringoperator= (char c)
 
 QString (const Null &)
 
QStringoperator= (const Null &)
 
bool isNull () const
 
bool isEmpty () const
 
uint length () const
 
void truncate (uint pos)
 
void fill (QChar c, int len=-1)
 
QString copy () const
 
QString arg (long a, int fieldwidth=0, int base=10) const
 
QString arg (ulong a, int fieldwidth=0, int base=10) const
 
QString arg (int a, int fieldwidth=0, int base=10) const
 
QString arg (uint a, int fieldwidth=0, int base=10) const
 
QString arg (short a, int fieldwidth=0, int base=10) const
 
QString arg (ushort a, int fieldwidth=0, int base=10) const
 
QString arg (char a, int fieldwidth=0) const
 
QString arg (QChar a, int fieldwidth=0) const
 
QString arg (const QString &a, int fieldwidth=0) const
 
QString arg (double a, int fieldwidth=0, char fmt='g', int prec=-1) const
 
QStringsprintf (const char *format,...)
 
int find (QChar c, int index=0, bool cs=TRUE) const
 
int find (char c, int index=0, bool cs=TRUE) const
 
int find (const QString &str, int index=0, bool cs=TRUE) const
 
int find (const QRegExp &, int index=0) const
 
int find (const char *str, int index=0) const
 
int findRev (QChar c, int index=-1, bool cs=TRUE) const
 
int findRev (char c, int index=-1, bool cs=TRUE) const
 
int findRev (const QString &str, int index=-1, bool cs=TRUE) const
 
int findRev (const QRegExp &, int index=-1) const
 
int findRev (const char *str, int index=-1) const
 
int contains (QChar c, bool cs=TRUE) const
 
int contains (char c, bool cs=TRUE) const
 
int contains (const char *str, bool cs=TRUE) const
 
int contains (const QString &str, bool cs=TRUE) const
 
int contains (const QRegExp &) const
 
QString left (uint len) const
 
QString right (uint len) const
 
QString mid (uint index, uint len=0xffffffff) const
 
QString leftJustify (uint width, QChar fill=' ', bool trunc=FALSE) const
 
QString rightJustify (uint width, QChar fill=' ', bool trunc=FALSE) const
 
QString lower () const
 
QString upper () const
 
QString stripWhiteSpace () const
 
QString simplifyWhiteSpace () const
 
QStringinsert (uint index, const QString &)
 
QStringinsert (uint index, const QChar *, uint len)
 
QStringinsert (uint index, QChar)
 
QStringinsert (uint index, char c)
 
QStringappend (char)
 
QStringappend (QChar)
 
QStringappend (const QString &)
 
QStringprepend (char)
 
QStringprepend (QChar)
 
QStringprepend (const QString &)
 
QStringremove (uint index, uint len)
 
QStringreplace (uint index, uint len, const QString &)
 
QStringreplace (uint index, uint len, const QChar *, uint clen)
 
QStringreplace (const QRegExp &, const QString &)
 
short toShort (bool *ok=0, int base=10) const
 
ushort toUShort (bool *ok=0, int base=10) const
 
int toInt (bool *ok=0, int base=10) const
 
uint toUInt (bool *ok=0, int base=10) const
 
long toLong (bool *ok=0, int base=10) const
 
ulong toULong (bool *ok=0, int base=10) const
 
uint64 toUInt64 (bool *ok=0, int base=10) const
 
float toFloat (bool *ok=0) const
 
double toDouble (bool *ok=0) const
 
QStringsetNum (short, int base=10)
 
QStringsetNum (ushort, int base=10)
 
QStringsetNum (int, int base=10)
 
QStringsetNum (uint, int base=10)
 
QStringsetNum (long, int base=10)
 
QStringsetNum (ulong, int base=10)
 
QStringsetNum (float, char f='g', int prec=6)
 
QStringsetNum (double, char f='g', int prec=6)
 
void setExpand (uint index, QChar c)
 
QStringoperator+= (const QString &str)
 
QStringoperator+= (QChar c)
 
QStringoperator+= (char c)
 
QChar at (uint i) const
 
QChar operator[] (int i) const
 
QCharRef at (uint i)
 
QCharRef operator[] (int i)
 
QChar constref (uint i) const
 
QCharref (uint i)
 
const QCharunicode () const
 
const char * ascii () const
 
const char * latin1 () const
 
const unsigned short * ucs2 () const
 
QCString utf8 () const
 
QCString local8Bit () const
 
bool operator! () const
 
QStringsetUnicode (const QChar *unicode, uint len)
 
QStringsetUnicodeCodes (const ushort *unicode_as_ushorts, uint len)
 
QStringsetLatin1 (const char *, int len=-1)
 
int compare (const QString &s) const
 
void compose ()
 
QChar::Direction basicDirection ()
 
QString visual (int index=0, int len=-1)
 
const char * data () const
 
bool startsWith (const QString &) const
 

Additional Inherited Members

- Static Public Member Functions inherited from QString
static QString number (long, int base=10)
 
static QString number (ulong, int base=10)
 
static QString number (int, int base=10)
 
static QString number (uint, int base=10)
 
static QString number (double, char f='g', int prec=6)
 
static QString fromLatin1 (const char *, int len=-1)
 
static QString fromUcs2 (const unsigned short *ucs2)
 
static QString fromUtf8 (const char *, int len=-1)
 
static QString fromLocal8Bit (const char *, int len=-1)
 
static int compare (const QString &s1, const QString &s2)
 
- Static Public Attributes inherited from QString
static const Null null = { }
 

Detailed Description

Definition at line 7 of file stringimpl.h.

Constructor & Destructor Documentation

StringImpl::StringImpl ( )
inline

Definition at line 10 of file stringimpl.h.

10 {}
StringImpl::StringImpl ( const QString str)
inline

Definition at line 11 of file stringimpl.h.

11 : QString(str) {}
QString()
Definition: qstring.h:652
virtual StringImpl::~StringImpl ( )
inlinevirtual

Definition at line 14 of file stringimpl.h.

14 {}

Member Function Documentation

bool StringImpl::isEmpty ( ) const
inlinevirtual

Returns true if this string is empty or false otherwise

Implements IString.

Definition at line 23 of file stringimpl.h.

24  { return QString::isEmpty(); }
bool isEmpty() const
Definition: qstring.h:682
const char* StringImpl::latin1 ( ) const
inlinevirtual

Returns a latin1 character representation of the string.

Implements IString.

Definition at line 17 of file stringimpl.h.

18  { return QString::latin1(); }
const char * latin1() const
Definition: qstring.cpp:14457
int StringImpl::length ( ) const
inlinevirtual

Returns the number of characters in the string.

Implements IString.

Definition at line 25 of file stringimpl.h.

26  { return QString::length(); }
uint length() const
Definition: qstring.h:679
StringImpl& StringImpl::operator= ( const QString str)
inline

Definition at line 12 of file stringimpl.h.

13  { QString::operator=(str); return *this; }
QString & operator=(const QString &)
Definition: qstring.cpp:12402
unsigned short StringImpl::unicodeCharAt ( int  index) const
inlinevirtual

Returns a 16-bit unicode character representation of the character at position index in the string. The first character is at index 0.

Implements IString.

Definition at line 21 of file stringimpl.h.

22  { return QString::unicode()[index].unicode(); }
const QChar * unicode() const
Definition: qstring.h:508
ushort unicode() const
Definition: qstring.h:151
const char* StringImpl::utf8 ( ) const
inlinevirtual

Returns a utf8 character representation of the string.

Implements IString.

Definition at line 19 of file stringimpl.h.

20  { return QString::utf8(); }
QCString utf8() const
Definition: qstring.cpp:14507

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