#include <ut_Win32LocaleString.h>
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_type * | data () const |
char_type * | data () |
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 |
UT_UCS2Stringbuf::UT_UCS2Stringbuf | ( | ) |
UT_UCS2Stringbuf::UT_UCS2Stringbuf | ( | const UT_UCS2Stringbuf & | rhs | ) |
References capacity(), copy(), and m_psz.
UT_UCS2Stringbuf::~UT_UCS2Stringbuf | ( | ) |
References clear().
void UT_UCS2Stringbuf::append | ( | const char_type * | sz, | |
size_t | n | |||
) |
References assign(), capacity(), copy(), grow_copy(), m_pEnd, m_psz, and size().
Referenced by append(), UT_Win32LocaleString::appendASCII(), UT_Win32LocaleString::appendLocale(), and UT_Win32LocaleString::substr().
void UT_UCS2Stringbuf::append | ( | const UT_UCS2Stringbuf & | rhs | ) |
void UT_UCS2Stringbuf::assign | ( | const char_type * | sz, | |
size_t | n | |||
) |
References capacity(), clear(), copy(), grow_nocopy(), m_pEnd, and m_psz.
Referenced by append(), UT_Win32LocaleString::fromASCII(), UT_Win32LocaleString::fromLocale(), UT_Win32LocaleString::fromUCS4(), UT_Win32LocaleString::fromUTF8(), UT_UCS2String::operator=(), and operator=().
size_t UT_UCS2Stringbuf::capacity | ( | ) | const [inline] |
References m_size.
Referenced by append(), assign(), grow_common(), and UT_UCS2Stringbuf().
void UT_UCS2Stringbuf::clear | ( | void | ) |
References m_pEnd, m_psz, and m_size.
Referenced by assign(), UT_UCS2String::clear(), UT_Win32LocaleString::fromUCS4(), UT_Win32LocaleString::fromUTF8(), operator=(), and ~UT_UCS2Stringbuf().
void UT_UCS2Stringbuf::copy | ( | char_type * | pDest, | |
const char_type * | pSrc, | |||
size_t | n | |||
) | [static, private] |
Referenced by append(), assign(), grow_common(), and UT_UCS2Stringbuf().
const char_type* UT_UCS2Stringbuf::data | ( | ) | const [inline] |
References m_psz.
Referenced by UT_Win32LocaleString::substr(), UT_UCS2String::substr(), and UT_UCS2String::ucs2_str().
bool UT_UCS2Stringbuf::empty | ( | ) | const [inline] |
Referenced by UT_UCS2String::empty().
void UT_UCS2Stringbuf::grow_common | ( | size_t | n, | |
bool | bCopy | |||
) | [private] |
References capacity(), copy(), g_rGrowBy, m_pEnd, m_psz, m_size, priv_max(), and size().
Referenced by grow_copy(), and grow_nocopy().
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 | ) |
size_t UT_UCS2Stringbuf::size | ( | ) | const [inline] |
char_type* UT_UCS2Stringbuf::m_pEnd [private] |
char_type* UT_UCS2Stringbuf::m_psz [private] |
Referenced by append(), assign(), clear(), data(), empty(), grow_common(), operator=(), size(), and UT_UCS2Stringbuf().
size_t UT_UCS2Stringbuf::m_size [private] |
Referenced by capacity(), clear(), and grow_common().