QStringRef

#include <QtCore/QStringRef>

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


Overview

Public Functions Index

QStringRef ()
QStringRef (const QString *string, int position, int size)
QStringRef (const QString *string)
QStringRef (const QStringRef &other)
~QStringRef ()
QStringRefappendTo (QString *string) const
const QCharat (int i) const
voidclear ()
intcompare (const QString &s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
intcompare (const QStringRef &s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
intcompare (QLatin1String s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
const QChar *constData () const
QBoolcontains (const QString &str, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
QBoolcontains (QChar ch, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
QBoolcontains (QLatin1String str, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
QBoolcontains (const QStringRef &str, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
intcount () const
intcount (const QString &s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
intcount (QChar c, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
intcount (const QStringRef &s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
const QChar *data () const
boolendsWith (const QString &s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
boolendsWith (QLatin1String s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
boolendsWith (QChar c, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
boolendsWith (const QStringRef &c, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
intindexOf (const QString &str, int from=0, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
intindexOf (QChar ch, int from=0, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
intindexOf (QLatin1String str, int from=0, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
intindexOf (const QStringRef &str, int from=0, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
boolisEmpty () const
boolisNull () const
intlastIndexOf (const QString &str, int from=-1, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
intlastIndexOf (QChar ch, int from=-1, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
intlastIndexOf (QLatin1String str, int from=-1, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
intlastIndexOf (const QStringRef &str, int from=-1, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
intlength () const
intlocaleAwareCompare (const QString &s) const
intlocaleAwareCompare (const QStringRef &s) const
QStringRef &operator= (const QStringRef &other)
QStringRef &operator= (const QString *string)
intposition () const
intsize () const
boolstartsWith (const QString &s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
boolstartsWith (QLatin1String s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
boolstartsWith (QChar c, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
boolstartsWith (const QStringRef &c, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
const QString *string () const
QByteArraytoAscii () const Q_REQUIRED_RESULT
QByteArraytoLatin1 () const Q_REQUIRED_RESULT
QByteArraytoLocal8Bit () const Q_REQUIRED_RESULT
QStringtoString () const
QVector< uint >toUcs4 () const Q_REQUIRED_RESULT
QByteArraytoUtf8 () const Q_REQUIRED_RESULT
const QChar *unicode () const

Static Public Functions Index

intcompare (const QStringRef &s1, const QString &s2, Qt::CaseSensitivity=Qt::CaseSensitive)
intcompare (const QStringRef &s1, const QStringRef &s2, Qt::CaseSensitivity=Qt::CaseSensitive)
intcompare (const QStringRef &s1, QLatin1String s2, Qt::CaseSensitivity cs=Qt::CaseSensitive)
intlocaleAwareCompare (const QStringRef &s1, const QString &s2)
intlocaleAwareCompare (const QStringRef &s1, const QStringRef &s2)

Public Functions

QStringRef ()

QStringRef (
  • const QString *string,
  • intposition,
  • intsize )

QStringRef (

QStringRef (

~QStringRef ()

Destructor.

QStringRef appendTo (

const QChar at (
  • inti)

void clear ()

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

int compare (

int compare (

const QChar * constData ()

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

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

QBool contains (

QBool contains (

int count ()

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

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

int count (

const QChar * data ()

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

bool endsWith (

bool endsWith (
  • QCharc,
  • Qt::CaseSensitivitycs )

bool endsWith (

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

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

int indexOf (

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

bool isEmpty ()

bool isNull ()

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

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

int lastIndexOf (

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

int length ()

int localeAwareCompare (

int localeAwareCompare (

QStringRef & operator= (

QStringRef & operator= (

int position ()

int size ()

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

bool startsWith (

bool startsWith (
  • QCharc,
  • Qt::CaseSensitivitycs )

bool startsWith (

const QString * string ()

QByteArray toAscii ()

QByteArray toLatin1 ()

QByteArray toLocal8Bit ()

QString toString ()

QVector< uint > toUcs4 ()

QByteArray toUtf8 ()

const QChar * unicode ()

Static Public Functions

int compare (

int compare (

int compare (

int localeAwareCompare (

int localeAwareCompare (

Last modified: 2015-07-24



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

comments powered by Disqus