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

UT_StringImpl< char_type > Class Template Reference

#include <ut_stringbuf.h>

List of all members.

Public Member Functions

 UT_StringImpl ()
 UT_StringImpl (const UT_StringImpl< char_type > &rhs)
 UT_StringImpl (const char_type *sz, size_t n)
 UT_StringImpl (const std::basic_string< char_type > &s)
 ~UT_StringImpl ()
void operator= (const UT_StringImpl< char_type > &rhs)
void assign (const char_type *sz, size_t n)
void append (const char_type *sz, size_t n)
void append (const UT_StringImpl< char_type > &rhs)
void swap (UT_StringImpl< char_type > &rhs)
void clear ()
void reserve (size_t n)
bool empty () const
size_t size () const
size_t capacity () const
const char_type * data () const
char_type * data ()
const char * utf8_data ()
 return the utf8 content.

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_type * m_psz
char_type * m_pEnd
size_t m_size
char * m_utf8string

template<typename char_type>
class UT_StringImpl< char_type >


Constructor & Destructor Documentation

template<typename char_type >
UT_StringImpl< char_type >::UT_StringImpl (  ) 
template<typename char_type>
UT_StringImpl< char_type >::UT_StringImpl ( const UT_StringImpl< char_type > &  rhs  ) 
template<typename char_type>
UT_StringImpl< char_type >::UT_StringImpl ( const char_type *  sz,
size_t  n 
)
template<typename char_type>
UT_StringImpl< char_type >::UT_StringImpl ( const std::basic_string< char_type > &  s  ) 
template<typename char_type >
UT_StringImpl< char_type >::~UT_StringImpl (  ) 

Member Function Documentation

template<typename char_type>
void UT_StringImpl< char_type >::append ( const char_type *  sz,
size_t  n 
)
template<typename char_type>
void UT_StringImpl< char_type >::append ( const UT_StringImpl< char_type > &  rhs  ) 
template<typename char_type>
void UT_StringImpl< char_type >::assign ( const char_type *  sz,
size_t  n 
)
template<typename char_type>
size_t UT_StringImpl< char_type >::capacity (  )  const [inline]
template<typename char_type >
void UT_StringImpl< char_type >::clear ( void   ) 
template<typename char_type>
void UT_StringImpl< char_type >::copy ( char_type *  pDest,
const char_type *  pSrc,
size_t  n 
) [static, private]
template<typename char_type>
const char_type* UT_StringImpl< char_type >::data (  )  const [inline]
template<typename char_type>
char_type* UT_StringImpl< char_type >::data (  )  [inline]
template<typename char_type>
bool UT_StringImpl< char_type >::empty (  )  const [inline]
template<typename char_type >
void UT_StringImpl< char_type >::grow_common ( size_t  n,
bool  bCopy 
) [private]
template<typename char_type >
void UT_StringImpl< char_type >::grow_copy ( size_t  n  )  [private]
template<typename char_type >
void UT_StringImpl< char_type >::grow_nocopy ( size_t  n  )  [private]
template<typename char_type>
void UT_StringImpl< char_type >::operator= ( const UT_StringImpl< char_type > &  rhs  ) 
template<typename char_type >
void UT_StringImpl< char_type >::reserve ( size_t  n  ) 
template<typename char_type>
size_t UT_StringImpl< char_type >::size (  )  const [inline]
template<typename char_type>
void UT_StringImpl< char_type >::swap ( UT_StringImpl< char_type > &  rhs  ) 
template<typename char_type >
const char * UT_StringImpl< char_type >::utf8_data (  ) 

return the utf8 content.

Only for UCS4Char

References UT_ASSERT, and UT_SHOULD_NOT_HAPPEN.

Referenced by UT_UCS4String::utf8_str().


Member Data Documentation

template<typename char_type>
char_type* UT_StringImpl< char_type >::m_pEnd [private]
template<typename char_type>
char_type* UT_StringImpl< char_type >::m_psz [private]
template<typename char_type>
size_t UT_StringImpl< char_type >::m_size [private]
template<typename char_type>
char* UT_StringImpl< char_type >::m_utf8string [private]

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