Nebula
Loading...
Searching...
No Matches
TiXmlString Class Reference

#include <tinystr.h>

Inherited by TiXmlOutStream.

Classes

struct  Rep
 

Public Types

typedef size_t size_type
 

Public Member Functions

 TiXmlString ()
 
 TiXmlString (const TiXmlString &copy)
 
TIXML_EXPLICIT TiXmlString (const char *copy)
 
TIXML_EXPLICIT TiXmlString (const char *str, size_type len)
 
 ~TiXmlString ()
 
TiXmlStringoperator= (const char *copy)
 
TiXmlStringoperator= (const TiXmlString &copy)
 
TiXmlStringoperator+= (const char *suffix)
 
TiXmlStringoperator+= (char single)
 
TiXmlStringoperator+= (const TiXmlString &suffix)
 
const char * c_str () const
 
const char * data () const
 
size_type length () const
 
size_type size () const
 
bool empty () const
 
size_type capacity () const
 
const char & at (size_type index) const
 
char & operator[] (size_type index) const
 
size_type find (char lookup) const
 
size_type find (char tofind, size_type offset) const
 
void clear ()
 
void reserve (size_type cap)
 
TiXmlStringassign (const char *str, size_type len)
 
TiXmlStringappend (const char *str, size_type len)
 
void swap (TiXmlString &other)
 

Static Public Attributes

static const size_type npos = static_cast< size_type >(-1)
 

Private Member Functions

void init (size_type sz)
 
void set_size (size_type sz)
 
char * start () const
 
char * finish () const
 
void init (size_type sz, size_type cap)
 
void quit ()
 

Private Attributes

Reprep_
 

Static Private Attributes

static Rep nullrep_ = { 0, 0, '\0' }
 

Member Typedef Documentation

◆ size_type

Constructor & Destructor Documentation

◆ TiXmlString() [1/4]

TiXmlString::TiXmlString ( )
inline

◆ TiXmlString() [2/4]

TiXmlString::TiXmlString ( const TiXmlString & copy)
inline

◆ TiXmlString() [3/4]

TIXML_EXPLICIT TiXmlString::TiXmlString ( const char * copy)
inline

◆ TiXmlString() [4/4]

TIXML_EXPLICIT TiXmlString::TiXmlString ( const char * str,
size_type len )
inline

◆ ~TiXmlString()

TiXmlString::~TiXmlString ( )
inline

Member Function Documentation

◆ append()

TiXmlString & TiXmlString::append ( const char * str,
size_type len )

◆ assign()

TiXmlString & TiXmlString::assign ( const char * str,
size_type len )

◆ at()

const char & TiXmlString::at ( size_type index) const
inline

◆ c_str()

const char * TiXmlString::c_str ( ) const
inline

◆ capacity()

size_type TiXmlString::capacity ( ) const
inline

◆ clear()

void TiXmlString::clear ( )
inline

◆ data()

const char * TiXmlString::data ( ) const
inline

◆ empty()

bool TiXmlString::empty ( ) const
inline

◆ find() [1/2]

size_type TiXmlString::find ( char lookup) const
inline

◆ find() [2/2]

size_type TiXmlString::find ( char tofind,
size_type offset ) const
inline

◆ finish()

char * TiXmlString::finish ( ) const
inlineprivate

◆ init() [1/2]

void TiXmlString::init ( size_type sz)
inlineprivate

◆ init() [2/2]

void TiXmlString::init ( size_type sz,
size_type cap )
inlineprivate

◆ length()

size_type TiXmlString::length ( ) const
inline

◆ operator+=() [1/3]

TiXmlString & TiXmlString::operator+= ( char single)
inline

◆ operator+=() [2/3]

TiXmlString & TiXmlString::operator+= ( const char * suffix)
inline

◆ operator+=() [3/3]

TiXmlString & TiXmlString::operator+= ( const TiXmlString & suffix)
inline

◆ operator=() [1/2]

TiXmlString & TiXmlString::operator= ( const char * copy)
inline

◆ operator=() [2/2]

TiXmlString & TiXmlString::operator= ( const TiXmlString & copy)
inline

◆ operator[]()

char & TiXmlString::operator[] ( size_type index) const
inline

◆ quit()

void TiXmlString::quit ( )
inlineprivate

◆ reserve()

void TiXmlString::reserve ( size_type cap)

◆ set_size()

void TiXmlString::set_size ( size_type sz)
inlineprivate

◆ size()

size_type TiXmlString::size ( ) const
inline

◆ start()

char * TiXmlString::start ( ) const
inlineprivate

◆ swap()

void TiXmlString::swap ( TiXmlString & other)
inline

Member Data Documentation

◆ npos

const TiXmlString::size_type TiXmlString::npos = static_cast< size_type >(-1)
static

◆ nullrep_

TiXmlString::Rep TiXmlString::nullrep_ = { 0, 0, '\0' }
staticprivate

◆ rep_

Rep* TiXmlString::rep_
private

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