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

com::Utf8Str Class Reference

#include <string.h>

Inheritance diagram for com::Utf8Str:

com::Utf8StrFmt com::Utf8StrFmtVA

List of all members.


Detailed Description

Helper class that represents UTF8 (|char *|) strings. Useful in conjunction with Bstr to simplify conversions beetween UCS2 (|BSTR|) and UTF8.

This class uses COM/XPCOM-provided memory management routines to allocate and free string buffers. This makes it possible to:

Definition at line 254 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
Utf8Stroperator= (const BSTR that)
Utf8Stroperator= (const Bstr &that)
Utf8Stroperator= (const char *that)
Utf8Stroperator= (const Utf8Str &that)
bool operator== (const char *that) const
bool operator== (const Utf8Str &that) const
const char * raw () const
Utf8StrsetNull ()
Utf8StrsetNullIfEmpty ()
 Utf8Str (size_t aSize)
 Utf8Str (const BSTR that)
 Utf8Str (const Bstr &that)
 Utf8Str (const char *that)
 Utf8Str (const Utf8Str &that)

Private Member Functions

void safe_assign (const char *s)

Static Private Member Functions

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

Private Attributes

char * str

Friends

class Bstr

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

Generated by  Doxygen 1.6.0   Back to index