KDbEscapedString

Search for usage in LXR

#include <KDbEscapedString.h>

Inheritance diagram for KDbEscapedString:

Public Types

typedef QByteArray::DataPtr DataPtr
 

Public Member Functions

 KDbEscapedString (char ch)
 
 KDbEscapedString (const char *string)
 
 KDbEscapedString (const KDbEscapedString &string)
 
 KDbEscapedString (const QByteArray &string)
 
 KDbEscapedString (const QString &string)
 
 KDbEscapedString (QChar ch)
 
KDbEscapedStringappend (char c)
 
KDbEscapedStringappend (const char *s)
 
KDbEscapedStringappend (const char *s, int len)
 
KDbEscapedStringappend (const KDbEscapedString &s)
 
KDbEscapedStringappend (const QByteArray &a)
 
KDbEscapedStringappend (const QString &a)
 
KDbEscapedString arg (char a, int fieldWidth=0, const QChar &fillChar=QLatin1Char(' ')) const
 
KDbEscapedString arg (const KDbEscapedString &a, int fieldWidth=0, const QChar &fillChar=QLatin1Char(' ')) const
 
KDbEscapedString arg (const KDbEscapedString &a1, const KDbEscapedString &a2) const
 
KDbEscapedString arg (const KDbEscapedString &a1, const KDbEscapedString &a2, const KDbEscapedString &a3) const
 
KDbEscapedString arg (const KDbEscapedString &a1, const KDbEscapedString &a2, const KDbEscapedString &a3, const KDbEscapedString &a4) const
 
KDbEscapedString arg (const KDbEscapedString &a1, const KDbEscapedString &a2, const KDbEscapedString &a3, const KDbEscapedString &a4, const KDbEscapedString &a5) const
 
KDbEscapedString arg (const KDbEscapedString &a1, const KDbEscapedString &a2, const KDbEscapedString &a3, const KDbEscapedString &a4, const KDbEscapedString &a5, const KDbEscapedString &a6) const
 
KDbEscapedString arg (const KDbEscapedString &a1, const KDbEscapedString &a2, const KDbEscapedString &a3, const KDbEscapedString &a4, const KDbEscapedString &a5, const KDbEscapedString &a6, const KDbEscapedString &a7) const
 
KDbEscapedString arg (const KDbEscapedString &a1, const KDbEscapedString &a2, const KDbEscapedString &a3, const KDbEscapedString &a4, const KDbEscapedString &a5, const KDbEscapedString &a6, const KDbEscapedString &a7, const KDbEscapedString &a8) const
 
KDbEscapedString arg (const KDbEscapedString &a1, const KDbEscapedString &a2, const KDbEscapedString &a3, const KDbEscapedString &a4, const KDbEscapedString &a5, const KDbEscapedString &a6, const KDbEscapedString &a7, const KDbEscapedString &a8, const KDbEscapedString &a9) const
 
KDbEscapedString arg (const QByteArray &a, int fieldWidth=0, const QChar &fillChar=QLatin1Char(' ')) const
 
KDbEscapedString arg (const QString &a, int fieldWidth=0, const QChar &fillChar=QLatin1Char(' ')) const
 
KDbEscapedString arg (double a, int fieldWidth=0, char format='g', int precision=-1, const QChar &fillChar=QLatin1Char(' ')) const
 
KDbEscapedString arg (int a, int fieldWidth=0, int base=10, const QChar &fillChar=QLatin1Char(' ')) const
 
KDbEscapedString arg (long a, int fieldWidth=0, int base=10, const QChar &fillChar=QLatin1Char(' ')) const
 
KDbEscapedString arg (QChar a, int fieldWidth=0, const QChar &fillChar=QLatin1Char(' ')) const
 
KDbEscapedString arg (qlonglong a, int fieldWidth=0, int base=10, const QChar &fillChar=QLatin1Char(' ')) const
 
KDbEscapedString arg (qulonglong a, int fieldWidth=0, int base=10, const QChar &fillChar=QLatin1Char(' ')) const
 
KDbEscapedString arg (short a, int fieldWidth=0, int base=10, const QChar &fillChar=QLatin1Char(' ')) const
 
KDbEscapedString arg (uint a, int fieldWidth=0, int base=10, const QChar &fillChar=QLatin1Char(' ')) const
 
KDbEscapedString arg (ulong a, int fieldWidth=0, int base=10, const QChar &fillChar=QLatin1Char(' ')) const
 
KDbEscapedString arg (ushort a, int fieldWidth=0, int base=10, const QChar &fillChar=QLatin1Char(' ')) const
 
char at (int i) const
 
int capacity () const
 
void chop (int n)
 
void clear ()
 
const char * constData () const
 
int count () const
 
int count (char c) const
 
int count (const char *a) const
 
int count (const KDbEscapedString &s) const
 
int count (const QByteArray &a) const
 
char * data ()
 
const char * data () const
 
DataPtr & data_ptr ()
 
bool endsWith (char c) const
 
bool endsWith (const char *c) const
 
bool endsWith (const KDbEscapedString &s) const
 
bool endsWith (const QByteArray &a) const
 
KDbEscapedStringfill (char c, int size=-1)
 
int indexOf (char c, int from=0) const
 
int indexOf (const char *c, int from=0) const
 
int indexOf (const KDbEscapedString &s, int from=0) const
 
int indexOf (const QByteArray &a, int from=0) const
 
KDbEscapedStringinsert (int i, char c)
 
KDbEscapedStringinsert (int i, const char *s)
 
KDbEscapedStringinsert (int i, const KDbEscapedString &s)
 
KDbEscapedStringinsert (int i, const QByteArray &a)
 
bool isEmpty () const
 
bool isNull () const
 
bool isValid () const
 
int lastIndexOf (char c, int from=-1) const
 
int lastIndexOf (const char *c, int from=-1) const
 
int lastIndexOf (const KDbEscapedString &s, int from=0) const
 
int lastIndexOf (const QByteArray &a, int from=-1) const
 
KDbEscapedString left (int len) const
 
KDbEscapedString leftJustified (int width, char fill=' ', bool truncate=false) const
 
int length () const
 
KDbEscapedString mid (int index, int len=-1) const
 
KDbEscapedStringoperator+= (char c)
 
KDbEscapedStringoperator+= (const char *s)
 
KDbEscapedStringoperator+= (const KDbEscapedString &s)
 
KDbEscapedStringoperator+= (const QByteArray &a)
 
KDbEscapedStringoperator+= (const QString &a)
 
KDbEscapedStringoperator= (const char *string)
 
KDbEscapedStringoperator= (const KDbEscapedString &string)
 
KDbEscapedStringoperator= (const QByteArray &string)
 
bool operator== (const KDbEscapedString &other) const
 
QByteRef operator[] (int i)
 
char operator[] (int i) const
 
QByteRef operator[] (uint i)
 
char operator[] (uint i) const
 
KDbEscapedStringprepend (char c)
 
KDbEscapedStringprepend (const char *s)
 
KDbEscapedStringprepend (const KDbEscapedString &s)
 
KDbEscapedStringprepend (const QByteArray &a)
 
KDbEscapedStringremove (int index, int len)
 
KDbEscapedString repeated (int times) const
 
KDbEscapedStringreplace (char before, char after)
 
KDbEscapedStringreplace (char before, const char *after)
 
KDbEscapedStringreplace (char before, const KDbEscapedString &after)
 
KDbEscapedStringreplace (char before, const QByteArray &after)
 
KDbEscapedStringreplace (const char *before, const char *after)
 
KDbEscapedStringreplace (const char *before, const QByteArray &after)
 
KDbEscapedStringreplace (const char *before, int bsize, const char *after, int asize)
 
KDbEscapedStringreplace (const KDbEscapedString &before, const KDbEscapedString &after)
 
KDbEscapedStringreplace (const KDbEscapedString &before, const QByteArray &after)
 
KDbEscapedStringreplace (const QByteArray &before, const char *after)
 
KDbEscapedStringreplace (const QByteArray &before, const KDbEscapedString &after)
 
KDbEscapedStringreplace (const QByteArray &before, const QByteArray &after)
 
KDbEscapedStringreplace (int index, int len, const char *s)
 
KDbEscapedStringreplace (int index, int len, const KDbEscapedString &s)
 
KDbEscapedStringreplace (int index, int len, const QByteArray &s)
 
void reserve (int size)
 
void resize (int size)
 
KDbEscapedString right (int len) const
 
KDbEscapedString rightJustified (int width, char fill=' ', bool truncate=false) const
 
KDbEscapedStringsetNum (double val, char f='g', int prec=6)
 
KDbEscapedStringsetNum (float val, char f='g', int prec=6)
 
KDbEscapedStringsetNum (int val, int base=10)
 
KDbEscapedStringsetNum (qlonglong val, int base=10)
 
KDbEscapedStringsetNum (qulonglong val, int base=10)
 
KDbEscapedStringsetNum (short val, int base=10)
 
KDbEscapedStringsetNum (uint val, int base=10)
 
KDbEscapedStringsetNum (ushort val, int base=10)
 
KDbEscapedString simplified () const
 
int size () const
 
QList< KDbEscapedStringsplit (char sep) const
 
void squeeze ()
 
bool startsWith (char c) const
 
bool startsWith (const char *c) const
 
bool startsWith (const KDbEscapedString &s) const
 
bool startsWith (const QByteArray &a) const
 
KDbEscapedString toBase64 () const
 
QByteArray toByteArray () const
 
double toDouble (bool *ok=nullptr) const
 
float toFloat (bool *ok=nullptr) const
 
KDbEscapedString toHex () const
 
int toInt (bool *ok=nullptr, int base=10) const
 
long toLong (bool *ok=nullptr, int base=10) const
 
qlonglong toLongLong (bool *ok=nullptr, int base=10) const
 
KDbEscapedString toLower () const
 
KDbEscapedString toPercentEncoding (const QByteArray &exclude=QByteArray(), const QByteArray &include=QByteArray(), char percent='%') const
 
short toShort (bool *ok=nullptr, int base=10) const
 
QString toString () const
 
uint toUInt (bool *ok=nullptr, int base=10) const
 
ulong toULong (bool *ok=nullptr, int base=10) const
 
qulonglong toULongLong (bool *ok=nullptr, int base=10) const
 
KDbEscapedString toUpper () const
 
ushort toUShort (bool *ok=nullptr, int base=10) const
 
KDbEscapedString trimmed () const
 
void truncate (int pos)
 

Static Public Member Functions

static KDbEscapedString fromBase64 (const KDbEscapedString &base64)
 
static KDbEscapedString fromBase64 (const QByteArray &base64)
 
static KDbEscapedString fromHex (const KDbEscapedString &hexEncoded)
 
static KDbEscapedString fromHex (const QByteArray &hexEncoded)
 
static KDbEscapedString fromPercentEncoding (const KDbEscapedString &pctEncoded, char percent='%')
 
static KDbEscapedString fromPercentEncoding (const QByteArray &pctEncoded, char percent='%')
 
static KDbEscapedString fromRawData (const char *s, int size)
 
static KDbEscapedString invalid ()
 
static KDbEscapedString number (double val, char f='g', int prec=6)
 
static KDbEscapedString number (int val, int base=10)
 
static KDbEscapedString number (qlonglong val, int base=10)
 
static KDbEscapedString number (qulonglong val, int base=10)
 
static KDbEscapedString number (uint val, int base=10)
 

Additional Inherited Members

- Protected Types inherited from QByteArray
enum  Base64Option
 
- Protected Member Functions inherited from QByteArray
 QByteArray (const char *data, int size)
 
 QByteArray (const QByteArray &other)
 
 QByteArray (int size, char ch)
 
 QByteArray (QByteArray &&other)
 
QByteArrayappend (char ch)
 
QByteArrayappend (const char *str)
 
QByteArrayappend (const char *str, int len)
 
QByteArrayappend (const QByteArray &ba)
 
QByteArrayappend (const QString &str)
 
QByteArrayappend (int count, char ch)
 
char at (int i) const const
 
QByteRef back ()
 
char back () const const
 
QByteArray::iterator begin ()
 
QByteArray::const_iterator begin () const const
 
int capacity () const const
 
QByteArray::const_iterator cbegin () const const
 
QByteArray::const_iterator cend () const const
 
void chop (int n)
 
QByteArray chopped (int len) const const
 
void clear ()
 
int compare (const char *c, Qt::CaseSensitivity cs) const const
 
int compare (const QByteArray &a, Qt::CaseSensitivity cs) const const
 
QByteArray::const_iterator constBegin () const const
 
const char * constData () const const
 
QByteArray::const_iterator constEnd () const const
 
bool contains (char ch) const const
 
bool contains (const char *str) const const
 
bool contains (const QByteArray &ba) const const
 
int count () const const
 
int count (char ch) const const
 
int count (const char *str) const const
 
int count (const QByteArray &ba) const const
 
QByteArray::const_reverse_iterator crbegin () const const
 
QByteArray::const_reverse_iterator crend () const const
 
char * data ()
 
const char * data () const const
 
QByteArray::iterator end ()
 
QByteArray::const_iterator end () const const
 
bool endsWith (char ch) const const
 
bool endsWith (const char *str) const const
 
bool endsWith (const QByteArray &ba) const const
 
QByteArrayfill (char ch, int size)
 
QByteRef front ()
 
char front () const const
 
int indexOf (char ch, int from) const const
 
int indexOf (const char *str, int from) const const
 
int indexOf (const QByteArray &ba, int from) const const
 
int indexOf (const QString &str, int from) const const
 
QByteArrayinsert (int i, char ch)
 
QByteArrayinsert (int i, const char *str)
 
QByteArrayinsert (int i, const char *str, int len)
 
QByteArrayinsert (int i, const QByteArray &ba)
 
QByteArrayinsert (int i, const QString &str)
 
QByteArrayinsert (int i, int count, char ch)
 
bool isEmpty () const const
 
bool isLower () const const
 
bool isNull () const const
 
bool isUpper () const const
 
int lastIndexOf (char ch, int from) const const
 
int lastIndexOf (const char *str, int from) const const
 
int lastIndexOf (const QByteArray &ba, int from) const const
 
int lastIndexOf (const QString &str, int from) const const
 
QByteArray left (int len) const const
 
QByteArray leftJustified (int width, char fill, bool truncate) const const
 
int length () const const
 
QByteArray mid (int pos, int len) const const
 
const char * operator const char * () const const
 
const void * operator const void * () const const
 
bool operator!= (const char *a1, const QByteArray &a2)
 
bool operator!= (const QByteArray &a1, const char *a2)
 
bool operator!= (const QByteArray &a1, const QByteArray &a2)
 
bool operator!= (const QString &str) const const
 
const QByteArray operator+ (char a1, const QByteArray &a2)
 
const QByteArray operator+ (const char *a1, const QByteArray &a2)
 
const QByteArray operator+ (const QByteArray &a1, char a2)
 
const QByteArray operator+ (const QByteArray &a1, const char *a2)
 
const QByteArray operator+ (const QByteArray &a1, const QByteArray &a2)
 
QByteArrayoperator+= (char ch)
 
QByteArrayoperator+= (const char *str)
 
QByteArrayoperator+= (const QByteArray &ba)
 
QByteArrayoperator+= (const QString &str)
 
bool operator< (const char *a1, const QByteArray &a2)
 
bool operator< (const QByteArray &a1, const char *a2)
 
bool operator< (const QByteArray &a1, const QByteArray &a2)
 
bool operator< (const QString &str) const const
 
QDataStreamoperator<< (QDataStream &out, const QByteArray &ba)
 
bool operator<= (const char *a1, const QByteArray &a2)
 
bool operator<= (const QByteArray &a1, const char *a2)
 
bool operator<= (const QByteArray &a1, const QByteArray &a2)
 
bool operator<= (const QString &str) const const
 
QByteArrayoperator= (const char *str)
 
QByteArrayoperator= (const QByteArray &other)
 
QByteArrayoperator= (QByteArray &&other)
 
bool operator== (const char *a1, const QByteArray &a2)
 
bool operator== (const QByteArray &a1, const char *a2)
 
bool operator== (const QByteArray &a1, const QByteArray &a2)
 
bool operator== (const QString &str) const const
 
bool operator> (const char *a1, const QByteArray &a2)
 
bool operator> (const QByteArray &a1, const char *a2)
 
bool operator> (const QByteArray &a1, const QByteArray &a2)
 
bool operator> (const QString &str) const const
 
bool operator>= (const char *a1, const QByteArray &a2)
 
bool operator>= (const QByteArray &a1, const char *a2)
 
bool operator>= (const QByteArray &a1, const QByteArray &a2)
 
bool operator>= (const QString &str) const const
 
QDataStreamoperator>> (QDataStream &in, QByteArray &ba)
 
QByteRef operator[] (int i)
 
char operator[] (int i) const const
 
QByteRef operator[] (uint i)
 
char operator[] (uint i) const const
 
QByteArrayprepend (char ch)
 
QByteArrayprepend (const char *str)
 
QByteArrayprepend (const char *str, int len)
 
QByteArrayprepend (const QByteArray &ba)
 
QByteArrayprepend (int count, char ch)
 
void push_back (char ch)
 
void push_back (const char *str)
 
void push_back (const QByteArray &other)
 
void push_front (char ch)
 
void push_front (const char *str)
 
void push_front (const QByteArray &other)
 
 QByteArrayLiteral (ba)
 
quint16 qChecksum (const char *data, uint len)
 
quint16 qChecksum (const char *data, uint len, Qt::ChecksumType standard)
 
QByteArray qCompress (const QByteArray &data, int compressionLevel)
 
QByteArray qCompress (const uchar *data, int nbytes, int compressionLevel)
 
int qsnprintf (char *str, size_t n, const char *fmt,...)
 
int qstrcmp (const char *str1, const char *str2)
 
char * qstrcpy (char *dst, const char *src)
 
char * qstrdup (const char *src)
 
int qstricmp (const char *str1, const char *str2)
 
uint qstrlen (const char *str)
 
int qstrncmp (const char *str1, const char *str2, uint len)
 
char * qstrncpy (char *dst, const char *src, uint len)
 
int qstrnicmp (const char *str1, const char *str2, uint len)
 
uint qstrnlen (const char *str, uint maxlen)
 
 QT_NO_CAST_FROM_BYTEARRAY QT_NO_CAST_FROM_BYTEARRAY
 
QByteArray qUncompress (const QByteArray &data)
 
QByteArray qUncompress (const uchar *data, int nbytes)
 
int qvsnprintf (char *str, size_t n, const char *fmt, va_list ap)
 
QByteArray::reverse_iterator rbegin ()
 
QByteArray::const_reverse_iterator rbegin () const const
 
QByteArrayremove (int pos, int len)
 
QByteArray::reverse_iterator rend ()
 
QByteArray::const_reverse_iterator rend () const const
 
QByteArray repeated (int times) const const
 
QByteArrayreplace (char before, char after)
 
QByteArrayreplace (char before, const char *after)
 
QByteArrayreplace (char before, const QByteArray &after)
 
QByteArrayreplace (char before, const QString &after)
 
QByteArrayreplace (const char *before, const char *after)
 
QByteArrayreplace (const char *before, const QByteArray &after)
 
QByteArrayreplace (const char *before, int bsize, const char *after, int asize)
 
QByteArrayreplace (const QByteArray &before, const char *after)
 
QByteArrayreplace (const QByteArray &before, const QByteArray &after)
 
QByteArrayreplace (const QString &before, const char *after)
 
QByteArrayreplace (const QString &before, const QByteArray &after)
 
QByteArrayreplace (int pos, int len, const char *after)
 
QByteArrayreplace (int pos, int len, const char *after, int alen)
 
QByteArrayreplace (int pos, int len, const QByteArray &after)
 
void reserve (int size)
 
void resize (int size)
 
QByteArray right (int len) const const
 
QByteArray rightJustified (int width, char fill, bool truncate) const const
 
QByteArraysetNum (double n, char f, int prec)
 
QByteArraysetNum (float n, char f, int prec)
 
QByteArraysetNum (int n, int base)
 
QByteArraysetNum (qlonglong n, int base)
 
QByteArraysetNum (qulonglong n, int base)
 
QByteArraysetNum (short n, int base)
 
QByteArraysetNum (uint n, int base)
 
QByteArraysetNum (ushort n, int base)
 
QByteArraysetRawData (const char *data, uint size)
 
void shrink_to_fit ()
 
QByteArray simplified () const const
 
int size () const const
 
QList< QByteArraysplit (char sep) const const
 
void squeeze ()
 
bool startsWith (char ch) const const
 
bool startsWith (const char *str) const const
 
bool startsWith (const QByteArray &ba) const const
 
void swap (QByteArray &other)
 
QByteArray toBase64 () const const
 
QByteArray toBase64 (QByteArray::Base64Options options) const const
 
CFDataRef toCFData () const const
 
double toDouble (bool *ok) const const
 
float toFloat (bool *ok) const const
 
QByteArray toHex () const const
 
QByteArray toHex (char separator) const const
 
int toInt (bool *ok, int base) const const
 
long toLong (bool *ok, int base) const const
 
qlonglong toLongLong (bool *ok, int base) const const
 
QByteArray toLower () const const
 
NSData * toNSData () const const
 
QByteArray toPercentEncoding (const QByteArray &exclude, const QByteArray &include, char percent) const const
 
CFDataRef toRawCFData () const const
 
NSData * toRawNSData () const const
 
short toShort (bool *ok, int base) const const
 
std::string toStdString () const const
 
uint toUInt (bool *ok, int base) const const
 
ulong toULong (bool *ok, int base) const const
 
qulonglong toULongLong (bool *ok, int base) const const
 
QByteArray toUpper () const const
 
ushort toUShort (bool *ok, int base) const const
 
QByteArray trimmed () const const
 
void truncate (int pos)
 
- Static Protected Member Functions inherited from QByteArray
QByteArray fromBase64 (const QByteArray &base64)
 
QByteArray fromBase64 (const QByteArray &base64, QByteArray::Base64Options options)
 
QByteArray::FromBase64Result fromBase64Encoding (const QByteArray &base64, QByteArray::Base64Options options)
 
QByteArray::FromBase64Result fromBase64Encoding (QByteArray &&base64, QByteArray::Base64Options options)
 
QByteArray fromCFData (CFDataRef data)
 
QByteArray fromHex (const QByteArray &hexEncoded)
 
QByteArray fromNSData (const NSData *data)
 
QByteArray fromPercentEncoding (const QByteArray &input, char percent)
 
QByteArray fromRawCFData (CFDataRef data)
 
QByteArray fromRawData (const char *data, int size)
 
QByteArray fromRawNSData (const NSData *data)
 
QByteArray fromStdString (const std::string &str)
 
QByteArray number (double n, char f, int prec)
 
QByteArray number (int n, int base)
 
QByteArray number (qlonglong n, int base)
 
QByteArray number (qulonglong n, int base)
 
QByteArray number (uint n, int base)
 
- Protected Attributes inherited from QByteArray
 AbortOnBase64DecodingErrors
 
 Base64Encoding
 
typedef Base64Options
 
 Base64UrlEncoding
 
typedef const_reverse_iterator
 
 IgnoreBase64DecodingErrors
 
 KeepTrailingEquals
 
 OmitTrailingEquals
 
typedef reverse_iterator
 

Detailed Description

Specialized string for escaping.

In addition to byte array, contains "validity" flag that is transferred when strings are concatenated or in general when any operation with invalid escaped string is performed.

Definition at line 33 of file KDbEscapedString.h.

Member Function Documentation

◆ invalid()

static KDbEscapedString KDbEscapedString::invalid ( )
inlinestatic
Returns
invalid escaped string.

Definition at line 59 of file KDbEscapedString.h.

◆ isValid()

bool KDbEscapedString::isValid ( ) const
inline
Returns
true if the string is valid. Valid string means that the escaping process has finished successfully. It does not mean that the statement itself parses or can be executed without errors.

Definition at line 64 of file KDbEscapedString.h.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Fri Aug 12 2022 04:06:27 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.