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

com::Utf8StrFmt Class Reference

#include <string.h>

Inheritance diagram for com::Utf8StrFmt:

com::Utf8Str iprt::MiniString 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 579 of file string.h.

Public Types

enum  CaseSensitivity { CaseSensitive, CaseInsensitive }

Public Member Functions

MiniStringappend (char c)
MiniStringappend (const MiniString &that)
char ** asOutParam ()
const char * c_str () const
size_t capacity () const
const Utf8StrcloneTo (BSTR *pstr) const
const Utf8StrcloneTo (char **pstr) const
int compare (const MiniString &that, CaseSensitivity cs=CaseSensitive) const
int compare (const char *pcsz, CaseSensitivity cs=CaseSensitive) const
bool contains (const iprt::MiniString &that, CaseSensitivity cs=CaseSensitive) const
Utf8StrdetachTo (char **pstr)
bool endsWith (const iprt::MiniString &that, CaseSensitivity cs=CaseSensitive) const
size_t find (const char *pcszFind, size_t pos=0) const
bool isEmpty () const
void jolt ()
size_t length () const
char * mutableRaw ()
char operator[] (size_t i) const
const char * raw () const
void reserve (size_t cb)
void setNull ()
bool startsWith (const iprt::MiniString &that, CaseSensitivity cs=CaseSensitive) const
void stripExt ()
void stripFilename ()
void stripTrailingSlash ()
iprt::MiniString substr (size_t pos=0, size_t n=npos) const
int toInt (uint32_t &i) const
int toInt (uint64_t &i) const
int toInt32 () const
int64_t toInt64 () const
Utf8StrtoLower ()
int toUInt32 () const
uint64_t toUInt64 () const
Utf8StrtoUpper ()
 Utf8StrFmt (const char *format,...)
Comparison operators.
bool operator!= (const char *that) const
bool operator!= (const MiniString &that) const
bool operator< (const char *that) const
bool operator< (const MiniString &that) const
bool operator== (const char *that) const
bool operator== (const MiniString &that) const
bool operator> (const char *that) const
bool operator> (const MiniString &that) const

Static Public Attributes

static const size_t npos = ~(size_t)0
static const Utf8Str Null

Protected Member Functions

void cleanup ()
void copyFrom (const char *pcsz)
void copyFrom (const MiniString &s)
void copyFrom (CBSTR s)
void init (const char *format, va_list args)
 operator bool () const

Protected Attributes

size_t m_cbAllocated
size_t m_cbLength
char * m_psz

Static Private Member Functions

static DECLCALLBACK (size_t) strOutput(void *pvArg

Private Attributes

static const char size_t cbChars
static const char * pachChars


class Bstr

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

Generated by  Doxygen 1.6.0   Back to index