Qt 4.8
Public Types | Static Public Functions | List of all members
QConcatenable< QByteArray > Struct Template Reference

#include <qstringbuilder.h>

Inheritance diagram for QConcatenable< QByteArray >:
QAbstractConcatenable

Public Types

enum  { ExactSize = false }
 
typedef QByteArray ConvertTo
 
typedef QByteArray type
 

Static Public Functions

static void appendTo (const QByteArray &ba, QChar *&out)
 
static void appendTo (const QByteArray &ba, char *&out)
 
static int size (const QByteArray &ba)
 

Additional Inherited Members

- Static Private Functions inherited from QAbstractConcatenable
static void convertFromAscii (const char *a, int len, QChar *&out)
 
static void convertFromAscii (char a, QChar *&out)
 
static void convertToAscii (const QChar *a, int len, char *&out)
 
static void convertToAscii (QChar a, char *&out)
 
static void convertToLatin1 (QChar a, char *&out)
 

Detailed Description

template<>
struct QConcatenable< QByteArray >

Definition at line 362 of file qstringbuilder.h.

Typedefs

◆ ConvertTo

Definition at line 365 of file qstringbuilder.h.

◆ type

Definition at line 364 of file qstringbuilder.h.

Enumerations

◆ anonymous enum

anonymous enum
Enumerator
ExactSize 

Definition at line 366 of file qstringbuilder.h.

Functions

◆ appendTo() [1/2]

static void QConcatenable< QByteArray >::appendTo ( const QByteArray ba,
QChar *&  out 
)
inlinestatic

Definition at line 369 of file qstringbuilder.h.

370  {
371  // adding 1 because convertFromAscii expects the size including the null-termination
373  }
static void convertFromAscii(const char *a, int len, QChar *&out)
const char * constData() const
Returns a pointer to the data stored in the byte array.
Definition: qbytearray.h:433
int size() const
Returns the number of bytes in this byte array.
Definition: qbytearray.h:402

◆ appendTo() [2/2]

static void QConcatenable< QByteArray >::appendTo ( const QByteArray ba,
char *&  out 
)
inlinestatic

Definition at line 375 of file qstringbuilder.h.

376  {
377  const char *a = ba.constData();
378  const char * const end = ba.end();
379  while (a != end)
380  *out++ = *a++;
381  }
long ASN1_INTEGER_get ASN1_INTEGER * a
const char * constData() const
Returns a pointer to the data stored in the byte array.
Definition: qbytearray.h:433
static const KeyPair *const end
iterator end()
Definition: qbytearray.h:499

◆ size()

static int QConcatenable< QByteArray >::size ( const QByteArray ba)
inlinestatic

Definition at line 367 of file qstringbuilder.h.

367 { return ba.size(); }
int size() const
Returns the number of bytes in this byte array.
Definition: qbytearray.h:402

The documentation for this struct was generated from the following file: