Logo Search packages:      
Sourcecode: virtualbox-ose version File versions

com::Utf8StrFmtVA Class Reference

#include <string.h>

Inheritance diagram for com::Utf8StrFmtVA:

com::Utf8StrFmt com::Utf8Str

List of all members.


Detailed Description

This class is a vprintf-like formatter for Utf8Str strings. It is identical to Utf8StrFmt except that its constructor takes a va_list argument instead of ellipsis.

Note that a separate class is necessary because va_list is defined as |char *| on most platforms. For this reason, if we had two overloaded constructors in Utf8StrFmt (one taking ellipsis and another one taking va_list) then composing a constructor call using exactly two |char *| arguments would cause the compiler to use the va_list overload instead of the ellipsis one which is obviously wrong. The compiler would choose va_list because ellipsis has the lowest rank when it comes to resolving overloads, as opposed to va_list which is an exact match for |char *|.

Definition at line 545 of file string.h.


Public Types

typedef const char * ConstString
typedef char * String

Public Member Functions

Utf8Stralloc (size_t aSize)
char ** asOutParam ()
const Utf8StrcloneTo (BSTR *pstr) const
const Utf8StrcloneTo (char **pstr) const
int compare (const char *s) const
bool isEmpty () const
bool isNull () const
size_t length () const
char * mutableRaw ()
 operator bool () const
 operator const char * () const
bool operator!= (const char *that) const
bool operator!= (const Utf8Str &that) const
bool operator< (const char *that) const
bool operator< (const Utf8Str &that) const
bool operator== (const char *that) const
bool operator== (const Utf8Str &that) const
const char * raw () const
Utf8StrsetNull ()
Utf8StrsetNullIfEmpty ()
 Utf8StrFmtVA (const char *format, va_list args)

Protected Member Functions

void init (const char *format, va_list args)

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

Generated by  Doxygen 1.6.0   Back to index