Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
 
QVector< QHashedStringRefsplit (const QChar sep) const
 
bool isEmpty () const
 
int length () const
 
bool startsWithUpper () const
 
QString toString () const
 
bool isLatin1 () const
 

Friends

class QHashedString
 

Detailed Description

Definition at line 59 of file qhashedstring_p.h.

Constructor & Destructor Documentation

◆ QHashedStringRef() [1/7]

QHashedStringRef::QHashedStringRef ( )
inline

Definition at line 198 of file qhashedstring_p.h.

Referenced by mid().

+ Here is the caller graph for this function:

◆ QHashedStringRef() [2/7]

QHashedStringRef::QHashedStringRef ( const QString & str)
inline

Definition at line 204 of file qhashedstring_p.h.

References Q_ASSERT, QString::size(), and str.

+ Here is the call graph for this function:

◆ QHashedStringRef() [3/7]

QHashedStringRef::QHashedStringRef ( QStringView str)
inline

Definition at line 210 of file qhashedstring_p.h.

References Q_ASSERT, QString::size(), and str.

+ Here is the call graph for this function:

◆ QHashedStringRef() [4/7]

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

Definition at line 216 of file qhashedstring_p.h.

◆ QHashedStringRef() [5/7]

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

Definition at line 221 of file qhashedstring_p.h.

◆ QHashedStringRef() [6/7]

QHashedStringRef::QHashedStringRef ( const QHashedString & string)
inline

Definition at line 226 of file qhashedstring_p.h.

References Q_ASSERT.

◆ QHashedStringRef() [7/7]

QHashedStringRef::QHashedStringRef ( const QHashedStringRef & string)
inline

Definition at line 232 of file qhashedstring_p.h.

Member Function Documentation

◆ at()

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

Definition at line 301 of file qhashedstring_p.h.

References Q_ASSERT.

◆ constData()

const QChar * QHashedStringRef::constData ( ) const
inline

Definition at line 307 of file qhashedstring_p.h.

Referenced by createTypeForUrl().

+ Here is the caller graph for this function:

◆ data()

QChar * QHashedStringRef::data ( )
inline

Definition at line 296 of file qhashedstring_p.h.

◆ endsWith()

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

Definition at line 34 of file qhashedstring.cpp.

References view.

◆ hash()

quint32 QHashedStringRef::hash ( ) const
inline

Definition at line 340 of file qhashedstring_p.h.

◆ indexOf()

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

Definition at line 46 of file qhashedstring.cpp.

References view.

Referenced by createTypeForUrl().

+ Here is the caller graph for this function:

◆ isEmpty()

bool QHashedStringRef::isEmpty ( ) const
inline

Definition at line 312 of file qhashedstring_p.h.

Referenced by QQmlMetaType::qmlType(), and QQmlMetaType::qmlType().

+ Here is the caller graph for this function:

◆ isLatin1()

bool QHashedStringRef::isLatin1 ( ) const
inline

Definition at line 322 of file qhashedstring_p.h.

◆ length()

int QHashedStringRef::length ( ) const
inline

Definition at line 317 of file qhashedstring_p.h.

Referenced by createTypeForUrl(), and mid().

+ Here is the caller graph for this function:

◆ mid()

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

Definition at line 8 of file qhashedstring.cpp.

References QHashedStringRef(), length(), and Q_ASSERT.

+ Here is the call graph for this function:

◆ operator!=() [1/4]

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

Definition at line 291 of file qhashedstring_p.h.

◆ operator!=() [2/4]

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

Definition at line 281 of file qhashedstring_p.h.

◆ operator!=() [3/4]

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

Definition at line 286 of file qhashedstring_p.h.

◆ operator!=() [4/4]

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

Definition at line 276 of file qhashedstring_p.h.

◆ operator=()

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

Definition at line 237 of file qhashedstring_p.h.

References o.

◆ operator==() [1/4]

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

Definition at line 269 of file qhashedstring_p.h.

References QHashedString::compare().

+ Here is the call graph for this function:

◆ operator==() [2/4]

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

Definition at line 251 of file qhashedstring_p.h.

References QStringView::constData(), and view.

+ Here is the call graph for this function:

◆ operator==() [3/4]

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

Definition at line 260 of file qhashedstring_p.h.

References view.

◆ operator==() [4/4]

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

Definition at line 245 of file qhashedstring_p.h.

References view.

◆ split()

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

Definition at line 15 of file qhashedstring.cpp.

References ret, and sep.

◆ startsWith()

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

Definition at line 40 of file qhashedstring.cpp.

References view.

◆ startsWithUpper()

bool QHashedStringRef::startsWithUpper ( ) const
inline

Definition at line 334 of file qhashedstring_p.h.

◆ toString()

QString QHashedStringRef::toString ( ) const

Definition at line 52 of file qhashedstring.cpp.

Referenced by createTypeForUrl().

+ Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ QHashedString

friend class QHashedString
friend

Definition at line 100 of file qhashedstring_p.h.


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