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

#include <qstringbuilder.h>

Public Types

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

Static Public Functions

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

Detailed Description

template<>
struct QConcatenable< QLatin1String >

Definition at line 232 of file qstringbuilder.h.

Typedefs

◆ ConvertTo

Definition at line 235 of file qstringbuilder.h.

◆ type

Definition at line 234 of file qstringbuilder.h.

Enumerations

◆ anonymous enum

anonymous enum
Enumerator
ExactSize 

Definition at line 236 of file qstringbuilder.h.

Functions

◆ appendTo() [1/2]

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

Definition at line 238 of file qstringbuilder.h.

239  {
240  for (const char *s = a.latin1(); *s; )
241  *out++ = QLatin1Char(*s++);
242  }
const char * latin1() const
Returns the Latin-1 string stored in this object.
Definition: qstring.h:661
The QLatin1Char class provides an 8-bit ASCII/Latin-1 character.
Definition: qchar.h:55

◆ appendTo() [2/2]

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

Definition at line 243 of file qstringbuilder.h.

244  {
245  for (const char *s = a.latin1(); *s; )
246  *out++ = *s++;
247  }
const char * latin1() const
Returns the Latin-1 string stored in this object.
Definition: qstring.h:661

◆ size()

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

Definition at line 237 of file qstringbuilder.h.

237 { return qstrlen(a.latin1()); }
const char * latin1() const
Returns the Latin-1 string stored in this object.
Definition: qstring.h:661
uint qstrlen(const char *str)
Definition: qbytearray.h:79

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