ReactOS 0.4.16-dev-88-ga65b6ae
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

◆ super

typedef std::string XMLStorage::XS_String::super

Definition at line 297 of file xmlstorage.h.

Constructor & Destructor Documentation

◆ XS_String() [1/5]

XMLStorage::XS_String::XS_String ( )
inline

Definition at line 300 of file xmlstorage.h.

300{}

Referenced by XMLStorage::XMLNode::subvalue().

◆ XS_String() [2/5]

XMLStorage::XS_String::XS_String ( LPCXSSTR  s)
inline

Definition at line 302 of file xmlstorage.h.

302{if (s) super::assign(s);}
GLdouble s
Definition: gl.h:2039

◆ XS_String() [3/5]

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:168

◆ XS_String() [4/5]

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:1376

◆ XS_String() [5/5]

XMLStorage::XS_String::XS_String ( const XS_String other)
inline

Definition at line 306 of file xmlstorage.h.

306: super(other) {}

Member Function Documentation

◆ appendf()

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 }
char * va_list
Definition: acmsvcex.h:78
#define va_end(ap)
Definition: acmsvcex.h:90
#define va_start(ap, A)
Definition: acmsvcex.h:91
GLboolean GLboolean GLboolean b
Definition: glext.h:6204
#define BUFFER_LEN
Definition: utility.h:97
#define COUNTOF(x)
Definition: utility.h:93
Definition: dsound.c:943
#define XS_CHAR
Definition: xmlstorage.h:236
#define XS_vsnprintf
Definition: xmlstorage.h:248

◆ assign() [1/3]

◆ assign() [2/3]

void XMLStorage::XS_String::assign ( LPCXSSTR  s)
inline

Definition at line 343 of file xmlstorage.h.

343{super::assign(s);}

◆ assign() [3/3]

void XMLStorage::XS_String::assign ( LPCXSSTR  s,
size_t  l 
)
inline

Definition at line 344 of file xmlstorage.h.

344{super::assign(s, l);}

◆ operator LPCXSSTR()

XMLStorage::XS_String::operator LPCXSSTR ( ) const
inline

Definition at line 346 of file xmlstorage.h.

346{return c_str();}

◆ operator=() [1/2]

XS_String & XMLStorage::XS_String::operator= ( const super s)
inline

Definition at line 342 of file xmlstorage.h.

342{super::assign(s); return *this;}

◆ operator=() [2/2]

XS_String & XMLStorage::XS_String::operator= ( LPCXSSTR  s)
inline

Definition at line 341 of file xmlstorage.h.

341{if (s) super::assign(s); else erase(); return *this;}

◆ printf()

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 }

◆ vappendf()

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 }

◆ vprintf()

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 }

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