foobar2000 SDK  2015-08-03
Public Member Functions | Private Attributes
uStringPrintf

#include <shared.h>

Public Member Functions

 uStringPrintf (const char *fmt,...)
 
const char * get_ptr () const
 
bool is_empty () const
 
t_size length () const
 
 operator const char * () const
 
const char * toString () const
 

Private Attributes

pfc::string8_fastalloc m_data
 

Detailed Description

Definition at line 342 of file shared.h.

Constructor & Destructor Documentation

uStringPrintf::uStringPrintf ( const char *  fmt,
  ... 
)
inlineexplicit

Definition at line 345 of file shared.h.

346  {
347  va_list list;
348  va_start(list,fmt);
349  uPrintfV(m_data,fmt,list);
350  va_end(list);
351  }
void SHARED_EXPORT uPrintfV(pfc::string_base &out, const char *fmt, va_list arglist)
pfc::string8_fastalloc m_data
Definition: shared.h:358

Member Function Documentation

const char* uStringPrintf::get_ptr ( ) const
inline

Definition at line 355 of file shared.h.

355 {return m_data.get_ptr();}
pfc::string8_fastalloc m_data
Definition: shared.h:358
bool uStringPrintf::is_empty ( ) const
inline

Definition at line 354 of file shared.h.

354 {return length() == 0;}
t_size length() const
Definition: shared.h:353
t_size uStringPrintf::length ( ) const
inline

Definition at line 353 of file shared.h.

353 {return m_data.length();}
pfc::string8_fastalloc m_data
Definition: shared.h:358
uStringPrintf::operator const char * ( ) const
inline

Definition at line 352 of file shared.h.

352 {return m_data.get_ptr();}
pfc::string8_fastalloc m_data
Definition: shared.h:358
const char* uStringPrintf::toString ( ) const
inline

Definition at line 356 of file shared.h.

356 {return get_ptr();}
const char * get_ptr() const
Definition: shared.h:355

Field Documentation

pfc::string8_fastalloc uStringPrintf::m_data
private

Definition at line 358 of file shared.h.


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