Public Types | Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes

UT_UCS2Stringbuf Class Reference

#include <ut_Win32LocaleString.h>

List of all members.

Public Types

typedef UT_UCS2Char char_type

Public Member Functions

 UT_UCS2Stringbuf ()
 UT_UCS2Stringbuf (const UT_UCS2Stringbuf &rhs)
 UT_UCS2Stringbuf (const char_type *sz, size_t n)
 ~UT_UCS2Stringbuf ()
void operator= (const UT_UCS2Stringbuf &rhs)
void assign (const char_type *sz, size_t n)
void append (const char_type *sz, size_t n)
void append (const UT_UCS2Stringbuf &rhs)
void clear ()
bool empty () const
size_t size () const
size_t capacity () const
const char_typedata () const
char_typedata ()

Private Member Functions

void grow_nocopy (size_t n)
void grow_copy (size_t n)
void grow_common (size_t n, bool bCopy)

Static Private Member Functions

static void copy (char_type *pDest, const char_type *pSrc, size_t n)

Private Attributes

char_typem_psz
char_typem_pEnd
size_t m_size

Member Typedef Documentation


Constructor & Destructor Documentation

UT_UCS2Stringbuf::UT_UCS2Stringbuf (  ) 
UT_UCS2Stringbuf::UT_UCS2Stringbuf ( const UT_UCS2Stringbuf rhs  ) 

References capacity(), copy(), and m_psz.

UT_UCS2Stringbuf::UT_UCS2Stringbuf ( const char_type sz,
size_t  n 
)

References copy(), and m_psz.

UT_UCS2Stringbuf::~UT_UCS2Stringbuf (  ) 

References clear().


Member Function Documentation

void UT_UCS2Stringbuf::append ( const char_type sz,
size_t  n 
)
void UT_UCS2Stringbuf::append ( const UT_UCS2Stringbuf rhs  ) 

References append(), m_psz, and size().

void UT_UCS2Stringbuf::assign ( const char_type sz,
size_t  n 
)
size_t UT_UCS2Stringbuf::capacity (  )  const [inline]

References m_size.

Referenced by append(), assign(), grow_common(), and UT_UCS2Stringbuf().

void UT_UCS2Stringbuf::clear ( void   ) 
void UT_UCS2Stringbuf::copy ( char_type pDest,
const char_type pSrc,
size_t  n 
) [static, private]
const char_type* UT_UCS2Stringbuf::data (  )  const [inline]
char_type* UT_UCS2Stringbuf::data (  )  [inline]

References m_psz.

bool UT_UCS2Stringbuf::empty (  )  const [inline]

References m_pEnd, and m_psz.

Referenced by UT_UCS2String::empty().

void UT_UCS2Stringbuf::grow_common ( size_t  n,
bool  bCopy 
) [private]
void UT_UCS2Stringbuf::grow_copy ( size_t  n  )  [private]

References grow_common().

Referenced by append().

void UT_UCS2Stringbuf::grow_nocopy ( size_t  n  )  [private]

References grow_common().

Referenced by assign().

void UT_UCS2Stringbuf::operator= ( const UT_UCS2Stringbuf rhs  ) 

References assign(), clear(), m_psz, and size().

size_t UT_UCS2Stringbuf::size (  )  const [inline]

Member Data Documentation

size_t UT_UCS2Stringbuf::m_size [private]

Referenced by capacity(), clear(), and grow_common().


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