QString

#include <QtCore/QString>

More information will be added here shortly. For now, you'll find more extensive information about this class in the Qt reference for QString


Overview

Classes

Public Static Attributes Index

const Nullnull

Public Functions Index

QString ()
QString (const QChar *unicode, int size)
QString (const QChar *unicode)
QString (QChar c)
QString (int size, QChar c)
QString (const QLatin1String &latin1)
QString (const QString &)
QT_ASCII_CAST_WARN_CONSTRUCTORQString (const char *ch)
QT_ASCII_CAST_WARN_CONSTRUCTORQString (const QByteArray &a)
QString (const Null &)
QString (int size, Qt::Initialization)
~QString ()
QString &append (QChar c)
QString &append (const QString &s)
QString &append (const QStringRef &s)
QString &append (const QLatin1String &s)
QT_ASCII_CAST_WARN QString &append (const char *s)
QT_ASCII_CAST_WARN QString &append (const QByteArray &s)
QStringarg (qlonglong a, int fieldwidth=0, int base=10, const QChar &fillChar=QLatin1Char(' ')) const Q_REQUIRED_RESULT
QStringarg (qulonglong a, int fieldwidth=0, int base=10, const QChar &fillChar=QLatin1Char(' ')) const Q_REQUIRED_RESULT
QStringarg (long a, int fieldwidth=0, int base=10, const QChar &fillChar=QLatin1Char(' ')) const Q_REQUIRED_RESULT
QStringarg (ulong a, int fieldwidth=0, int base=10, const QChar &fillChar=QLatin1Char(' ')) const Q_REQUIRED_RESULT
QStringarg (int a, int fieldWidth=0, int base=10, const QChar &fillChar=QLatin1Char(' ')) const Q_REQUIRED_RESULT
QStringarg (uint a, int fieldWidth=0, int base=10, const QChar &fillChar=QLatin1Char(' ')) const Q_REQUIRED_RESULT
QStringarg (short a, int fieldWidth=0, int base=10, const QChar &fillChar=QLatin1Char(' ')) const Q_REQUIRED_RESULT
QStringarg (ushort a, int fieldWidth=0, int base=10, const QChar &fillChar=QLatin1Char(' ')) const Q_REQUIRED_RESULT
QStringarg (double a, int fieldWidth=0, char fmt= 'g', int prec=-1, const QChar &fillChar=QLatin1Char(' ')) const Q_REQUIRED_RESULT
QStringarg (char a, int fieldWidth=0, const QChar &fillChar=QLatin1Char(' ')) const Q_REQUIRED_RESULT
QStringarg (QChar a, int fieldWidth=0, const QChar &fillChar=QLatin1Char(' ')) const Q_REQUIRED_RESULT
QStringarg (const QString &a, int fieldWidth=0, const QChar &fillChar=QLatin1Char(' ')) const Q_REQUIRED_RESULT
QStringarg (const QString &a1, const QString &a2) const Q_REQUIRED_RESULT
QStringarg (const QString &a1, const QString &a2, const QString &a3) const Q_REQUIRED_RESULT
QStringarg (const QString &a1, const QString &a2, const QString &a3, const QString &a4) const Q_REQUIRED_RESULT
QStringarg (const QString &a1, const QString &a2, const QString &a3, const QString &a4, const QString &a5) const Q_REQUIRED_RESULT
QStringarg (const QString &a1, const QString &a2, const QString &a3, const QString &a4, const QString &a5, const QString &a6) const Q_REQUIRED_RESULT
QStringarg (const QString &a1, const QString &a2, const QString &a3, const QString &a4, const QString &a5, const QString &a6, const QString &a7) const Q_REQUIRED_RESULT
QStringarg (const QString &a1, const QString &a2, const QString &a3, const QString &a4, const QString &a5, const QString &a6, const QString &a7, const QString &a8) const Q_REQUIRED_RESULT
QStringarg (const QString &a1, const QString &a2, const QString &a3, const QString &a4, const QString &a5, const QString &a6, const QString &a7, const QString &a8, const QString &a9) const Q_REQUIRED_RESULT
const QCharat (int i) const
iteratorbegin ()
const_iteratorbegin () const
intcapacity () const
voidchop (int n)
voidclear ()
intcompare (const QString &s) const
intcompare (const QString &s, Qt::CaseSensitivity cs) const
intcompare (const QLatin1String &other, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
intcompare (const QStringRef &s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
const_iteratorconstBegin () const
const QChar *constData () const
const_iteratorconstEnd () const
QBoolcontains (QChar c, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
QBoolcontains (const QString &s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
QBoolcontains (const QStringRef &s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
QBoolcontains (const QRegExp &rx) const
QBoolcontains (QRegExp &rx) const
intcount () const
intcount (QChar c, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
intcount (const QString &s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
intcount (const QStringRef &s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
intcount (const QRegExp &) const
QChar *data ()
const QChar *data () const
DataPtr &data_ptr ()
voiddetach ()
iteratorend ()
const_iteratorend () const
boolendsWith (const QString &s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
boolendsWith (const QStringRef &s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
boolendsWith (const QLatin1String &s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
boolendsWith (const QChar &c, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
QString &fill (QChar c, int size=-1)
intindexOf (QChar c, int from=0, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
intindexOf (const QString &s, int from=0, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
intindexOf (const QLatin1String &s, int from=0, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
intindexOf (const QStringRef &s, int from=0, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
intindexOf (const QRegExp &, int from=0) const
intindexOf (QRegExp &, int from=0) const
QString &insert (int i, QChar c)
QString &insert (int i, const QChar *uc, int len)
QString &insert (int i, const QString &s)
QString &insert (int i, const QLatin1String &s)
boolisDetached () const
boolisEmpty () const
boolisNull () const
boolisRightToLeft () const
boolisSharedWith (const QString &other) const
boolisSimpleText () const
intlastIndexOf (QChar c, int from=-1, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
intlastIndexOf (const QString &s, int from=-1, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
intlastIndexOf (const QLatin1String &s, int from=-1, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
intlastIndexOf (const QStringRef &s, int from=-1, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
intlastIndexOf (const QRegExp &, int from=-1) const
intlastIndexOf (QRegExp &, int from=-1) const
QStringleft (int n) const Q_REQUIRED_RESULT
QStringleftJustified (int width, QChar fill=QLatin1Char(' '), bool trunc=false) const Q_REQUIRED_RESULT
QStringRefleftRef (int n) const Q_REQUIRED_RESULT
intlength () const
intlocaleAwareCompare (const QString &s) const
intlocaleAwareCompare (const QStringRef &s) const
QStringmid (int position, int n=-1) const Q_REQUIRED_RESULT
QStringRefmidRef (int position, int n=-1) const Q_REQUIRED_RESULT
QStringnormalized (NormalizationForm mode) const Q_REQUIRED_RESULT
QStringnormalized (NormalizationForm mode, QChar::UnicodeVersion version) const Q_REQUIRED_RESULT
booloperator!= (const QString &s) const
booloperator!= (const QLatin1String &s) const
QT_ASCII_CAST_WARN booloperator!= (const char *s) const
QT_ASCII_CAST_WARN booloperator!= (const QByteArray &s) const
QString &operator+= (QChar c)
QString &operator+= (QChar::SpecialCharacter c)
QString &operator+= (const QString &s)
QString &operator+= (const QStringRef &s)
QString &operator+= (const QLatin1String &s)
QT_ASCII_CAST_WARN QString &operator+= (const char *s)
QT_ASCII_CAST_WARN QString &operator+= (const QByteArray &s)
QT_ASCII_CAST_WARN QString &operator+= (char c)
booloperator< (const QString &s) const
booloperator< (const QLatin1String &s) const
QT_ASCII_CAST_WARN booloperator< (const char *s) const
QT_ASCII_CAST_WARN booloperator< (const QByteArray &s) const
booloperator<= (const QString &s) const
booloperator<= (const QLatin1String &s) const
QT_ASCII_CAST_WARN booloperator<= (const char *s2) const
QT_ASCII_CAST_WARN booloperator<= (const QByteArray &s) const
QString &operator= (QChar c)
QString &operator= (const QString &)
QString &operator= (const QLatin1String &)
QT_ASCII_CAST_WARN QString &operator= (const char *ch)
QT_ASCII_CAST_WARN QString &operator= (const QByteArray &a)
QT_ASCII_CAST_WARN QString &operator= (char c)
QString &operator= (const Null &)
booloperator== (const QString &s) const
booloperator== (const QLatin1String &s) const
QT_ASCII_CAST_WARN booloperator== (const char *s) const
QT_ASCII_CAST_WARN booloperator== (const QByteArray &s) const
booloperator> (const QString &s) const
booloperator> (const QLatin1String &s) const
QT_ASCII_CAST_WARN booloperator> (const char *s2) const
QT_ASCII_CAST_WARN booloperator> (const QByteArray &s) const
booloperator>= (const QString &s) const
booloperator>= (const QLatin1String &s) const
QT_ASCII_CAST_WARN booloperator>= (const char *s2) const
QT_ASCII_CAST_WARN booloperator>= (const QByteArray &s) const
const QCharoperator[] (int i) const
QCharRefoperator[] (int i)
const QCharoperator[] (uint i) const
QCharRefoperator[] (uint i)
QString &prepend (QChar c)
QString &prepend (const QString &s)
QString &prepend (const QLatin1String &s)
QT_ASCII_CAST_WARN QString &prepend (const char *s)
QT_ASCII_CAST_WARN QString &prepend (const QByteArray &s)
voidpush_back (QChar c)
voidpush_back (const QString &s)
voidpush_front (QChar c)
voidpush_front (const QString &s)
QString &remove (int i, int len)
QString &remove (QChar c, Qt::CaseSensitivity cs=Qt::CaseSensitive)
QString &remove (const QString &s, Qt::CaseSensitivity cs=Qt::CaseSensitive)
QString &remove (const QRegExp &rx)
QStringrepeated (int times) const
QString &replace (int i, int len, QChar after)
QString &replace (int i, int len, const QChar *s, int slen)
QString &replace (int i, int len, const QString &after)
QString &replace (QChar before, QChar after, Qt::CaseSensitivity cs=Qt::CaseSensitive)
QString &replace (const QChar *before, int blen, const QChar *after, int alen, Qt::CaseSensitivity cs=Qt::CaseSensitive)
QString &replace (const QLatin1String &before, const QLatin1String &after, Qt::CaseSensitivity cs=Qt::CaseSensitive)
QString &replace (const QLatin1String &before, const QString &after, Qt::CaseSensitivity cs=Qt::CaseSensitive)
QString &replace (const QString &before, const QLatin1String &after, Qt::CaseSensitivity cs=Qt::CaseSensitive)
QString &replace (const QString &before, const QString &after, Qt::CaseSensitivity cs=Qt::CaseSensitive)
QString &replace (QChar c, const QString &after, Qt::CaseSensitivity cs=Qt::CaseSensitive)
QString &replace (QChar c, const QLatin1String &after, Qt::CaseSensitivity cs=Qt::CaseSensitive)
QString &replace (const QRegExp &rx, const QString &after)
voidreserve (int size)
voidresize (int size)
QStringright (int n) const Q_REQUIRED_RESULT
QStringrightJustified (int width, QChar fill=QLatin1Char(' '), bool trunc=false) const Q_REQUIRED_RESULT
QStringRefrightRef (int n) const Q_REQUIRED_RESULT
QStringsection (QChar sep, int start, int end=-1, SectionFlags flags=SectionDefault) const
QStringsection (const QString &in_sep, int start, int end=-1, SectionFlags flags=SectionDefault) const
QStringsection (const QRegExp &reg, int start, int end=-1, SectionFlags flags=SectionDefault) const
QString &setNum (short, int base=10)
QString &setNum (ushort, int base=10)
QString &setNum (int, int base=10)
QString &setNum (uint, int base=10)
QString &setNum (long, int base=10)
QString &setNum (ulong, int base=10)
QString &setNum (qlonglong, int base=10)
QString &setNum (qulonglong, int base=10)
QString &setNum (float, char f='g', int prec=6)
QString &setNum (double, char f='g', int prec=6)
QString &setRawData (const QChar *unicode, int size)
QString &setUnicode (const QChar *unicode, int size)
QString &setUtf16 (const ushort *utf16, int size)
QStringsimplified () const Q_REQUIRED_RESULT
intsize () const
QStringListsplit (const QString &sep, SplitBehavior behavior=KeepEmptyParts, Qt::CaseSensitivity cs=Qt::CaseSensitive) const Q_REQUIRED_RESULT
QStringListsplit (const QChar &sep, SplitBehavior behavior=KeepEmptyParts, Qt::CaseSensitivity cs=Qt::CaseSensitive) const Q_REQUIRED_RESULT
QStringListsplit (const QRegExp &sep, SplitBehavior behavior=KeepEmptyParts) const Q_REQUIRED_RESULT
QString &sprintf (const char *format,...)
voidsqueeze ()
boolstartsWith (const QString &s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
boolstartsWith (const QStringRef &s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
boolstartsWith (const QLatin1String &s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
boolstartsWith (const QChar &c, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
voidswap (QString &other)
QByteArraytoAscii () const Q_REQUIRED_RESULT
QStringtoCaseFolded () const Q_REQUIRED_RESULT
doubletoDouble (bool *ok=0) const
floattoFloat (bool *ok=0) const
inttoInt (bool *ok=0, int base=10) const
QByteArraytoLatin1 () const Q_REQUIRED_RESULT
QByteArraytoLocal8Bit () const Q_REQUIRED_RESULT
longtoLong (bool *ok=0, int base=10) const
qlonglongtoLongLong (bool *ok=0, int base=10) const
QStringtoLower () const Q_REQUIRED_RESULT
shorttoShort (bool *ok=0, int base=10) const
std::stringtoStdString () const
QStdWStringtoStdWString () const
QVector< uint >toUcs4 () const Q_REQUIRED_RESULT
uinttoUInt (bool *ok=0, int base=10) const
ulongtoULong (bool *ok=0, int base=10) const
qulonglongtoULongLong (bool *ok=0, int base=10) const
QStringtoUpper () const Q_REQUIRED_RESULT
ushorttoUShort (bool *ok=0, int base=10) const
QByteArraytoUtf8 () const Q_REQUIRED_RESULT
inttoWCharArray (wchar_t *array) const
QStringtrimmed () const Q_REQUIRED_RESULT
voidtruncate (int pos)
const QChar *unicode () const
const ushort *utf16 () const
QString &vsprintf (const char *format, va_list ap)

Static Public Functions Index

intcompare (const QString &s1, const QString &s2)
intcompare (const QString &s1, const QString &s2, Qt::CaseSensitivity cs)
intcompare (const QString &s1, const QLatin1String &s2, Qt::CaseSensitivity cs=Qt::CaseSensitive)
intcompare (const QLatin1String &s1, const QString &s2, Qt::CaseSensitivity cs=Qt::CaseSensitive)
intcompare (const QString &s1, const QStringRef &s2, Qt::CaseSensitivity=Qt::CaseSensitive)
QStringfromAscii (const char *, int size=-1)
QStringfromLatin1 (const char *, int size=-1)
QStringfromLocal8Bit (const char *, int size=-1)
QStringfromRawData (const QChar *, int size)
QStringfromStdString (const std::string &s)
QStringfromStdWString (const QStdWString &s)
QStringfromUcs4 (const uint *, int size=-1)
QStringfromUtf16 (const ushort *, int size=-1)
QStringfromUtf8 (const char *, int size=-1)
QStringfromWCharArray (const wchar_t *, int size=-1)
intlocaleAwareCompare (const QString &s1, const QString &s2)
intlocaleAwareCompare (const QString &s1, const QStringRef &s2)
QStringnumber (int, int base=10)
QStringnumber (uint, int base=10)
QStringnumber (long, int base=10)
QStringnumber (ulong, int base=10)
QStringnumber (qlonglong, int base=10)
QStringnumber (qulonglong, int base=10)
QStringnumber (double, char f='g', int prec=6)

Public Types

typedef const QChar * const_iterator

typedef const QChar & const_reference

typedef const_iterator ConstIterator

typedef Data * DataPtr

typedef QChar * iterator

typedef iterator Iterator

NormalizationForm

NormalizationForm_D
NormalizationForm_C
NormalizationForm_KD
NormalizationForm_KC

typedef QChar & reference

SectionFlag

SectionDefault 0x00
SectionSkipEmpty 0x01
SectionIncludeLeadingSep 0x02
SectionIncludeTrailingSep 0x04
SectionCaseInsensitiveSeps 0x08

SplitBehavior

KeepEmptyParts
SkipEmptyParts

typedef QChar value_type

Public Static Attributes

const Null null ()

Public Functions

QString ()

QString (
  • const QChar *unicode,
  • intsize )

QString (

QString (

QString (

QString (

QString (

QT_ASCII_CAST_WARN_CONSTRUCTOR QString (
  • const char *ch)

QT_ASCII_CAST_WARN_CONSTRUCTOR QString (

QString (

QString (
  • intsize,
  • Qt::Initialization )

~QString ()

Destructor.

QString & append (

QString & append (

QString & append (

QString & append (

QT_ASCII_CAST_WARN QString & append (
  • const char *s)

QT_ASCII_CAST_WARN QString & append (

QString arg (
  • qlonglonga,
  • intfieldwidth,
  • intbase,
  • const QChar &fillChar )

QString arg (
  • qulonglonga,
  • intfieldwidth,
  • intbase,
  • const QChar &fillChar )

QString arg (
  • longa,
  • intfieldwidth,
  • intbase,
  • const QChar &fillChar )

QString arg (
  • ulonga,
  • intfieldwidth,
  • intbase,
  • const QChar &fillChar )

QString arg (
  • inta,
  • intfieldWidth,
  • intbase,
  • const QChar &fillChar )

QString arg (
  • uinta,
  • intfieldWidth,
  • intbase,
  • const QChar &fillChar )

QString arg (
  • shorta,
  • intfieldWidth,
  • intbase,
  • const QChar &fillChar )

QString arg (
  • ushorta,
  • intfieldWidth,
  • intbase,
  • const QChar &fillChar )

QString arg (
  • doublea,
  • intfieldWidth,
  • charfmt,
  • intprec,
  • const QChar &fillChar )

QString arg (
  • chara,
  • intfieldWidth,
  • const QChar &fillChar )

QString arg (

QString arg (

QString arg (

QString arg (

QString arg (

QString arg (

QString arg (

QString arg (

QString arg (

QString arg (

const QChar at (
  • inti)

iterator begin ()

int capacity ()

void chop (
  • intn)

void clear ()

int compare (

int compare (
  • const QString &s,
  • Qt::CaseSensitivitycs )

int compare (

int compare (

const_iterator constBegin ()

const QChar * constData ()

const_iterator constEnd ()

QBool contains (
  • QCharc,
  • Qt::CaseSensitivitycs )

QBool contains (
  • const QString &s,
  • Qt::CaseSensitivitycs )

QBool contains (

QBool contains (

QBool contains (

int count ()

int count (
  • QCharc,
  • Qt::CaseSensitivitycs )

int count (
  • const QString &s,
  • Qt::CaseSensitivitycs )

int count (

int count (

QChar * data ()

const QChar * data ()

DataPtr & data_ptr ()

void detach ()

iterator end ()

bool endsWith (
  • const QString &s,
  • Qt::CaseSensitivitycs )

bool endsWith (

bool endsWith (

bool endsWith (
  • const QChar &c,
  • Qt::CaseSensitivitycs )

QString & fill (

int indexOf (
  • QCharc,
  • intfrom,
  • Qt::CaseSensitivitycs )

int indexOf (
  • const QString &s,
  • intfrom,
  • Qt::CaseSensitivitycs )

int indexOf (

int indexOf (
  • const QStringRef &s,
  • intfrom,
  • Qt::CaseSensitivitycs )

int indexOf (

int indexOf (

QString & insert (

QString & insert (
  • inti,
  • const QChar *uc,
  • intlen )

QString & insert (

QString & insert (

bool isDetached ()

bool isEmpty ()

bool isNull ()

bool isRightToLeft ()

bool isSharedWith (

bool isSimpleText ()

int lastIndexOf (
  • QCharc,
  • intfrom,
  • Qt::CaseSensitivitycs )

int lastIndexOf (
  • const QString &s,
  • intfrom,
  • Qt::CaseSensitivitycs )

int lastIndexOf (

int lastIndexOf (
  • const QStringRef &s,
  • intfrom,
  • Qt::CaseSensitivitycs )

int lastIndexOf (

int lastIndexOf (

QString left (
  • intn)

QString leftJustified (
  • intwidth,
  • QCharfill,
  • booltrunc )

QStringRef leftRef (
  • intn)

int length ()

int localeAwareCompare (

int localeAwareCompare (

QString mid (
  • intposition,
  • intn )

QStringRef midRef (
  • intposition,
  • intn )

QString normalized (
  • NormalizationFormmode)

QString normalized (
  • NormalizationFormmode,
  • QChar::UnicodeVersionversion )

bool operator!= (

bool operator!= (

QT_ASCII_CAST_WARN bool operator!= (
  • const char *s)

QT_ASCII_CAST_WARN bool operator!= (

QString & operator+= (

QString & operator+= (
  • QChar::SpecialCharacterc)

QString & operator+= (

QString & operator+= (

QString & operator+= (

QT_ASCII_CAST_WARN QString & operator+= (
  • const char *s)

QT_ASCII_CAST_WARN QString & operator+= (

QT_ASCII_CAST_WARN QString & operator+= (
  • charc)

bool operator< (

bool operator< (

QT_ASCII_CAST_WARN bool operator< (
  • const char *s)

QT_ASCII_CAST_WARN bool operator< (

bool operator<= (

bool operator<= (

QT_ASCII_CAST_WARN bool operator<= (
  • const char *s2)

QT_ASCII_CAST_WARN bool operator<= (

QString & operator= (

QString & operator= (

QString & operator= (

QT_ASCII_CAST_WARN QString & operator= (
  • const char *ch)

QT_ASCII_CAST_WARN QString & operator= (

QT_ASCII_CAST_WARN QString & operator= (
  • charc)

QString & operator= (

bool operator== (

bool operator== (

QT_ASCII_CAST_WARN bool operator== (
  • const char *s)

QT_ASCII_CAST_WARN bool operator== (

bool operator> (

bool operator> (

QT_ASCII_CAST_WARN bool operator> (
  • const char *s2)

QT_ASCII_CAST_WARN bool operator> (

bool operator>= (

bool operator>= (

QT_ASCII_CAST_WARN bool operator>= (
  • const char *s2)

QT_ASCII_CAST_WARN bool operator>= (

const QChar operator[] (
  • inti)

QCharRef operator[] (
  • inti)

const QChar operator[] (
  • uinti)

QCharRef operator[] (
  • uinti)

QString & prepend (

QString & prepend (

QString & prepend (

QT_ASCII_CAST_WARN QString & prepend (
  • const char *s)

QT_ASCII_CAST_WARN QString & prepend (

void push_back (

void push_back (

void push_front (

void push_front (

QString & remove (
  • inti,
  • intlen )

QString & remove (
  • QCharc,
  • Qt::CaseSensitivitycs )

QString & remove (
  • const QString &s,
  • Qt::CaseSensitivitycs )

QString & remove (

QString repeated (
  • inttimes)

QString & replace (
  • inti,
  • intlen,
  • QCharafter )

QString & replace (
  • inti,
  • intlen,
  • const QChar *s,
  • intslen )

QString & replace (
  • inti,
  • intlen,
  • const QString &after )

QString & replace (

QString & replace (
  • const QChar *before,
  • intblen,
  • const QChar *after,
  • intalen,
  • Qt::CaseSensitivitycs )

QString & replace (

QString & replace (

QString & replace (

QString & replace (

QString & replace (

QString & replace (

QString & replace (

void reserve (
  • intsize)

void resize (
  • intsize)

QString right (
  • intn)

QString rightJustified (
  • intwidth,
  • QCharfill,
  • booltrunc )

QStringRef rightRef (
  • intn)

QString section (
  • QCharsep,
  • intstart,
  • intend,
  • SectionFlagsflags )

QString section (
  • const QString &in_sep,
  • intstart,
  • intend,
  • SectionFlagsflags )

QString section (
  • const QRegExp &reg,
  • intstart,
  • intend,
  • SectionFlagsflags )

QString & setNum (
  • short,
  • intbase )

QString & setNum (
  • ushort,
  • intbase )

QString & setNum (
  • int,
  • intbase )

QString & setNum (
  • uint,
  • intbase )

QString & setNum (
  • long,
  • intbase )

QString & setNum (
  • ulong,
  • intbase )

QString & setNum (
  • qlonglong,
  • intbase )

QString & setNum (
  • qulonglong,
  • intbase )

QString & setNum (
  • float,
  • charf,
  • intprec )

QString & setNum (
  • double,
  • charf,
  • intprec )

QString & setRawData (
  • const QChar *unicode,
  • intsize )

QString & setUnicode (
  • const QChar *unicode,
  • intsize )

QString & setUtf16 (
  • const ushort *utf16,
  • intsize )

QString simplified ()

int size ()

QStringList split (
  • const QString &sep,
  • SplitBehaviorbehavior,
  • Qt::CaseSensitivitycs )

QStringList split (
  • const QChar &sep,
  • SplitBehaviorbehavior,
  • Qt::CaseSensitivitycs )

QStringList split (
  • const QRegExp &sep,
  • SplitBehaviorbehavior )

QString & sprintf (
  • const char *format,
  • ... )

void squeeze ()

bool startsWith (
  • const QString &s,
  • Qt::CaseSensitivitycs )

bool startsWith (

bool startsWith (

bool startsWith (
  • const QChar &c,
  • Qt::CaseSensitivitycs )

void swap (

QByteArray toAscii ()

QString toCaseFolded ()

double toDouble (
  • bool *ok)

float toFloat (
  • bool *ok)

int toInt (
  • bool *ok,
  • intbase )

QByteArray toLatin1 ()

QByteArray toLocal8Bit ()

long toLong (
  • bool *ok,
  • intbase )

qlonglong toLongLong (
  • bool *ok,
  • intbase )

QString toLower ()

short toShort (
  • bool *ok,
  • intbase )

std::string toStdString ()

QStdWString toStdWString ()

QVector< uint > toUcs4 ()

uint toUInt (
  • bool *ok,
  • intbase )

ulong toULong (
  • bool *ok,
  • intbase )

qulonglong toULongLong (
  • bool *ok,
  • intbase )

QString toUpper ()

ushort toUShort (
  • bool *ok,
  • intbase )

QByteArray toUtf8 ()

int toWCharArray (
  • wchar_t *array)

QString trimmed ()

void truncate (
  • intpos)

const QChar * unicode ()

const ushort * utf16 ()

QString & vsprintf (
  • const char *format,
  • va_listap )

Static Public Functions

int compare (

int compare (

int compare (

int compare (

int compare (

QString fromAscii (
  • const char *,
  • intsize )

QString fromLatin1 (
  • const char *,
  • intsize )

QString fromLocal8Bit (
  • const char *,
  • intsize )

QString fromRawData (

QString fromStdString (
  • const std::string &s)

QString fromStdWString (
  • const QStdWString &s)

QString fromUcs4 (
  • const uint *,
  • intsize )

QString fromUtf16 (
  • const ushort *,
  • intsize )

QString fromUtf8 (
  • const char *,
  • intsize )

QString fromWCharArray (
  • const wchar_t *,
  • intsize )

int localeAwareCompare (

int localeAwareCompare (

QString number (
  • int,
  • intbase )

QString number (
  • uint,
  • intbase )

QString number (
  • long,
  • intbase )

QString number (
  • ulong,
  • intbase )

QString number (
  • qlonglong,
  • intbase )

QString number (
  • qulonglong,
  • intbase )

QString number (
  • double,
  • charf,
  • intprec )

Last modified: 2015-07-24



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus