QByteArray
#include <QtCore/QByteArray>
More information will be added here shortly. For now, you'll find more extensive information about this class in the Qt reference for QByteArray
Overview
Classes
Public Types Index
const char * | const_iterator |
const char & | const_reference |
const_iterator | ConstIterator |
Data * | DataPtr |
char * | iterator |
iterator | Iterator |
char & | reference |
char | value_type |
Public Functions Index
QByteArray () | |
QByteArray (const char *) | |
QByteArray (const char *, int size) | |
QByteArray (int size, char c) | |
QByteArray (int size, Qt::Initialization) | |
QByteArray (const QByteArray &) | |
~QByteArray () | |
QByteArray & | append (char c) |
QByteArray & | append (const char *s) |
QByteArray & | append (const char *s, int len) |
QByteArray & | append (const QByteArray &a) |
QT_ASCII_CAST_WARN QByteArray & | append (const QString &s) |
char | at (int i) const |
iterator | begin () |
const_iterator | begin () const |
int | capacity () const |
void | chop (int n) |
void | clear () |
const_iterator | constBegin () const |
const char * | constData () const |
const_iterator | constEnd () 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 |
int | count () const |
char * | data () |
const char * | data () const |
DataPtr & | data_ptr () |
void | detach () |
iterator | end () |
const_iterator | end () const |
bool | endsWith (const QByteArray &a) const |
bool | endsWith (char c) const |
bool | endsWith (const char *c) const |
QByteArray & | fill (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 QByteArray &a, int from=0) const |
QT_ASCII_CAST_WARN int | indexOf (const QString &s, int from=0) const |
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) |
QT_ASCII_CAST_WARN QByteArray & | insert (int i, const QString &s) |
bool | isDetached () const |
bool | isEmpty () const |
bool | isNull () const |
bool | isSharedWith (const QByteArray &other) 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 |
QT_ASCII_CAST_WARN int | lastIndexOf (const QString &s, int from=-1) const |
QByteArray | left (int len) const |
QByteArray | leftJustified (int width, char fill= ' ', bool truncate=false) const |
int | length () const |
QByteArray | mid (int index, int len=-1) const |
operator const char * () const | |
operator const void * () const | |
QT_ASCII_CAST_WARN bool | operator!= (const QString &s2) const |
QByteArray & | operator+= (char c) |
QByteArray & | operator+= (const char *s) |
QByteArray & | operator+= (const QByteArray &a) |
QT_ASCII_CAST_WARN QByteArray & | operator+= (const QString &s) |
QT_ASCII_CAST_WARN bool | operator< (const QString &s2) const |
QT_ASCII_CAST_WARN bool | operator<= (const QString &s2) const |
QByteArray & | operator= (const QByteArray &) |
QByteArray & | operator= (const char *str) |
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 |
char | operator[] (int i) const |
char | operator[] (uint i) const |
QByteRef | operator[] (int i) |
QByteRef | operator[] (uint i) |
QByteArray & | prepend (char c) |
QByteArray & | prepend (const char *s) |
QByteArray & | prepend (const char *s, int len) |
QByteArray & | prepend (const QByteArray &a) |
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) |
QByteArray & | remove (int index, int len) |
QByteArray | repeated (int times) const |
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) |
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) |
void | reserve (int size) |
void | resize (int size) |
QByteArray | right (int len) const |
QByteArray | rightJustified (int width, char fill= ' ', bool truncate=false) 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) |
QByteArray | simplified () const |
int | size () const |
QList< QByteArray > | split (char sep) const |
void | squeeze () |
bool | startsWith (const QByteArray &a) const |
bool | startsWith (char c) const |
bool | startsWith (const char *c) const |
void | swap (QByteArray &other) |
QByteArray | toBase64 () const |
double | toDouble (bool *ok=0) const |
float | toFloat (bool *ok=0) const |
QByteArray | toHex () const |
int | toInt (bool *ok=0, int base=10) const |
long | toLong (bool *ok=0, int base=10) const |
qlonglong | toLongLong (bool *ok=0, int base=10) const |
QByteArray | toLower () const |
QByteArray | toPercentEncoding (const QByteArray &exclude=QByteArray(), const QByteArray &include=QByteArray(), char percent= '%') const |
short | toShort (bool *ok=0, int base=10) const |
uint | toUInt (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 |
QByteArray | toUpper () const |
ushort | toUShort (bool *ok=0, int base=10) const |
QByteArray | trimmed () const |
void | truncate (int pos) |
Static Public Functions Index
QByteArray | fromBase64 (const QByteArray &base64) |
QByteArray | fromHex (const QByteArray &hexEncoded) |
QByteArray | fromPercentEncoding (const QByteArray &pctEncoded, char percent= '%') |
QByteArray | fromRawData (const char *, int size) |
QByteArray | number (int, int base=10) |
QByteArray | number (uint, int base=10) |
QByteArray | number (qlonglong, int base=10) |
QByteArray | number (qulonglong, int base=10) |
QByteArray | number (double, char f= 'g', int prec=6) |
Public Types
typedef const char *
typedef const char &
typedef const_iterator
typedef Data *
typedef char *
typedef iterator
typedef char &
typedef char
Public Functions
Destructor.
QT_ASCII_CAST_WARN QByteArray &
char
iterator
const_iterator
int
void
void
const_iterator
const char *
const_iterator
QBool
QBool
QBool
int
int
int
int
char *
const char *
DataPtr &
void
iterator
const_iterator
bool
bool
bool
int
int
int
QT_ASCII_CAST_WARN int
QT_ASCII_CAST_WARN QByteArray &
bool
bool
bool
int
int
int
QT_ASCII_CAST_WARN int
int
QT_ASCII_CAST_WARN bool
QT_ASCII_CAST_WARN QByteArray &
QT_ASCII_CAST_WARN bool
QT_ASCII_CAST_WARN bool
QT_ASCII_CAST_WARN bool
QT_ASCII_CAST_WARN bool
QT_ASCII_CAST_WARN bool
char
char
void
void
void
void
void
void
QT_ASCII_CAST_WARN QByteArray &
QT_ASCII_CAST_WARN QByteArray &
QT_ASCII_CAST_WARN QByteArray &
void
void
int
QList< QByteArray >
void
bool
bool
bool
void
double
float
int
long
qlonglong
short
uint
ulong
qulonglong
ushort
void
Static Public Functions
© 2013 Digia Plc and/or its subsidiaries. Documentation contributions included herein are the copyrights of their respective owners.
The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.
Documentation sources may be obtained from www.qt-project.org.
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide. All other trademarks are property of their respective owners. Privacy Policy