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
ProKey Class Reference

#include <proitems.h>

Inheritance diagram for ProKey:
Collaboration diagram for ProKey:

Public Member Functions

ALWAYS_INLINE ProKey ()
 ProKey (const QString &str)
template<typename A, typename B>
 ProKey (const QStringBuilder< A, B > &str)
PROITEM_EXPLICIT ProKey (const char *str)
 ProKey (const QString &str, int off, int len)
 ProKey (const QString &str, int off, int len, uint hash)
void setValue (const QString &str)
ALWAYS_INLINE ProString & toString ()
ALWAYS_INLINE const ProString & toString () const
Public Member Functions inherited from ProString
 ProString ()
 ProString (const ProString &other)
ProString & operator= (const ProString &)=default
template<typename A, typename B>
ProString & operator= (const QStringBuilder< A, B > &str)
 ProString (const QString &str)
PROITEM_EXPLICIT ProString (QStringView str)
PROITEM_EXPLICIT ProString (const char *str)
template<typename A, typename B>
 ProString (const QStringBuilder< A, B > &str)
 ProString (const QString &str, int offset, int length)
void setValue (const QString &str)
void clear ()
ProString & setSource (const ProString &other)
ProString & setSource (int id)
int sourceFile () const
ProString & prepend (const ProString &other)
ProString & append (const ProString &other, bool *pending=nullptr)
ProString & append (const QString &other)
template<typename A, typename B>
ProString & append (const QStringBuilder< A, B > &other)
ProString & append (const QLatin1String other)
ProString & append (const char *other)
ProString & append (QChar other)
ProString & append (const ProStringList &other, bool *pending=nullptr, bool skipEmpty1st=false)
ProString & operator+= (const ProString &other)
ProString & operator+= (const QString &other)
template<typename A, typename B>
ProString & operator+= (const QStringBuilder< A, B > &other)
ProString & operator+= (const QLatin1String other)
ProString & operator+= (const char *other)
ProString & operator+= (QChar other)
void chop (int n)
void chopFront (int n)
bool operator== (const ProString &other) const
bool operator== (const QString &other) const
bool operator== (QStringView other) const
bool operator== (QLatin1String other) const
bool operator== (const char *other) const
bool operator!= (const ProString &other) const
bool operator!= (const QString &other) const
bool operator!= (QLatin1String other) const
bool operator!= (const char *other) const
bool operator< (const ProString &other) const
bool isNull () const
bool isEmpty () const
int length () const
int size () const
QChar at (int i) const
const QChar * constData () const
ProString mid (int off, int len=-1) const
ProString left (int len) const
ProString right (int len) const
ProString trimmed () const
int compare (const ProString &sub, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
int compare (const QString &sub, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
int compare (const char *sub, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
bool startsWith (const ProString &sub, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
bool startsWith (const QString &sub, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
bool startsWith (const char *sub, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
bool startsWith (QChar c, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
template<typename A, typename B>
bool startsWith (const QStringBuilder< A, B > &str)
bool endsWith (const ProString &sub, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
bool endsWith (const QString &sub, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
bool endsWith (const char *sub, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
template<typename A, typename B>
bool endsWith (const QStringBuilder< A, B > &str)
bool endsWith (QChar c, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
int indexOf (const QString &s, int from=0, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
int indexOf (const char *s, int from=0, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
int indexOf (QChar c, int from=0, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
int lastIndexOf (const QString &s, int from=-1, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
int lastIndexOf (const char *s, int from=-1, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
int lastIndexOf (QChar c, int from=-1, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
bool contains (const QString &s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
bool contains (const char *s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
bool contains (QChar c, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
qlonglong toLongLong (bool *ok=nullptr, int base=10) const
int toInt (bool *ok=nullptr, int base=10) const
short toShort (bool *ok=nullptr, int base=10) const
size_t hash () const
ALWAYS_INLINE QStringView toQStringView () const
ALWAYS_INLINE ProKey & toKey ()
ALWAYS_INLINE const ProKey & toKey () const
QString toQString () const
QString & toQString (QString &tmp) const
QByteArray toLatin1 () const

Additional Inherited Members

Static Public Member Functions inherited from ProString
static size_t hash (const QChar *p, int n)

Detailed Description

Definition at line 171 of file proitems.h.

Constructor & Destructor Documentation

◆ ProKey() [1/6]

ALWAYS_INLINE ProKey::ProKey ( )
inline

Definition at line 173 of file proitems.h.

References ProString::ProString().

Here is the call graph for this function:

◆ ProKey() [2/6]

ProKey::ProKey ( const QString & str)
explicit

Definition at line 102 of file proitems.cpp.

Referenced by ProFileEvaluator::contains(), insertJsonKeyValue(), ProFileEvaluator::propertyValue(), ProFileEvaluator::values(), and ProFileEvaluator::values().

Here is the caller graph for this function:

◆ ProKey() [3/6]

template<typename A, typename B>
ProKey::ProKey ( const QStringBuilder< A, B > & str)
inline

Definition at line 176 of file proitems.h.

◆ ProKey() [4/6]

ProKey::ProKey ( const char * str)

◆ ProKey() [5/6]

ProKey::ProKey ( const QString & str,
int off,
int len )

Definition at line 112 of file proitems.cpp.

◆ ProKey() [6/6]

ProKey::ProKey ( const QString & str,
int off,
int len,
uint hash )

Definition at line 117 of file proitems.cpp.

Referenced by ProFile::getHashStr().

Here is the caller graph for this function:

Member Function Documentation

◆ setValue()

void ProKey::setValue ( const QString & str)

Definition at line 122 of file proitems.cpp.

◆ toString() [1/2]

ALWAYS_INLINE ProString & ProKey::toString ( )
inline

Definition at line 194 of file proitems.h.

◆ toString() [2/2]

ALWAYS_INLINE const ProString & ProKey::toString ( ) const
inline

Definition at line 195 of file proitems.h.


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