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 ProStringtoString ()
 
ALWAYS_INLINE const ProStringtoString () const
 
- Public Member Functions inherited from ProString
 ProString ()
 
 ProString (const ProString &other)
 
ProStringoperator= (const ProString &)=default
 
template<typename A , typename B >
ProStringoperator= (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 ()
 
ProStringsetSource (const ProString &other)
 
ProStringsetSource (int id)
 
int sourceFile () const
 
ProStringprepend (const ProString &other)
 
ProStringappend (const ProString &other, bool *pending=nullptr)
 
ProStringappend (const QString &other)
 
template<typename A , typename B >
ProStringappend (const QStringBuilder< A, B > &other)
 
ProStringappend (const QLatin1String other)
 
ProStringappend (const char *other)
 
ProStringappend (QChar other)
 
ProStringappend (const ProStringList &other, bool *pending=nullptr, bool skipEmpty1st=false)
 
ProStringoperator+= (const ProString &other)
 
ProStringoperator+= (const QString &other)
 
template<typename A , typename B >
ProStringoperator+= (const QStringBuilder< A, B > &other)
 
ProStringoperator+= (const QLatin1String other)
 
ProStringoperator+= (const char *other)
 
ProStringoperator+= (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 QCharconstData () 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 ProKeytoKey ()
 
ALWAYS_INLINE const ProKeytoKey () const
 
QString toQString () const
 
QStringtoQString (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: