Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QHashedStringRef Class Reference

#include <qhashedstring_p.h>

Collaboration diagram for QHashedStringRef:

Public Member Functions

 QHashedStringRef ()
 QHashedStringRef (const QString &)
 QHashedStringRef (QStringView)
 QHashedStringRef (const QChar *, int)
 QHashedStringRef (const QChar *, int, quint32)
 QHashedStringRef (const QHashedString &)
 QHashedStringRef (const QHashedStringRef &)
QHashedStringRefoperator= (const QHashedStringRef &)
bool operator== (const QString &string) const
bool operator== (const QHashedString &string) const
bool operator== (const QHashedStringRef &string) const
bool operator== (const QHashedCStringRef &string) const
bool operator!= (const QString &string) const
bool operator!= (const QHashedString &string) const
bool operator!= (const QHashedStringRef &string) const
bool operator!= (const QHashedCStringRef &string) const
quint32 hash () const
QChardata ()
const QCharat (int) const
const QCharconstData () const
bool startsWith (const QString &) const
bool endsWith (const QString &) const
int indexOf (const QChar &, int from=0) const
QHashedStringRef mid (int, int) const
QList< QHashedStringRefsplit (const QChar sep) const
bool isEmpty () const
int length () const
bool startsWithUpper () const
QString toString () const
bool isLatin1 () const

Friends

class QHashedString
size_t qHash (const QHashedStringRef &key, size_t seed=0)

Detailed Description

Definition at line 63 of file qhashedstring_p.h.

Constructor & Destructor Documentation

◆ QHashedStringRef() [1/7]

QHashedStringRef::QHashedStringRef ( )
inline

Definition at line 195 of file qhashedstring_p.h.

◆ QHashedStringRef() [2/7]

QHashedStringRef::QHashedStringRef ( const QString & str)
inline

Definition at line 201 of file qhashedstring_p.h.

◆ QHashedStringRef() [3/7]

QHashedStringRef::QHashedStringRef ( QStringView str)
inline

Definition at line 207 of file qhashedstring_p.h.

◆ QHashedStringRef() [4/7]

QHashedStringRef::QHashedStringRef ( const QChar * data,
int length )
inline

Definition at line 213 of file qhashedstring_p.h.

◆ QHashedStringRef() [5/7]

QHashedStringRef::QHashedStringRef ( const QChar * data,
int length,
quint32 hash )
inline

Definition at line 218 of file qhashedstring_p.h.

◆ QHashedStringRef() [6/7]

QHashedStringRef::QHashedStringRef ( const QHashedString & string)
inline

Definition at line 223 of file qhashedstring_p.h.

◆ QHashedStringRef() [7/7]

QHashedStringRef::QHashedStringRef ( const QHashedStringRef & string)
inline

Definition at line 229 of file qhashedstring_p.h.

Member Function Documentation

◆ at()

const QChar & QHashedStringRef::at ( int index) const
inline

Definition at line 298 of file qhashedstring_p.h.

◆ constData()

const QChar * QHashedStringRef::constData ( ) const
inline

Definition at line 304 of file qhashedstring_p.h.

◆ data()

QChar * QHashedStringRef::data ( )
inline

Definition at line 293 of file qhashedstring_p.h.

◆ endsWith()

bool QHashedStringRef::endsWith ( const QString & s) const

Definition at line 35 of file qhashedstring.cpp.

◆ hash()

quint32 QHashedStringRef::hash ( ) const
inline

Definition at line 337 of file qhashedstring_p.h.

◆ indexOf()

int QHashedStringRef::indexOf ( const QChar & c,
int from = 0 ) const

Definition at line 47 of file qhashedstring.cpp.

◆ isEmpty()

bool QHashedStringRef::isEmpty ( ) const
inline

Definition at line 309 of file qhashedstring_p.h.

◆ isLatin1()

bool QHashedStringRef::isLatin1 ( ) const
inline

Definition at line 319 of file qhashedstring_p.h.

◆ length()

int QHashedStringRef::length ( ) const
inline

Definition at line 314 of file qhashedstring_p.h.

◆ mid()

QT_BEGIN_NAMESPACE QHashedStringRef QHashedStringRef::mid ( int offset,
int length ) const

Definition at line 9 of file qhashedstring.cpp.

◆ operator!=() [1/4]

bool QHashedStringRef::operator!= ( const QHashedCStringRef & string) const
inline

Definition at line 288 of file qhashedstring_p.h.

◆ operator!=() [2/4]

bool QHashedStringRef::operator!= ( const QHashedString & string) const
inline

Definition at line 278 of file qhashedstring_p.h.

◆ operator!=() [3/4]

bool QHashedStringRef::operator!= ( const QHashedStringRef & string) const
inline

Definition at line 283 of file qhashedstring_p.h.

◆ operator!=() [4/4]

bool QHashedStringRef::operator!= ( const QString & string) const
inline

Definition at line 273 of file qhashedstring_p.h.

◆ operator=()

QHashedStringRef & QHashedStringRef::operator= ( const QHashedStringRef & o)
inline

Definition at line 234 of file qhashedstring_p.h.

◆ operator==() [1/4]

bool QHashedStringRef::operator== ( const QHashedCStringRef & string) const
inline

Definition at line 266 of file qhashedstring_p.h.

◆ operator==() [2/4]

bool QHashedStringRef::operator== ( const QHashedString & string) const
inline

Definition at line 248 of file qhashedstring_p.h.

◆ operator==() [3/4]

bool QHashedStringRef::operator== ( const QHashedStringRef & string) const
inline

Definition at line 257 of file qhashedstring_p.h.

◆ operator==() [4/4]

bool QHashedStringRef::operator== ( const QString & string) const
inline

Definition at line 242 of file qhashedstring_p.h.

◆ split()

QList< QHashedStringRef > QHashedStringRef::split ( const QChar sep) const

Definition at line 16 of file qhashedstring.cpp.

◆ startsWith()

bool QHashedStringRef::startsWith ( const QString & s) const

Definition at line 41 of file qhashedstring.cpp.

◆ startsWithUpper()

bool QHashedStringRef::startsWithUpper ( ) const
inline

Definition at line 331 of file qhashedstring_p.h.

◆ toString()

QString QHashedStringRef::toString ( ) const

Definition at line 53 of file qhashedstring.cpp.

◆ qHash

size_t qHash ( const QHashedStringRef & key,
size_t seed = 0 )
friend

Definition at line 106 of file qhashedstring_p.h.

◆ QHashedString

friend class QHashedString
friend

Definition at line 104 of file qhashedstring_p.h.


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