ReactOS  0.4.11-dev-721-g95bc44e
XMLStorage::XS_String Struct Reference

string class for TCHAR strings More...

#include <xmlstorage.h>

Inheritance diagram for XMLStorage::XS_String:
Collaboration diagram for XMLStorage::XS_String:

Public Types

typedef std::string super
 

Public Member Functions

 XS_String ()
 
 XS_String (LPCXSSTR s)
 
 XS_String (LPCXSSTR s, size_t l)
 
 XS_String (const super &other)
 
 XS_String (const XS_String &other)
 
void assign (const XS_String &s)
 
XS_Stringoperator= (LPCXSSTR s)
 
XS_Stringoperator= (const super &s)
 
void assign (LPCXSSTR s)
 
void assign (LPCXSSTR s, size_t l)
 
 operator LPCXSSTR () const
 
XS_Stringprintf (LPCXSSTR fmt,...)
 
XS_Stringvprintf (LPCXSSTR fmt, va_list l)
 
XS_Stringappendf (LPCXSSTR fmt,...)
 
XS_Stringvappendf (LPCXSSTR fmt, va_list l)
 

Detailed Description

string class for TCHAR strings

Definition at line 287 of file xmlstorage.h.

Member Typedef Documentation

Definition at line 297 of file xmlstorage.h.

Constructor & Destructor Documentation

XMLStorage::XS_String::XS_String ( )
inline

Definition at line 300 of file xmlstorage.h.

Referenced by XMLStorage::XMLDoc::read_file(), and XMLStorage::XMLNode::subvalue().

300 {}
XMLStorage::XS_String::XS_String ( LPCXSSTR  s)
inline

Definition at line 302 of file xmlstorage.h.

302 {if (s) super::assign(s);}
HRESULT assign([in] BSTR bstr)
GLdouble s
Definition: gl.h:2039
XMLStorage::XS_String::XS_String ( LPCXSSTR  s,
size_t  l 
)
inline

Definition at line 303 of file xmlstorage.h.

303 : super(s, l) {}
r l[0]
Definition: byte_order.h:167
GLdouble s
Definition: gl.h:2039
XMLStorage::XS_String::XS_String ( const super other)
inline

Definition at line 305 of file xmlstorage.h.

305 : super(other) {}
int other
Definition: msacm.c:1364
XMLStorage::XS_String::XS_String ( const XS_String other)
inline

Definition at line 306 of file xmlstorage.h.

306 : super(other) {}
int other
Definition: msacm.c:1364

Member Function Documentation

XS_String& XMLStorage::XS_String::appendf ( LPCXSSTR  fmt,
  ... 
)
inline

Definition at line 379 of file xmlstorage.h.

380  {
381  va_list l;
383 
384  va_start(l, fmt);
385  super::append(b, XS_vsnprintf(b, COUNTOF(b), fmt, l));
386  va_end(l);
387 
388  return *this;
389  }
static void append(struct dump_context *dc, const void *data, unsigned size)
Definition: minidump.c:380
#define va_end(ap)
Definition: acmsvcex.h:90
#define XS_vsnprintf
Definition: xmlstorage.h:248
char * va_list
Definition: acmsvcex.h:78
r l[0]
Definition: byte_order.h:167
GLboolean GLboolean GLboolean b
Definition: glext.h:6204
#define BUFFER_LEN
Definition: xmlstorage.h:226
#define XS_CHAR
Definition: xmlstorage.h:236
#define va_start(ap, A)
Definition: acmsvcex.h:91
#define COUNTOF(b)
Definition: xmlstorage.h:271
Definition: dsound.c:943
void XMLStorage::XS_String::assign ( const XS_String s)
inline
void XMLStorage::XS_String::assign ( LPCXSSTR  s)
inline

Definition at line 343 of file xmlstorage.h.

343 {super::assign(s);}
HRESULT assign([in] BSTR bstr)
GLdouble s
Definition: gl.h:2039
void XMLStorage::XS_String::assign ( LPCXSSTR  s,
size_t  l 
)
inline

Definition at line 344 of file xmlstorage.h.

344 {super::assign(s, l);}
HRESULT assign([in] BSTR bstr)
r l[0]
Definition: byte_order.h:167
GLdouble s
Definition: gl.h:2039

Definition at line 346 of file xmlstorage.h.

346 {return c_str();}

Definition at line 341 of file xmlstorage.h.

341 {if (s) super::assign(s); else erase(); return *this;}
HRESULT assign([in] BSTR bstr)
GLdouble s
Definition: gl.h:2039

Definition at line 342 of file xmlstorage.h.

342 {super::assign(s); return *this;}
HRESULT assign([in] BSTR bstr)
GLdouble s
Definition: gl.h:2039
XS_String& XMLStorage::XS_String::printf ( LPCXSSTR  fmt,
  ... 
)
inline

Definition at line 358 of file xmlstorage.h.

359  {
360  va_list l;
362 
363  va_start(l, fmt);
364  super::assign(b, XS_vsnprintf(b, COUNTOF(b), fmt, l));
365  va_end(l);
366 
367  return *this;
368  }
HRESULT assign([in] BSTR bstr)
#define va_end(ap)
Definition: acmsvcex.h:90
#define XS_vsnprintf
Definition: xmlstorage.h:248
char * va_list
Definition: acmsvcex.h:78
r l[0]
Definition: byte_order.h:167
GLboolean GLboolean GLboolean b
Definition: glext.h:6204
#define BUFFER_LEN
Definition: xmlstorage.h:226
#define XS_CHAR
Definition: xmlstorage.h:236
#define va_start(ap, A)
Definition: acmsvcex.h:91
#define COUNTOF(b)
Definition: xmlstorage.h:271
Definition: dsound.c:943
XS_String& XMLStorage::XS_String::vappendf ( LPCXSSTR  fmt,
va_list  l 
)
inline

Definition at line 391 of file xmlstorage.h.

392  {
394 
395  super::append(b, XS_vsnprintf(b, COUNTOF(b), fmt, l));
396 
397  return *this;
398  }
static void append(struct dump_context *dc, const void *data, unsigned size)
Definition: minidump.c:380
#define XS_vsnprintf
Definition: xmlstorage.h:248
r l[0]
Definition: byte_order.h:167
GLboolean GLboolean GLboolean b
Definition: glext.h:6204
#define BUFFER_LEN
Definition: xmlstorage.h:226
#define XS_CHAR
Definition: xmlstorage.h:236
#define COUNTOF(b)
Definition: xmlstorage.h:271
Definition: dsound.c:943
XS_String& XMLStorage::XS_String::vprintf ( LPCXSSTR  fmt,
va_list  l 
)
inline

Definition at line 370 of file xmlstorage.h.

371  {
373 
374  super::assign(b, XS_vsnprintf(b, COUNTOF(b), fmt, l));
375 
376  return *this;
377  }
HRESULT assign([in] BSTR bstr)
#define XS_vsnprintf
Definition: xmlstorage.h:248
r l[0]
Definition: byte_order.h:167
GLboolean GLboolean GLboolean b
Definition: glext.h:6204
#define BUFFER_LEN
Definition: xmlstorage.h:226
#define XS_CHAR
Definition: xmlstorage.h:236
#define COUNTOF(b)
Definition: xmlstorage.h:271
Definition: dsound.c:943

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