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

#include <qstringbuilder.h>

Inheritance diagram for QConcatenable< QString >:
QAbstractConcatenable

Public Types

enum  { ExactSize = true }
 
typedef QString ConvertTo
 
typedef QString type
 

Static Public Functions

static void appendTo (const QString &a, QChar *&out)
 
static QT_ASCII_CAST_WARN void appendTo (const QString &a, char *&out)
 
static int size (const QString &a)
 

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< QString >

Definition at line 268 of file qstringbuilder.h.

Typedefs

◆ ConvertTo

Definition at line 271 of file qstringbuilder.h.

◆ type

Definition at line 270 of file qstringbuilder.h.

Enumerations

◆ anonymous enum

anonymous enum
Enumerator
ExactSize 

Definition at line 272 of file qstringbuilder.h.

Functions

◆ appendTo() [1/2]

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

Definition at line 274 of file qstringbuilder.h.

275  {
276  const int n = a.size();
277  memcpy(out, reinterpret_cast<const char*>(a.constData()), sizeof(QChar) * n);
278  out += n;
279  }
The QChar class provides a 16-bit Unicode character.
Definition: qchar.h:72
int size() const
Returns the number of characters in this string.
Definition: qstring.h:102
const QChar * constData() const
Returns a pointer to the data stored in the QString.
Definition: qstring.h:712

◆ appendTo() [2/2]

static QT_ASCII_CAST_WARN void QConcatenable< QString >::appendTo ( const QString a,
char *&  out 
)
inlinestatic

Definition at line 281 of file qstringbuilder.h.

282  { convertToAscii(a.constData(), a.length(), out); }
int length() const
Returns the number of characters in this string.
Definition: qstring.h:696
static void convertToAscii(const QChar *a, int len, char *&out)
const QChar * constData() const
Returns a pointer to the data stored in the QString.
Definition: qstring.h:712

◆ size()

static int QConcatenable< QString >::size ( const QString a)
inlinestatic

Definition at line 273 of file qstringbuilder.h.

273 { return a.size(); }
int size() const
Returns the number of characters in this string.
Definition: qstring.h:102

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