Bike-X  0.8
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
OVR::StringBuffer Class Reference

#include "OVR_String.h"

Collaboration diagram for OVR::StringBuffer:
Collaboration graph

Public Member Functions

 StringBuffer ()
 
 StringBuffer (UPInt growSize)
 
 StringBuffer (const char *data)
 
 StringBuffer (const char *data, UPInt buflen)
 
 StringBuffer (const String &src)
 
 StringBuffer (const StringBuffer &src)
 
 StringBuffer (const wchar_t *data)
 
 ~StringBuffer ()
 
UPInt GetGrowSize () const
 
void SetGrowSize (UPInt growSize)
 
void Clear ()
 
 operator const char * () const
 
const char * ToCStr () const
 
UPInt GetSize () const
 
bool IsEmpty () const
 
UPInt GetLength () const
 
UInt32 GetCharAt (UPInt index) const
 
UInt32 GetFirstCharAt (UPInt index, const char **offset) const
 
UInt32 GetNextChar (const char **offset) const
 
void Resize (UPInt _size)
 
void Reserve (UPInt _size)
 
void AppendChar (UInt32 ch)
 
void AppendString (const wchar_t *pstr, SPInt len=-1)
 
void AppendString (const char *putf8str, SPInt utf8StrSz=-1)
 
void AppendFormat (const char *format,...)
 
void Insert (const char *substr, UPInt posAt, SPInt len=-1)
 
UPInt InsertCharAt (UInt32 c, UPInt posAt)
 
void operator= (const char *str)
 
void operator= (const wchar_t *str)
 
void operator= (const String &src)
 
void operator= (const StringBuffer &src)
 
void operator+= (const String &src)
 
void operator+= (const char *psrc)
 
void operator+= (const wchar_t *psrc)
 
void operator+= (char ch)
 
char & operator[] (int index)
 
char & operator[] (UPInt index)
 
const char & operator[] (int index) const
 
const char & operator[] (UPInt index) const
 

Private Attributes

char * pData
 
UPInt Size
 
UPInt BufferSize
 
UPInt GrowSize
 
bool LengthIsSize
 

Detailed Description

Definition at line 404 of file OVR_String.h.

Constructor & Destructor Documentation

OVR::StringBuffer::StringBuffer ( )

Definition at line 558 of file OVR_String.cpp.

OVR::StringBuffer::StringBuffer ( UPInt  growSize)
explicit

Definition at line 563 of file OVR_String.cpp.

OVR::StringBuffer::StringBuffer ( const char *  data)

Definition at line 569 of file OVR_String.cpp.

OVR::StringBuffer::StringBuffer ( const char *  data,
UPInt  buflen 
)

Definition at line 575 of file OVR_String.cpp.

OVR::StringBuffer::StringBuffer ( const String src)

Definition at line 581 of file OVR_String.cpp.

OVR::StringBuffer::StringBuffer ( const StringBuffer src)

Definition at line 587 of file OVR_String.cpp.

OVR::StringBuffer::StringBuffer ( const wchar_t *  data)
explicit

Definition at line 593 of file OVR_String.cpp.

OVR::StringBuffer::~StringBuffer ( )

Definition at line 599 of file OVR_String.cpp.

Member Function Documentation

void OVR::StringBuffer::AppendChar ( UInt32  ch)

Definition at line 663 of file OVR_String.cpp.

void OVR::StringBuffer::AppendFormat ( const char *  format,
  ... 
)

Definition at line 32 of file OVR_String_FormatUtil.cpp.

void OVR::StringBuffer::AppendString ( const wchar_t *  pstr,
SPInt  len = -1 
)

Definition at line 680 of file OVR_String.cpp.

void OVR::StringBuffer::AppendString ( const char *  putf8str,
SPInt  utf8StrSz = -1 
)

Definition at line 693 of file OVR_String.cpp.

void OVR::StringBuffer::Clear ( void  )

Definition at line 649 of file OVR_String.cpp.

UInt32 OVR::StringBuffer::GetCharAt ( UPInt  index) const
UInt32 OVR::StringBuffer::GetFirstCharAt ( UPInt  index,
const char **  offset 
) const
UPInt OVR::StringBuffer::GetGrowSize ( ) const
inline

Definition at line 426 of file OVR_String.h.

UPInt OVR::StringBuffer::GetLength ( ) const

Definition at line 616 of file OVR_String.cpp.

UInt32 OVR::StringBuffer::GetNextChar ( const char **  offset) const
UPInt OVR::StringBuffer::GetSize ( void  ) const
inline

Definition at line 440 of file OVR_String.h.

void OVR::StringBuffer::Insert ( const char *  substr,
UPInt  posAt,
SPInt  len = -1 
)

Definition at line 738 of file OVR_String.cpp.

UPInt OVR::StringBuffer::InsertCharAt ( UInt32  c,
UPInt  posAt 
)

Definition at line 756 of file OVR_String.cpp.

bool OVR::StringBuffer::IsEmpty ( void  ) const
inline

Definition at line 442 of file OVR_String.h.

OVR::StringBuffer::operator const char * ( ) const
inline

Definition at line 435 of file OVR_String.h.

void OVR::StringBuffer::operator+= ( const String src)
inline

Definition at line 480 of file OVR_String.h.

void OVR::StringBuffer::operator+= ( const char *  psrc)
inline

Definition at line 481 of file OVR_String.h.

void OVR::StringBuffer::operator+= ( const wchar_t *  psrc)
inline

Definition at line 482 of file OVR_String.h.

void OVR::StringBuffer::operator+= ( char  ch)
inline

Definition at line 483 of file OVR_String.h.

void OVR::StringBuffer::operator= ( const char *  str)

Definition at line 708 of file OVR_String.cpp.

void OVR::StringBuffer::operator= ( const wchar_t *  str)

Definition at line 716 of file OVR_String.cpp.

void OVR::StringBuffer::operator= ( const String src)

Definition at line 724 of file OVR_String.cpp.

void OVR::StringBuffer::operator= ( const StringBuffer src)

Definition at line 730 of file OVR_String.cpp.

char& OVR::StringBuffer::operator[] ( int  index)
inline

Definition at line 488 of file OVR_String.h.

char& OVR::StringBuffer::operator[] ( UPInt  index)
inline

Definition at line 493 of file OVR_String.h.

const char& OVR::StringBuffer::operator[] ( int  index) const
inline

Definition at line 499 of file OVR_String.h.

const char& OVR::StringBuffer::operator[] ( UPInt  index) const
inline

Definition at line 504 of file OVR_String.h.

void OVR::StringBuffer::Reserve ( UPInt  _size)

Definition at line 629 of file OVR_String.cpp.

void OVR::StringBuffer::Resize ( UPInt  _size)

Definition at line 640 of file OVR_String.cpp.

void OVR::StringBuffer::SetGrowSize ( UPInt  growSize)

Definition at line 604 of file OVR_String.cpp.

const char* OVR::StringBuffer::ToCStr ( ) const
inline

Definition at line 437 of file OVR_String.h.

Field Documentation

UPInt OVR::StringBuffer::BufferSize
private

Definition at line 408 of file OVR_String.h.

UPInt OVR::StringBuffer::GrowSize
private

Definition at line 409 of file OVR_String.h.

bool OVR::StringBuffer::LengthIsSize
mutableprivate

Definition at line 410 of file OVR_String.h.

char* OVR::StringBuffer::pData
private

Definition at line 406 of file OVR_String.h.

UPInt OVR::StringBuffer::Size
private

Definition at line 407 of file OVR_String.h.


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