List of all members | Public Member Functions
QByteArrayProto Class Reference

#include <qbytearrayproto.h>

Inheritance diagram for QByteArrayProto:
QObject QScriptable

Public Member Functions

 QByteArrayProto (QObject *parent)
 
virtual ~QByteArrayProto ()
 
Q_INVOKABLE QByteArray & append (char ch)
 
Q_INVOKABLE QByteArray & append (const char *str)
 
Q_INVOKABLE QByteArray & append (const char *str, int len)
 
Q_INVOKABLE QByteArray & append (const QByteArray &ba)
 
Q_INVOKABLE QByteArray & append (const QString &str)
 
Q_INVOKABLE char at (int i) const
 
Q_INVOKABLE int capacity () const
 
Q_INVOKABLE void chop (int n)
 
Q_INVOKABLE void clear ()
 
const Q_INVOKABLE char * constData () const
 
Q_INVOKABLE bool contains (char ch) const
 
Q_INVOKABLE bool contains (const char *str) const
 
Q_INVOKABLE bool contains (const QByteArray &ba) const
 
Q_INVOKABLE int count () const
 
Q_INVOKABLE int count (char ch) const
 
Q_INVOKABLE int count (const char *str) const
 
Q_INVOKABLE int count (const QByteArray &ba) const
 
Q_INVOKABLE char * data ()
 
const Q_INVOKABLE char * data () const
 
Q_INVOKABLE bool endsWith (char ch) const
 
Q_INVOKABLE bool endsWith (const char *str) const
 
Q_INVOKABLE bool endsWith (const QByteArray &ba) const
 
Q_INVOKABLE QByteArray & fill (char ch, int size=-1)
 
Q_INVOKABLE int indexOf (char ch, int from=0) const
 
Q_INVOKABLE int indexOf (const char *str, int from=0) const
 
Q_INVOKABLE int indexOf (const QByteArray &ba, int from=0) const
 
Q_INVOKABLE int indexOf (const QString &str, int from=0) const
 
Q_INVOKABLE QByteArray & insert (int i, char ch)
 
Q_INVOKABLE QByteArray & insert (int i, const char *str)
 
Q_INVOKABLE QByteArray & insert (int i, const QByteArray &ba)
 
Q_INVOKABLE QByteArray & insert (int i, const QString &str)
 
Q_INVOKABLE bool isEmpty () const
 
Q_INVOKABLE bool isNull () const
 
Q_INVOKABLE int lastIndexOf (char ch, int from=-1) const
 
Q_INVOKABLE int lastIndexOf (const char *str, int from=-1) const
 
Q_INVOKABLE int lastIndexOf (const QByteArray &ba, int from=-1) const
 
Q_INVOKABLE int lastIndexOf (const QString &str, int from=-1) const
 
Q_INVOKABLE QByteArray left (int len) const
 
Q_INVOKABLE QByteArray leftJustified (int width, char fill=' ', bool truncate=false) const
 
Q_INVOKABLE int length () const
 
Q_INVOKABLE QByteArray mid (int pos, int len=-1) const
 
Q_INVOKABLE QByteArray & prepend (char ch)
 
Q_INVOKABLE QByteArray & prepend (const char *str)
 
Q_INVOKABLE QByteArray & prepend (const QByteArray &ba)
 
Q_INVOKABLE void push_back (char ch)
 
Q_INVOKABLE void push_back (const char *str)
 
Q_INVOKABLE void push_back (const QByteArray &other)
 
Q_INVOKABLE void push_front (char ch)
 
Q_INVOKABLE void push_front (const char *str)
 
Q_INVOKABLE void push_front (const QByteArray &other)
 
Q_INVOKABLE int readInt16BE (int offset=0, bool noAssert=false) const
 
Q_INVOKABLE int readInt16LE (int offset=0, bool noAssert=false) const
 
Q_INVOKABLE int readInt32BE (int offset=0, bool noAssert=false) const
 
Q_INVOKABLE int readInt32LE (int offset=0, bool noAssert=false) const
 
Q_INVOKABLE uint readUInt16BE (int offset=0, bool noAssert=false) const
 
Q_INVOKABLE uint readUInt16LE (int offset=0, bool noAssert=false) const
 
Q_INVOKABLE uint readUInt32BE (int offset=0, bool noAssert=false) const
 
Q_INVOKABLE uint readUInt32LE (int offset=0, bool noAssert=false) const
 
Q_INVOKABLE QByteArray & remove (int pos, int len)
 
Q_INVOKABLE QByteArray repeated (int times) const
 
Q_INVOKABLE QByteArray & replace (char before, char after)
 
Q_INVOKABLE QByteArray & replace (char before, const char *after)
 
Q_INVOKABLE QByteArray & replace (char before, const QByteArray &after)
 
Q_INVOKABLE QByteArray & replace (char before, const QString &after)
 
Q_INVOKABLE QByteArray & replace (const char *before, const char *after)
 
Q_INVOKABLE QByteArray & replace (const char *before, const QByteArray &after)
 
Q_INVOKABLE QByteArray & replace (const char *before, int bsize, const char *after, int asize)
 
Q_INVOKABLE QByteArray & replace (const QByteArray &before, const char *after)
 
Q_INVOKABLE QByteArray & replace (const QByteArray &before, const QByteArray &after)
 
Q_INVOKABLE QByteArray & replace (const QString &before, const char *after)
 
Q_INVOKABLE QByteArray & replace (const QString &before, const QByteArray &after)
 
Q_INVOKABLE QByteArray & replace (int pos, int len, const char *after)
 
Q_INVOKABLE QByteArray & replace (int pos, int len, const QByteArray &after)
 
Q_INVOKABLE void reserve (int size)
 
Q_INVOKABLE void resize (int size)
 
Q_INVOKABLE QByteArray right (int len) const
 
Q_INVOKABLE QByteArray rightJustified (int width, char fill=' ', bool truncate=false) const
 
Q_INVOKABLE QByteArray & setNum (double n, char f='g', int prec=6)
 
Q_INVOKABLE QByteArray & setNum (float n, char f='g', int prec=6)
 
Q_INVOKABLE QByteArray & setNum (int n, int base=10)
 
Q_INVOKABLE QByteArray & setNum (qlonglong n, int base=10)
 
Q_INVOKABLE QByteArray & setNum (qulonglong n, int base=10)
 
Q_INVOKABLE QByteArray & setNum (short n, int base=10)
 
Q_INVOKABLE QByteArray & setNum (uint n, int base=10)
 
Q_INVOKABLE QByteArray & setNum (ushort n, int base=10)
 
Q_INVOKABLE QByteArray simplified () const
 
Q_INVOKABLE int size () const
 
Q_INVOKABLE QByteArray slice (int start=0, int end=0) const
 
Q_INVOKABLE QList< QByteArray > split (char sep) const
 
Q_INVOKABLE void squeeze ()
 
Q_INVOKABLE bool startsWith (char ch) const
 
Q_INVOKABLE bool startsWith (const char *str) const
 
Q_INVOKABLE bool startsWith (const QByteArray &ba) const
 
Q_INVOKABLE QByteArray toBase64 () const
 
Q_INVOKABLE double toDouble (bool *ok=0) const
 
Q_INVOKABLE float toFloat (bool *ok=0) const
 
Q_INVOKABLE QByteArray toHex () const
 
Q_INVOKABLE int toInt (bool *ok=0, int base=10) const
 
Q_INVOKABLE QString toLatin1 () const
 
Q_INVOKABLE QString toLocal8Bit () const
 
Q_INVOKABLE long toLong (bool *ok=0, int base=10) const
 
Q_INVOKABLE qlonglong toLongLong (bool *ok=0, int base=10) const
 
Q_INVOKABLE QByteArray toLower () const
 
Q_INVOKABLE QByteArray toPercentEncoding (const QByteArray &exclude=QByteArray(), const QByteArray &include=QByteArray(), char percent='%') const
 
Q_INVOKABLE short toShort (bool *ok=0, int base=10) const
 
Q_INVOKABLE QString toString () const
 
Q_INVOKABLE uint toUInt (bool *ok=0, int base=10) const
 
Q_INVOKABLE ulong toULong (bool *ok=0, int base=10) const
 
Q_INVOKABLE qulonglong toULongLong (bool *ok=0, int base=10) const
 
Q_INVOKABLE QByteArray toUpper () const
 
Q_INVOKABLE ushort toUShort (bool *ok=0, int base=10) const
 
Q_INVOKABLE QString toUtf8 () const
 
Q_INVOKABLE QByteArray trimmed () const
 
Q_INVOKABLE void truncate (int pos)
 

Constructor & Destructor Documentation

◆ QByteArrayProto()

QByteArrayProto::QByteArrayProto ( QObject parent)

◆ ~QByteArrayProto()

QByteArrayProto::~QByteArrayProto ( )
virtual

Member Function Documentation

◆ append() [1/5]

QByteArray & QByteArrayProto::append ( char  ch)

◆ append() [2/5]

QByteArray & QByteArrayProto::append ( const char *  str)

◆ append() [3/5]

QByteArray & QByteArrayProto::append ( const char *  str,
int  len 
)

◆ append() [4/5]

QByteArray & QByteArrayProto::append ( const QByteArray &  ba)

◆ append() [5/5]

QByteArray & QByteArrayProto::append ( const QString &  str)

◆ at()

char QByteArrayProto::at ( int  i) const

◆ capacity()

int QByteArrayProto::capacity ( ) const

◆ chop()

void QByteArrayProto::chop ( int  n)

◆ clear()

void QByteArrayProto::clear ( )

◆ constData()

const char * QByteArrayProto::constData ( ) const

◆ contains() [1/3]

bool QByteArrayProto::contains ( char  ch) const

◆ contains() [2/3]

bool QByteArrayProto::contains ( const char *  str) const

◆ contains() [3/3]

bool QByteArrayProto::contains ( const QByteArray &  ba) const

◆ count() [1/4]

int QByteArrayProto::count ( ) const

◆ count() [2/4]

int QByteArrayProto::count ( char  ch) const

◆ count() [3/4]

int QByteArrayProto::count ( const char *  str) const

◆ count() [4/4]

int QByteArrayProto::count ( const QByteArray &  ba) const

◆ data() [1/2]

const char * QByteArrayProto::data ( )

◆ data() [2/2]

const Q_INVOKABLE char* QByteArrayProto::data ( ) const

◆ endsWith() [1/3]

bool QByteArrayProto::endsWith ( char  ch) const

◆ endsWith() [2/3]

bool QByteArrayProto::endsWith ( const char *  str) const

◆ endsWith() [3/3]

bool QByteArrayProto::endsWith ( const QByteArray &  ba) const

◆ fill()

QByteArray & QByteArrayProto::fill ( char  ch,
int  size = -1 
)

◆ indexOf() [1/4]

int QByteArrayProto::indexOf ( char  ch,
int  from = 0 
) const

◆ indexOf() [2/4]

int QByteArrayProto::indexOf ( const char *  str,
int  from = 0 
) const

◆ indexOf() [3/4]

int QByteArrayProto::indexOf ( const QByteArray &  ba,
int  from = 0 
) const

◆ indexOf() [4/4]

int QByteArrayProto::indexOf ( const QString &  str,
int  from = 0 
) const

◆ insert() [1/4]

QByteArray & QByteArrayProto::insert ( int  i,
char  ch 
)

◆ insert() [2/4]

QByteArray & QByteArrayProto::insert ( int  i,
const char *  str 
)

◆ insert() [3/4]

QByteArray & QByteArrayProto::insert ( int  i,
const QByteArray &  ba 
)

◆ insert() [4/4]

QByteArray & QByteArrayProto::insert ( int  i,
const QString &  str 
)

◆ isEmpty()

bool QByteArrayProto::isEmpty ( ) const

◆ isNull()

bool QByteArrayProto::isNull ( ) const

◆ lastIndexOf() [1/4]

int QByteArrayProto::lastIndexOf ( char  ch,
int  from = -1 
) const

◆ lastIndexOf() [2/4]

int QByteArrayProto::lastIndexOf ( const char *  str,
int  from = -1 
) const

◆ lastIndexOf() [3/4]

int QByteArrayProto::lastIndexOf ( const QByteArray &  ba,
int  from = -1 
) const

◆ lastIndexOf() [4/4]

int QByteArrayProto::lastIndexOf ( const QString &  str,
int  from = -1 
) const

◆ left()

QByteArray QByteArrayProto::left ( int  len) const

◆ leftJustified()

QByteArray QByteArrayProto::leftJustified ( int  width,
char  fill = ' ',
bool  truncate = false 
) const

◆ length()

int QByteArrayProto::length ( ) const

◆ mid()

QByteArray QByteArrayProto::mid ( int  pos,
int  len = -1 
) const

◆ prepend() [1/3]

QByteArray & QByteArrayProto::prepend ( char  ch)

◆ prepend() [2/3]

QByteArray & QByteArrayProto::prepend ( const char *  str)

◆ prepend() [3/3]

QByteArray & QByteArrayProto::prepend ( const QByteArray &  ba)

◆ push_back() [1/3]

void QByteArrayProto::push_back ( char  ch)

◆ push_back() [2/3]

void QByteArrayProto::push_back ( const char *  str)

◆ push_back() [3/3]

void QByteArrayProto::push_back ( const QByteArray &  other)

◆ push_front() [1/3]

void QByteArrayProto::push_front ( char  ch)

◆ push_front() [2/3]

void QByteArrayProto::push_front ( const char *  str)

◆ push_front() [3/3]

void QByteArrayProto::push_front ( const QByteArray &  other)

◆ readInt16BE()

int QByteArrayProto::readInt16BE ( int  offset = 0,
bool  noAssert = false 
) const

◆ readInt16LE()

int QByteArrayProto::readInt16LE ( int  offset = 0,
bool  noAssert = false 
) const

◆ readInt32BE()

int QByteArrayProto::readInt32BE ( int  offset = 0,
bool  noAssert = false 
) const

◆ readInt32LE()

int QByteArrayProto::readInt32LE ( int  offset = 0,
bool  noAssert = false 
) const

◆ readUInt16BE()

uint QByteArrayProto::readUInt16BE ( int  offset = 0,
bool  noAssert = false 
) const

◆ readUInt16LE()

uint QByteArrayProto::readUInt16LE ( int  offset = 0,
bool  noAssert = false 
) const

◆ readUInt32BE()

uint QByteArrayProto::readUInt32BE ( int  offset = 0,
bool  noAssert = false 
) const

◆ readUInt32LE()

uint QByteArrayProto::readUInt32LE ( int  offset = 0,
bool  noAssert = false 
) const

◆ remove()

QByteArray & QByteArrayProto::remove ( int  pos,
int  len 
)

◆ repeated()

QByteArray QByteArrayProto::repeated ( int  times) const

◆ replace() [1/13]

QByteArray & QByteArrayProto::replace ( char  before,
char  after 
)

◆ replace() [2/13]

QByteArray & QByteArrayProto::replace ( char  before,
const char *  after 
)

◆ replace() [3/13]

QByteArray & QByteArrayProto::replace ( char  before,
const QByteArray &  after 
)

◆ replace() [4/13]

QByteArray & QByteArrayProto::replace ( char  before,
const QString &  after 
)

◆ replace() [5/13]

QByteArray & QByteArrayProto::replace ( const char *  before,
const char *  after 
)

◆ replace() [6/13]

QByteArray & QByteArrayProto::replace ( const char *  before,
const QByteArray &  after 
)

◆ replace() [7/13]

QByteArray & QByteArrayProto::replace ( const char *  before,
int  bsize,
const char *  after,
int  asize 
)

◆ replace() [8/13]

QByteArray & QByteArrayProto::replace ( const QByteArray &  before,
const char *  after 
)

◆ replace() [9/13]

QByteArray & QByteArrayProto::replace ( const QByteArray &  before,
const QByteArray &  after 
)

◆ replace() [10/13]

QByteArray & QByteArrayProto::replace ( const QString &  before,
const char *  after 
)

◆ replace() [11/13]

QByteArray & QByteArrayProto::replace ( const QString &  before,
const QByteArray &  after 
)

◆ replace() [12/13]

QByteArray & QByteArrayProto::replace ( int  pos,
int  len,
const char *  after 
)

◆ replace() [13/13]

QByteArray & QByteArrayProto::replace ( int  pos,
int  len,
const QByteArray &  after 
)

◆ reserve()

void QByteArrayProto::reserve ( int  size)

◆ resize()

void QByteArrayProto::resize ( int  size)

◆ right()

QByteArray QByteArrayProto::right ( int  len) const

◆ rightJustified()

QByteArray QByteArrayProto::rightJustified ( int  width,
char  fill = ' ',
bool  truncate = false 
) const

◆ setNum() [1/8]

QByteArray & QByteArrayProto::setNum ( double  n,
char  f = 'g',
int  prec = 6 
)

◆ setNum() [2/8]

QByteArray & QByteArrayProto::setNum ( float  n,
char  f = 'g',
int  prec = 6 
)

◆ setNum() [3/8]

QByteArray & QByteArrayProto::setNum ( int  n,
int  base = 10 
)

◆ setNum() [4/8]

QByteArray & QByteArrayProto::setNum ( qlonglong  n,
int  base = 10 
)

◆ setNum() [5/8]

QByteArray & QByteArrayProto::setNum ( qulonglong  n,
int  base = 10 
)

◆ setNum() [6/8]

QByteArray & QByteArrayProto::setNum ( short  n,
int  base = 10 
)

◆ setNum() [7/8]

QByteArray & QByteArrayProto::setNum ( uint  n,
int  base = 10 
)

◆ setNum() [8/8]

QByteArray & QByteArrayProto::setNum ( ushort  n,
int  base = 10 
)

◆ simplified()

QByteArray QByteArrayProto::simplified ( ) const

◆ size()

int QByteArrayProto::size ( ) const

◆ slice()

QByteArray QByteArrayProto::slice ( int  start = 0,
int  end = 0 
) const

◆ split()

QList< QByteArray > QByteArrayProto::split ( char  sep) const

◆ squeeze()

void QByteArrayProto::squeeze ( )

◆ startsWith() [1/3]

bool QByteArrayProto::startsWith ( char  ch) const

◆ startsWith() [2/3]

bool QByteArrayProto::startsWith ( const char *  str) const

◆ startsWith() [3/3]

bool QByteArrayProto::startsWith ( const QByteArray &  ba) const

◆ toBase64()

QByteArray QByteArrayProto::toBase64 ( ) const

◆ toDouble()

double QByteArrayProto::toDouble ( bool *  ok = 0) const

◆ toFloat()

float QByteArrayProto::toFloat ( bool *  ok = 0) const

◆ toHex()

QByteArray QByteArrayProto::toHex ( ) const

◆ toInt()

int QByteArrayProto::toInt ( bool *  ok = 0,
int  base = 10 
) const

◆ toLatin1()

QString QByteArrayProto::toLatin1 ( ) const

◆ toLocal8Bit()

QString QByteArrayProto::toLocal8Bit ( ) const

◆ toLong()

long QByteArrayProto::toLong ( bool *  ok = 0,
int  base = 10 
) const

◆ toLongLong()

qlonglong QByteArrayProto::toLongLong ( bool *  ok = 0,
int  base = 10 
) const

◆ toLower()

QByteArray QByteArrayProto::toLower ( ) const

◆ toPercentEncoding()

QByteArray QByteArrayProto::toPercentEncoding ( const QByteArray &  exclude = QByteArray(),
const QByteArray &  include = QByteArray(),
char  percent = '%' 
) const

◆ toShort()

short QByteArrayProto::toShort ( bool *  ok = 0,
int  base = 10 
) const

◆ toString()

QString QByteArrayProto::toString ( ) const

◆ toUInt()

uint QByteArrayProto::toUInt ( bool *  ok = 0,
int  base = 10 
) const

◆ toULong()

ulong QByteArrayProto::toULong ( bool *  ok = 0,
int  base = 10 
) const

◆ toULongLong()

qulonglong QByteArrayProto::toULongLong ( bool *  ok = 0,
int  base = 10 
) const

◆ toUpper()

QByteArray QByteArrayProto::toUpper ( ) const

◆ toUShort()

ushort QByteArrayProto::toUShort ( bool *  ok = 0,
int  base = 10 
) const

◆ toUtf8()

QString QByteArrayProto::toUtf8 ( ) const

◆ trimmed()

QByteArray QByteArrayProto::trimmed ( ) const

◆ truncate()

void QByteArrayProto::truncate ( int  pos)

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

Generated on Fri Apr 9 2021 xTuple ERP Programmer Reference, Version 6.0.0 doxygen 1.8.17