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

#include <qstringbuilder.h>

Public Types

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

Static Public Functions

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

Detailed Description

template<>
struct QConcatenable< QLatin1Literal >

Definition at line 250 of file qstringbuilder.h.

Typedefs

◆ ConvertTo

Definition at line 253 of file qstringbuilder.h.

◆ type

Definition at line 252 of file qstringbuilder.h.

Enumerations

◆ anonymous enum

anonymous enum
Enumerator
ExactSize 

Definition at line 254 of file qstringbuilder.h.

Functions

◆ appendTo() [1/2]

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

Definition at line 256 of file qstringbuilder.h.

257  {
258  for (const char *s = a.data(); *s; )
259  *out++ = QLatin1Char(*s++);
260  }
const char * data() const
Returns a pointer to the first character of the string literal.
The QLatin1Char class provides an 8-bit ASCII/Latin-1 character.
Definition: qchar.h:55

◆ appendTo() [2/2]

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

Definition at line 261 of file qstringbuilder.h.

262  {
263  for (const char *s = a.data(); *s; )
264  *out++ = *s++;
265  }
const char * data() const
Returns a pointer to the first character of the string literal.

◆ size()

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

Definition at line 255 of file qstringbuilder.h.

255 { return a.size(); }
int size() const
Returns the number of characters in the literal excluding the trailing NULL char. ...

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