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

com::Utf8StrFmt Class Reference

#include <string.h>

Inheritance diagram for com::Utf8StrFmt:

com::Utf8Str com::Utf8StrFmtVA

List of all members.


Detailed Description

This class is a printf-like formatter for Utf8Str strings. Its purpose is to construct Utf8Str objects from a format string and a list of arguments for the format string.

The usage of this class is like the following: Utf8StrFmt string ("program name = %s", argv[0]);

Definition at line 599 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
Utf8StrdetachTo (char **pstr)
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 ()
 Utf8StrFmt (const char *format,...)

Static Public Attributes

static const Utf8Str Null

Protected Member Functions

void init (const char *format, va_list args)
void safe_assign (const char *s)

Static Protected Member Functions

static void raw_copy (char *&ls, CBSTR rs)
static void raw_copy (char *&ls, const char *rs)

Protected Attributes

char * str

Static Private Member Functions

static DECLCALLBACK (size_t) strOutput(void *pvArg

Private Attributes

static const char size_t cbChars
static const char * pachChars

Friends

class Bstr

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

Generated by  Doxygen 1.6.0   Back to index