#include <qbytearray.h>
Definition at line 135 of file qbytearray.h.
Public Types | |
typedef char * | iterator |
typedef const char * | const_iterator |
typedef iterator | Iterator |
typedef const_iterator | ConstIterator |
typedef const char & | const_reference |
typedef char & | reference |
typedef char | value_type |
typedef Data * | DataPtr |
Public Member Functions | |
QByteArray () | |
QByteArray (const char *) | |
QByteArray (const char *, int size) | |
QByteArray (int size, char c) | |
QByteArray (int size, Qt::Initialization) | |
QByteArray (const QByteArray &) | |
~QByteArray () | |
QByteArray & | operator= (const QByteArray &) |
QByteArray & | operator= (const char *str) |
void | swap (QByteArray &other) |
int | size () const |
bool | isEmpty () const |
void | resize (int size) |
QByteArray & | fill (char c, int size=-1) |
int | capacity () const |
void | reserve (int size) |
void | squeeze () |
operator const char * () const | |
operator const void * () const | |
char * | data () |
const char * | data () const |
const char * | constData () const |
void | detach () |
bool | isDetached () const |
bool | isSharedWith (const QByteArray &other) const |
void | clear () |
char | at (int i) const |
char | operator[] (int i) const |
char | operator[] (uint i) const |
QByteRef | operator[] (int i) |
QByteRef | operator[] (uint i) |
int | indexOf (char c, int from=0) const |
int | indexOf (const char *c, int from=0) const |
int | indexOf (const QByteArray &a, int from=0) const |
int | lastIndexOf (char c, int from=-1) const |
int | lastIndexOf (const char *c, int from=-1) const |
int | lastIndexOf (const QByteArray &a, int from=-1) const |
QBool | contains (char c) const |
QBool | contains (const char *a) const |
QBool | contains (const QByteArray &a) const |
int | count (char c) const |
int | count (const char *a) const |
int | count (const QByteArray &a) const |
QByteArray | left (int len) const |
QByteArray | right (int len) const |
QByteArray | mid (int index, int len=-1) const |
bool | startsWith (const QByteArray &a) const |
bool | startsWith (char c) const |
bool | startsWith (const char *c) const |
bool | endsWith (const QByteArray &a) const |
bool | endsWith (char c) const |
bool | endsWith (const char *c) const |
void | truncate (int pos) |
void | chop (int n) |
QByteArray | toLower () const |
QByteArray | toUpper () const |
QByteArray | trimmed () const |
QByteArray | simplified () const |
QByteArray | leftJustified (int width, char fill= ' ', bool truncate=false) const |
QByteArray | rightJustified (int width, char fill= ' ', bool truncate=false) const |
QByteArray & | prepend (char c) |
QByteArray & | prepend (const char *s) |
QByteArray & | prepend (const char *s, int len) |
QByteArray & | prepend (const QByteArray &a) |
QByteArray & | append (char c) |
QByteArray & | append (const char *s) |
QByteArray & | append (const char *s, int len) |
QByteArray & | append (const QByteArray &a) |
QByteArray & | insert (int i, char c) |
QByteArray & | insert (int i, const char *s) |
QByteArray & | insert (int i, const char *s, int len) |
QByteArray & | insert (int i, const QByteArray &a) |
QByteArray & | remove (int index, int len) |
QByteArray & | replace (int index, int len, const char *s) |
QByteArray & | replace (int index, int len, const char *s, int alen) |
QByteArray & | replace (int index, int len, const QByteArray &s) |
QByteArray & | replace (char before, const char *after) |
QByteArray & | replace (char before, const QByteArray &after) |
QByteArray & | replace (const char *before, const char *after) |
QByteArray & | replace (const char *before, int bsize, const char *after, int asize) |
QByteArray & | replace (const QByteArray &before, const QByteArray &after) |
QByteArray & | replace (const QByteArray &before, const char *after) |
QByteArray & | replace (const char *before, const QByteArray &after) |
QByteArray & | replace (char before, char after) |
QByteArray & | operator+= (char c) |
QByteArray & | operator+= (const char *s) |
QByteArray & | operator+= (const QByteArray &a) |
QList< QByteArray > | split (char sep) const |
QByteArray | repeated (int times) const |
QT_ASCII_CAST_WARN QByteArray & | append (const QString &s) |
QT_ASCII_CAST_WARN QByteArray & | insert (int i, const QString &s) |
QT_ASCII_CAST_WARN QByteArray & | replace (const QString &before, const char *after) |
QT_ASCII_CAST_WARN QByteArray & | replace (char c, const QString &after) |
QT_ASCII_CAST_WARN QByteArray & | replace (const QString &before, const QByteArray &after) |
QT_ASCII_CAST_WARN QByteArray & | operator+= (const QString &s) |
QT_ASCII_CAST_WARN int | indexOf (const QString &s, int from=0) const |
QT_ASCII_CAST_WARN int | lastIndexOf (const QString &s, int from=-1) const |
QT_ASCII_CAST_WARN bool | operator== (const QString &s2) const |
QT_ASCII_CAST_WARN bool | operator!= (const QString &s2) const |
QT_ASCII_CAST_WARN bool | operator< (const QString &s2) const |
QT_ASCII_CAST_WARN bool | operator> (const QString &s2) const |
QT_ASCII_CAST_WARN bool | operator<= (const QString &s2) const |
QT_ASCII_CAST_WARN bool | operator>= (const QString &s2) const |
short | toShort (bool *ok=0, int base=10) const |
ushort | toUShort (bool *ok=0, int base=10) const |
int | toInt (bool *ok=0, int base=10) const |
uint | toUInt (bool *ok=0, int base=10) const |
long | toLong (bool *ok=0, int base=10) const |
ulong | toULong (bool *ok=0, int base=10) const |
qlonglong | toLongLong (bool *ok=0, int base=10) const |
qulonglong | toULongLong (bool *ok=0, int base=10) const |
float | toFloat (bool *ok=0) const |
double | toDouble (bool *ok=0) const |
QByteArray | toBase64 () const |
QByteArray | toHex () const |
QByteArray | toPercentEncoding (const QByteArray &exclude=QByteArray(), const QByteArray &include=QByteArray(), char percent= '%') const |
QByteArray & | setNum (short, int base=10) |
QByteArray & | setNum (ushort, int base=10) |
QByteArray & | setNum (int, int base=10) |
QByteArray & | setNum (uint, int base=10) |
QByteArray & | setNum (qlonglong, int base=10) |
QByteArray & | setNum (qulonglong, int base=10) |
QByteArray & | setNum (float, char f= 'g', int prec=6) |
QByteArray & | setNum (double, char f= 'g', int prec=6) |
QByteArray & | setRawData (const char *a, uint n) |
iterator | begin () |
const_iterator | begin () const |
const_iterator | constBegin () const |
iterator | end () |
const_iterator | end () const |
const_iterator | constEnd () const |
void | push_back (char c) |
void | push_back (const char *c) |
void | push_back (const QByteArray &a) |
void | push_front (char c) |
void | push_front (const char *c) |
void | push_front (const QByteArray &a) |
int | count () const |
int | length () const |
bool | isNull () const |
DataPtr & | data_ptr () |
Static Public Member Functions | |
static QByteArray | number (int, int base=10) |
static QByteArray | number (uint, int base=10) |
static QByteArray | number (qlonglong, int base=10) |
static QByteArray | number (qulonglong, int base=10) |
static QByteArray | number (double, char f= 'g', int prec=6) |
static QByteArray | fromRawData (const char *, int size) |
static QByteArray | fromBase64 (const QByteArray &base64) |
static QByteArray | fromHex (const QByteArray &hexEncoded) |
static QByteArray | fromPercentEncoding (const QByteArray &pctEncoded, char percent= '%') |
Friends | |
class | QByteRef |
class | QString |
Q_CORE_EXPORT QByteArray | qUncompress (const uchar *data, int nbytes) |
typedef char* iterator |
Definition at line 333 of file qbytearray.h.
typedef const char* const_iterator |
Definition at line 334 of file qbytearray.h.
Definition at line 335 of file qbytearray.h.
typedef const_iterator ConstIterator |
Definition at line 336 of file qbytearray.h.
typedef const char& const_reference |
Definition at line 345 of file qbytearray.h.
typedef char& reference |
Definition at line 346 of file qbytearray.h.
typedef char value_type |
Definition at line 347 of file qbytearray.h.
typedef Data* DataPtr |
Definition at line 396 of file qbytearray.h.
|
inline |
Definition at line 400 of file qbytearray.h.
QByteArray | ( | const char * | ) |
QByteArray | ( | const char * | , |
int | size | ||
) |
QByteArray | ( | int | size, |
char | c | ||
) |
QByteArray | ( | int | size, |
Qt::Initialization | |||
) |
|
inline |
Definition at line 439 of file qbytearray.h.
|
inline |
Definition at line 401 of file qbytearray.h.
QByteArray& operator= | ( | const QByteArray & | ) |
QByteArray& operator= | ( | const char * | str | ) |
|
inline |
Definition at line 164 of file qbytearray.h.
Definition at line 402 of file qbytearray.h.
|
inline |
Definition at line 421 of file qbytearray.h.
QByteArray& fill | ( | char | c, |
int | size = -1 |
||
) |
|
inline |
Definition at line 446 of file qbytearray.h.
Definition at line 449 of file qbytearray.h.
|
inline |
Definition at line 452 of file qbytearray.h.
|
inline |
Definition at line 424 of file qbytearray.h.
|
inline |
Definition at line 426 of file qbytearray.h.
|
inline |
Definition at line 429 of file qbytearray.h.
|
inline |
Definition at line 431 of file qbytearray.h.
|
inline |
|
inline |
Definition at line 435 of file qbytearray.h.
|
inline |
Definition at line 437 of file qbytearray.h.
|
inline |
Definition at line 185 of file qbytearray.h.
void clear | ( | ) |
|
inline |
Definition at line 413 of file qbytearray.h.
|
inline |
Definition at line 415 of file qbytearray.h.
|
inline |
Definition at line 417 of file qbytearray.h.
Definition at line 489 of file qbytearray.h.
|
inline |
Definition at line 491 of file qbytearray.h.
int indexOf | ( | const QByteArray & | a, |
int | from = 0 |
||
) | const |
int lastIndexOf | ( | const QByteArray & | a, |
int | from = -1 |
||
) | const |
|
inline |
Definition at line 525 of file qbytearray.h.
|
inline |
Definition at line 575 of file qbytearray.h.
|
inline |
Definition at line 523 of file qbytearray.h.
int count | ( | const QByteArray & | a | ) | const |
QByteArray left | ( | int | len | ) | const |
QByteArray right | ( | int | len | ) | const |
QByteArray mid | ( | int | index, |
int | len = -1 |
||
) | const |
bool startsWith | ( | const QByteArray & | a | ) | const |
bool startsWith | ( | char | c | ) | const |
bool startsWith | ( | const char * | c | ) | const |
bool endsWith | ( | const QByteArray & | a | ) | const |
bool endsWith | ( | char | c | ) | const |
bool endsWith | ( | const char * | c | ) | const |
QByteArray toLower | ( | ) | const |
QByteArray toUpper | ( | ) | const |
QByteArray trimmed | ( | ) | const |
QByteArray simplified | ( | ) | const |
QByteArray leftJustified | ( | int | width, |
char | fill = ' ' , |
||
bool | truncate = false |
||
) | const |
QByteArray rightJustified | ( | int | width, |
char | fill = ' ' , |
||
bool | truncate = false |
||
) | const |
QByteArray& prepend | ( | char | c | ) |
QByteArray& prepend | ( | const char * | s | ) |
QByteArray& prepend | ( | const char * | s, |
int | len | ||
) |
QByteArray& prepend | ( | const QByteArray & | a | ) |
QByteArray& append | ( | char | c | ) |
QByteArray& append | ( | const char * | s | ) |
QByteArray& append | ( | const char * | s, |
int | len | ||
) |
QByteArray& append | ( | const QByteArray & | a | ) |
QByteArray& insert | ( | int | i, |
char | c | ||
) |
QByteArray& insert | ( | int | i, |
const char * | s | ||
) |
QByteArray& insert | ( | int | i, |
const char * | s, | ||
int | len | ||
) |
QByteArray& insert | ( | int | i, |
const QByteArray & | a | ||
) |
QByteArray& remove | ( | int | index, |
int | len | ||
) |
QByteArray& replace | ( | int | index, |
int | len, | ||
const char * | s | ||
) |
QByteArray& replace | ( | int | index, |
int | len, | ||
const char * | s, | ||
int | alen | ||
) |
QByteArray& replace | ( | int | index, |
int | len, | ||
const QByteArray & | s | ||
) |
|
inline |
Definition at line 577 of file qbytearray.h.
QByteArray& replace | ( | char | before, |
const QByteArray & | after | ||
) |
|
inline |
Definition at line 581 of file qbytearray.h.
QByteArray& replace | ( | const char * | before, |
int | bsize, | ||
const char * | after, | ||
int | asize | ||
) |
QByteArray& replace | ( | const QByteArray & | before, |
const QByteArray & | after | ||
) |
|
inline |
Definition at line 579 of file qbytearray.h.
QByteArray& replace | ( | const char * | before, |
const QByteArray & | after | ||
) |
QByteArray& replace | ( | char | before, |
char | after | ||
) |
|
inline |
Definition at line 505 of file qbytearray.h.
|
inline |
Definition at line 507 of file qbytearray.h.
|
inline |
Definition at line 509 of file qbytearray.h.
QList<QByteArray> split | ( | char | sep | ) | const |
QByteArray repeated | ( | int | times | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 981 of file qstring.h.
|
inline |
Definition at line 983 of file qstring.h.
|
inline |
|
inline |
|
inline |
|
inline |
short toShort | ( | bool * | ok = 0 , |
int | base = 10 |
||
) | const |
ushort toUShort | ( | bool * | ok = 0 , |
int | base = 10 |
||
) | const |
uint toUInt | ( | bool * | ok = 0 , |
int | base = 10 |
||
) | const |
long toLong | ( | bool * | ok = 0 , |
int | base = 10 |
||
) | const |
ulong toULong | ( | bool * | ok = 0 , |
int | base = 10 |
||
) | const |
qulonglong toULongLong | ( | bool * | ok = 0 , |
int | base = 10 |
||
) | const |
float toFloat | ( | bool * | ok = 0 | ) | const |
double toDouble | ( | bool * | ok = 0 | ) | const |
QByteArray toBase64 | ( | ) | const |
QByteArray toHex | ( | ) | const |
QByteArray toPercentEncoding | ( | const QByteArray & | exclude = QByteArray() , |
const QByteArray & | include = QByteArray() , |
||
char | percent = '%' |
||
) | const |
|
inline |
Definition at line 584 of file qbytearray.h.
|
inline |
Definition at line 586 of file qbytearray.h.
|
inline |
Definition at line 588 of file qbytearray.h.
|
inline |
Definition at line 590 of file qbytearray.h.
QByteArray& setNum | ( | qlonglong | , |
int | base = 10 |
||
) |
QByteArray& setNum | ( | qulonglong | , |
int | base = 10 |
||
) |
|
inline |
Definition at line 592 of file qbytearray.h.
QByteArray& setNum | ( | double | , |
char | f = 'g' , |
||
int | prec = 6 |
||
) |
QByteArray& setRawData | ( | const char * | a, |
uint | n | ||
) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
inline |
Definition at line 493 of file qbytearray.h.
|
inline |
Definition at line 495 of file qbytearray.h.
|
inline |
Definition at line 497 of file qbytearray.h.
|
inline |
Definition at line 499 of file qbytearray.h.
|
inline |
Definition at line 501 of file qbytearray.h.
|
inline |
Definition at line 503 of file qbytearray.h.
|
inline |
Definition at line 511 of file qbytearray.h.
|
inline |
Definition at line 513 of file qbytearray.h.
|
inline |
Definition at line 515 of file qbytearray.h.
|
inline |
Definition at line 517 of file qbytearray.h.
|
inline |
Definition at line 519 of file qbytearray.h.
|
inline |
Definition at line 521 of file qbytearray.h.
Definition at line 355 of file qbytearray.h.
Definition at line 356 of file qbytearray.h.
bool isNull | ( | ) | const |
|
inline |
Definition at line 397 of file qbytearray.h.
|
friend |
Definition at line 392 of file qbytearray.h.
|
friend |
Definition at line 393 of file qbytearray.h.
|
friend |