Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

std::basic_string Class Template Reference

#include <basic_string.h>

Collaboration diagram for std::basic_string:

Collaboration graph
[legend]
List of all members.

Public Types

typedef _Traits traits_type
typedef _Traits::char_type value_type
typedef _Alloc allocator_type
typedef _Alloc::size_type size_type
typedef _Alloc::difference_type difference_type
typedef _Alloc::reference reference
typedef _Alloc::const_reference const_reference
typedef _Alloc::pointer pointer
typedef _Alloc::const_pointer const_pointer
typedef __normal_iterator<
pointer, basic_string> 
iterator
typedef __normal_iterator<
const_pointer, basic_string> 
const_iterator
typedef reverse_iterator<const_iteratorconst_reverse_iterator
typedef reverse_iterator<iteratorreverse_iterator

Public Methods

 basic_string ()
 basic_string (const _Alloc &__a)
 basic_string (const basic_string &__str)
 basic_string (const basic_string &__str, size_type __pos, size_type __n=npos)
 basic_string (const basic_string &__str, size_type __pos, size_type __n, const _Alloc &__a)
 basic_string (const _CharT *__s, size_type __n, const _Alloc &__a=_Alloc())
 basic_string (const _CharT *__s, const _Alloc &__a=_Alloc())
 basic_string (size_type __n, _CharT __c, const _Alloc &__a=_Alloc())
template<class _InputIterator>  basic_string (_InputIterator __begin, _InputIterator __end, const _Alloc &__a=_Alloc())
 ~basic_string ()
basic_string& operator= (const basic_string &__str)
basic_string& operator= (const _CharT *__s)
basic_string& operator= (_CharT __c)
iterator begin ()
const_iterator begin () const
iterator end ()
const_iterator end () const
reverse_iterator rbegin ()
const_reverse_iterator rbegin () const
reverse_iterator rend ()
const_reverse_iterator rend () const
size_type size () const
size_type length () const
size_type max_size () const
void resize (size_type __n, _CharT __c)
void resize (size_type __n)
size_type capacity () const
void reserve (size_type __res_arg=0)
void clear ()
bool empty () const
const_reference operator[] (size_type __pos) const
reference operator[] (size_type __pos)
const_reference at (size_type __n) const
reference at (size_type __n)
basic_string& operator+= (const basic_string &__str)
basic_string& operator+= (const _CharT *__s)
basic_string& operator+= (_CharT __c)
basic_string& append (const basic_string &__str)
basic_string& append (const basic_string &__str, size_type __pos, size_type __n)
basic_string& append (const _CharT *__s, size_type __n)
basic_string& append (const _CharT *__s)
basic_string& append (size_type __n, _CharT __c)
template<class _InputIterator> basic_string& append (_InputIterator __first, _InputIterator __last)
void push_back (_CharT __c)
basic_string& assign (const basic_string &__str)
basic_string& assign (const basic_string &__str, size_type __pos, size_type __n)
basic_string& assign (const _CharT *__s, size_type __n)
basic_string& assign (const _CharT *__s)
basic_string& assign (size_type __n, _CharT __c)
template<class _InputIterator> basic_string& assign (_InputIterator __first, _InputIterator __last)
void insert (iterator __p, size_type __n, _CharT __c)
template<class _InputIterator> void insert (iterator __p, _InputIterator __beg, _InputIterator __end)
basic_string& insert (size_type __pos1, const basic_string &__str)
basic_string& insert (size_type __pos1, const basic_string &__str, size_type __pos2, size_type __n)
basic_string& insert (size_type __pos, const _CharT *__s, size_type __n)
basic_string& insert (size_type __pos, const _CharT *__s)
basic_string& insert (size_type __pos, size_type __n, _CharT __c)
iterator insert (iterator __p, _CharT __c=_CharT())
basic_string& erase (size_type __pos=0, size_type __n=npos)
iterator erase (iterator __position)
iterator erase (iterator __first, iterator __last)
basic_string& replace (size_type __pos, size_type __n, const basic_string &__str)
basic_string& replace (size_type __pos1, size_type __n1, const basic_string &__str, size_type __pos2, size_type __n2)
basic_string& replace (size_type __pos, size_type __n1, const _CharT *__s, size_type __n2)
basic_string& replace (size_type __pos, size_type __n1, const _CharT *__s)
basic_string& replace (size_type __pos, size_type __n1, size_type __n2, _CharT __c)
basic_string& replace (iterator __i1, iterator __i2, const basic_string &__str)
basic_string& replace (iterator __i1, iterator __i2, const _CharT *__s, size_type __n)
basic_string& replace (iterator __i1, iterator __i2, const _CharT *__s)
basic_string& replace (iterator __i1, iterator __i2, size_type __n, _CharT __c)
template<class _InputIterator> basic_string& replace (iterator __i1, iterator __i2, _InputIterator __k1, _InputIterator __k2)
size_type copy (_CharT *__s, size_type __n, size_type __pos=0) const
void swap (basic_string< _CharT, _Traits, _Alloc > &__s)
const _CharT* c_str () const
const _CharT* data () const
allocator_type get_allocator () const
size_type find (const _CharT *__s, size_type __pos, size_type __n) const
size_type find (const basic_string &__str, size_type __pos=0) const
size_type find (const _CharT *__s, size_type __pos=0) const
size_type find (_CharT __c, size_type __pos=0) const
size_type rfind (const basic_string &__str, size_type __pos=npos) const
size_type rfind (const _CharT *__s, size_type __pos, size_type __n) const
size_type rfind (const _CharT *__s, size_type __pos=npos) const
size_type rfind (_CharT __c, size_type __pos=npos) const
size_type find_first_of (const basic_string &__str, size_type __pos=0) const
size_type find_first_of (const _CharT *__s, size_type __pos, size_type __n) const
size_type find_first_of (const _CharT *__s, size_type __pos=0) const
size_type find_first_of (_CharT __c, size_type __pos=0) const
size_type find_last_of (const basic_string &__str, size_type __pos=npos) const
size_type find_last_of (const _CharT *__s, size_type __pos, size_type __n) const
size_type find_last_of (const _CharT *__s, size_type __pos=npos) const
size_type find_last_of (_CharT __c, size_type __pos=npos) const
size_type find_first_not_of (const basic_string &__str, size_type __pos=0) const
size_type find_first_not_of (const _CharT *__s, size_type __pos, size_type __n) const
size_type find_first_not_of (const _CharT *__s, size_type __pos=0) const
size_type find_first_not_of (_CharT __c, size_type __pos=0) const
size_type find_last_not_of (const basic_string &__str, size_type __pos=npos) const
size_type find_last_not_of (const _CharT *__s, size_type __pos, size_type __n) const
size_type find_last_not_of (const _CharT *__s, size_type __pos=npos) const
size_type find_last_not_of (_CharT __c, size_type __pos=npos) const
basic_string substr (size_type __pos=0, size_type __n=npos) const
int compare (const basic_string &__str) const
int compare (size_type __pos, size_type __n, const basic_string &__str) const
int compare (size_type __pos1, size_type __n1, const basic_string &__str, size_type __pos2, size_type __n2) const
int compare (const _CharT *__s) const
int compare (size_type __pos, size_type __n1, const _CharT *__s, size_type __n2=npos) const

Static Public Attributes

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

Private Methods

_CharT* _M_data () const
_CharT* _M_data (_CharT *__p)
_Rep_M_rep () const
iterator _M_ibegin () const
iterator _M_iend () const
void _M_leak ()
iterator _M_check (size_type __pos) const
iterator _M_fold (size_type __pos, size_type __off) const
void _M_mutate (size_type __pos, size_type __len1, size_type __len2)
void _M_leak_hard ()
template<class _InputIterator> basic_string& _M_replace (iterator __i1, iterator __i2, _InputIterator __k1, _InputIterator __k2, input_iterator_tag)
template<class _FwdIterator> basic_string& _M_replace (iterator __i1, iterator __i2, _FwdIterator __k1, _FwdIterator __k2, forward_iterator_tag)

Private Attributes

_Alloc_hider _M_dataplus

Static Private Methods

template<class _Iterator> void _S_copy_chars (_CharT *__p, _Iterator __k1, _Iterator __k2)
void _S_copy_chars (_CharT *__p, iterator __k1, iterator __k2)
void _S_copy_chars (_CharT *__p, const_iterator __k1, const_iterator __k2)
void _S_copy_chars (_CharT *__p, _CharT *__k1, _CharT *__k2)
void _S_copy_chars (_CharT *__p, const _CharT *__k1, const _CharT *__k2)
_Rep_S_empty_rep ()
template<class _InIter> _CharT* _S_construct_aux (_InIter __beg, _InIter __end, const _Alloc &__a, __false_type)
template<class _InIter> _CharT* _S_construct_aux (_InIter __beg, _InIter __end, const _Alloc &__a, __true_type)
template<class _InIter> _CharT* _S_construct (_InIter __beg, _InIter __end, const _Alloc &__a)
template<class _InIter> _CharT* _S_construct (_InIter __beg, _InIter __end, const _Alloc &__a, input_iterator_tag)
template<class _FwdIter> _CharT* _S_construct (_FwdIter __end, _FwdIter __beg, const _Alloc &__a, forward_iterator_tag)
_CharT* _S_construct (size_type __req, _CharT __c, const _Alloc &__a)

Static Private Attributes

size_type _S_empty_rep_storage [(sizeof(_Rep)+sizeof(_CharT)+sizeof(size_type)-1)/sizeof(size_type)]

template<typename _CharT, typename _Traits, typename _Alloc> class std::basic_string


Member Typedef Documentation

template<typename _CharT, typename _Traits, typename _Alloc>
typedef _Alloc std::basic_string<_CharT, _Traits, _Alloc>::allocator_type
 

Definition at line 90 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
typedef __normal_iterator<const_pointer, basic_string<_CharT, _Traits, _Alloc>> std::basic_string<_CharT, _Traits, _Alloc>::const_iterator
 

Definition at line 98 of file basic_string.h.

Referenced by begin(), and end().

template<typename _CharT, typename _Traits, typename _Alloc>
typedef _Alloc::const_pointer std::basic_string<_CharT, _Traits, _Alloc>::const_pointer
 

Definition at line 96 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
typedef _Alloc::const_reference std::basic_string<_CharT, _Traits, _Alloc>::const_reference
 

Definition at line 94 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
typedef reverse_iterator<const_iterator> std::basic_string<_CharT, _Traits, _Alloc>::const_reverse_iterator
 

Definition at line 99 of file basic_string.h.

Referenced by rbegin(), and rend().

template<typename _CharT, typename _Traits, typename _Alloc>
typedef _Alloc::difference_type std::basic_string<_CharT, _Traits, _Alloc>::difference_type
 

Definition at line 92 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
typedef __normal_iterator<pointer, basic_string<_CharT, _Traits, _Alloc>> std::basic_string<_CharT, _Traits, _Alloc>::iterator
 

Definition at line 97 of file basic_string.h.

Referenced by _M_ibegin(), _M_iend(), begin(), and end().

template<typename _CharT, typename _Traits, typename _Alloc>
typedef _Alloc::pointer std::basic_string<_CharT, _Traits, _Alloc>::pointer
 

Definition at line 95 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
typedef _Alloc::reference std::basic_string<_CharT, _Traits, _Alloc>::reference
 

Definition at line 93 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
typedef reverse_iterator<iterator> std::basic_string<_CharT, _Traits, _Alloc>::reverse_iterator
 

Definition at line 100 of file basic_string.h.

Referenced by rbegin(), and rend().

template<typename _CharT, typename _Traits, typename _Alloc>
typedef _Alloc::size_type std::basic_string<_CharT, _Traits, _Alloc>::size_type
 

Definition at line 91 of file basic_string.h.

Referenced by insert(), and operator+=().

template<typename _CharT, typename _Traits, typename _Alloc>
typedef _Traits std::basic_string<_CharT, _Traits, _Alloc>::traits_type
 

Definition at line 88 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
typedef _Traits::char_type std::basic_string<_CharT, _Traits, _Alloc>::value_type
 

Definition at line 89 of file basic_string.h.


Constructor & Destructor Documentation

template<typename _CharT, typename _Traits, typename _Alloc>
std::basic_string< _CharT, _Traits, _Alloc >::basic_string<_CharT, _Traits, _Alloc> ( ) [inline]
 

Definition at line 853 of file basic_string.h.

Referenced by substr().

template<typename _CharT, typename _Traits, typename _Alloc>
std::basic_string<_CharT, _Traits, _Alloc>::basic_string<_CharT, _Traits, _Alloc> ( const _Alloc & __a ) [explicit]
 

template<typename _CharT, typename _Traits, typename _Alloc>
std::basic_string<_CharT, _Traits, _Alloc>::basic_string<_CharT, _Traits, _Alloc> ( const basic_string<_CharT, _Traits, _Alloc> & __str )
 

template<typename _CharT, typename _Traits, typename _Alloc>
std::basic_string<_CharT, _Traits, _Alloc>::basic_string<_CharT, _Traits, _Alloc> ( const basic_string<_CharT, _Traits, _Alloc> & __str,
size_type __pos,
size_type __n = npos )
 

template<typename _CharT, typename _Traits, typename _Alloc>
std::basic_string<_CharT, _Traits, _Alloc>::basic_string<_CharT, _Traits, _Alloc> ( const basic_string<_CharT, _Traits, _Alloc> & __str,
size_type __pos,
size_type __n,
const _Alloc & __a )
 

template<typename _CharT, typename _Traits, typename _Alloc>
std::basic_string<_CharT, _Traits, _Alloc>::basic_string<_CharT, _Traits, _Alloc> ( const _CharT * __s,
size_type __n,
const _Alloc & __a = _Alloc() )
 

template<typename _CharT, typename _Traits, typename _Alloc>
std::basic_string<_CharT, _Traits, _Alloc>::basic_string<_CharT, _Traits, _Alloc> ( const _CharT * __s,
const _Alloc & __a = _Alloc() )
 

template<typename _CharT, typename _Traits, typename _Alloc>
std::basic_string<_CharT, _Traits, _Alloc>::basic_string<_CharT, _Traits, _Alloc> ( size_type __n,
_CharT __c,
const _Alloc & __a = _Alloc() )
 

template<typename _CharT, typename _Traits, typename _Alloc>
template<class _InputIterator>
std::basic_string<_CharT, _Traits, _Alloc>::basic_string<_CharT, _Traits, _Alloc> ( _InputIterator __begin,
_InputIterator __end,
const _Alloc & __a = _Alloc() )
 

template<typename _CharT, typename _Traits, typename _Alloc>
std::basic_string<_CharT, _Traits, _Alloc>::~basic_string<_CharT, _Traits, _Alloc> ( ) [inline]
 

Definition at line 343 of file basic_string.h.


Member Function Documentation

template<typename _CharT, typename _Traits, typename _Alloc>
iterator std::basic_string<_CharT, _Traits, _Alloc>::_M_check ( size_type __pos ) const [inline, private]
 

Definition at line 264 of file basic_string.h.

Referenced by erase(), insert(), and replace().

template<typename _CharT, typename _Traits, typename _Alloc>
_CharT * std::basic_string<_CharT, _Traits, _Alloc>::_M_data ( _CharT * __p ) [inline, private]
 

Definition at line 241 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
_CharT * std::basic_string<_CharT, _Traits, _Alloc>::_M_data ( ) const [inline, private]
 

Definition at line 237 of file basic_string.h.

Referenced by _M_ibegin(), _M_iend(), _M_rep(), at(), begin(), c_str(), compare(), data(), end(), erase(), and operator[]().

template<typename _CharT, typename _Traits, typename _Alloc>
iterator std::basic_string<_CharT, _Traits, _Alloc>::_M_fold ( size_type __pos,
size_type __off ) const [inline, private]
 

Definition at line 273 of file basic_string.h.

Referenced by erase(), and replace().

template<typename _CharT, typename _Traits, typename _Alloc>
iterator std::basic_string<_CharT, _Traits, _Alloc>::_M_ibegin ( ) const [inline, private]
 

Definition at line 251 of file basic_string.h.

Referenced by _M_check(), _M_fold(), assign(), erase(), and insert().

template<typename _CharT, typename _Traits, typename _Alloc>
iterator std::basic_string<_CharT, _Traits, _Alloc>::_M_iend ( ) const [inline, private]
 

Definition at line 254 of file basic_string.h.

Referenced by append(), assign(), and push_back().

template<typename _CharT, typename _Traits, typename _Alloc>
void std::basic_string<_CharT, _Traits, _Alloc>::_M_leak ( ) [inline, private]
 

Definition at line 257 of file basic_string.h.

Referenced by at(), begin(), end(), and operator[]().

template<typename _CharT, typename _Traits, typename _Alloc>
void std::basic_string<_CharT, _Traits, _Alloc>::_M_leak_hard ( ) [private]
 

Referenced by _M_leak().

template<typename _CharT, typename _Traits, typename _Alloc>
void std::basic_string<_CharT, _Traits, _Alloc>::_M_mutate ( size_type __pos,
size_type __len1,
size_type __len2 ) [private]
 

Referenced by clear().

template<typename _CharT, typename _Traits, typename _Alloc>
_Rep * std::basic_string<_CharT, _Traits, _Alloc>::_M_rep ( ) const [inline, private]
 

Definition at line 245 of file basic_string.h.

Referenced by _M_leak(), capacity(), erase(), insert(), length(), size(), and ~basic_string().

template<typename _CharT, typename _Traits, typename _Alloc>
template<class _FwdIterator>
basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT, _Traits, _Alloc>::_M_replace ( iterator __i1,
iterator __i2,
_FwdIterator __k1,
_FwdIterator __k2,
forward_iterator_tag ) [private]
 

template<typename _CharT, typename _Traits, typename _Alloc>
template<class _InputIterator>
basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT, _Traits, _Alloc>::_M_replace ( iterator __i1,
iterator __i2,
_InputIterator __k1,
_InputIterator __k2,
input_iterator_tag ) [private]
 

Referenced by replace().

template<typename _CharT, typename _Traits, typename _Alloc>
_CharT* std::basic_string<_CharT, _Traits, _Alloc>::_S_construct ( size_type __req,
_CharT __c,
const _Alloc & __a ) [static, private]
 

template<typename _CharT, typename _Traits, typename _Alloc>
template<class _FwdIter>
_CharT* std::basic_string<_CharT, _Traits, _Alloc>::_S_construct ( _FwdIter __end,
_FwdIter __beg,
const _Alloc & __a,
forward_iterator_tag ) [static, private]
 

template<typename _CharT, typename _Traits, typename _Alloc>
template<class _InIter>
_CharT* std::basic_string<_CharT, _Traits, _Alloc>::_S_construct ( _InIter __beg,
_InIter __end,
const _Alloc & __a,
input_iterator_tag ) [static, private]
 

template<typename _CharT, typename _Traits, typename _Alloc>
template<class _InIter>
_CharT* std::basic_string<_CharT, _Traits, _Alloc>::_S_construct ( _InIter __beg,
_InIter __end,
const _Alloc & __a ) [inline, static, private]
 

Definition at line 681 of file basic_string.h.

Referenced by _S_construct_aux().

template<typename _CharT, typename _Traits, typename _Alloc>
template<class _InIter>
_CharT* std::basic_string<_CharT, _Traits, _Alloc>::_S_construct_aux ( _InIter __beg,
_InIter __end,
const _Alloc & __a,
__true_type ) [inline, static, private]
 

Definition at line 672 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
template<class _InIter>
_CharT* std::basic_string<_CharT, _Traits, _Alloc>::_S_construct_aux ( _InIter __beg,
_InIter __end,
const _Alloc & __a,
__false_type ) [inline, static, private]
 

Definition at line 663 of file basic_string.h.

Referenced by _S_construct().

template<typename _CharT, typename _Traits, typename _Alloc>
void std::basic_string<_CharT, _Traits, _Alloc>::_S_copy_chars ( _CharT * __p,
const _CharT * __k1,
const _CharT * __k2 ) [inline, static, private]
 

Definition at line 303 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
void std::basic_string<_CharT, _Traits, _Alloc>::_S_copy_chars ( _CharT * __p,
_CharT * __k1,
_CharT * __k2 ) [inline, static, private]
 

Definition at line 299 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
void std::basic_string<_CharT, _Traits, _Alloc>::_S_copy_chars ( _CharT * __p,
const_iterator __k1,
const_iterator __k2 ) [inline, static, private]
 

Definition at line 295 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
void std::basic_string<_CharT, _Traits, _Alloc>::_S_copy_chars ( _CharT * __p,
iterator __k1,
iterator __k2 ) [inline, static, private]
 

Definition at line 291 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
template<class _Iterator>
void std::basic_string<_CharT, _Traits, _Alloc>::_S_copy_chars ( _CharT * __p,
_Iterator __k1,
_Iterator __k2 ) [inline, static, private]
 

Definition at line 284 of file basic_string.h.

Referenced by _S_copy_chars().

template<typename _CharT, typename _Traits, typename _Alloc>
_Rep& std::basic_string<_CharT, _Traits, _Alloc>::_S_empty_rep ( ) [inline, static, private]
 

Definition at line 313 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
template<class _InputIterator>
basic_string<_CharT, _Traits, _Alloc> & std::basic_string<_CharT, _Traits, _Alloc>::append ( _InputIterator __first,
_InputIterator __last ) [inline]
 

Definition at line 480 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT, _Traits, _Alloc>::append ( size_type __n,
_CharT __c )
 

template<typename _CharT, typename _Traits, typename _Alloc>
basic_string<_CharT, _Traits, _Alloc> & std::basic_string<_CharT, _Traits, _Alloc>::append ( const _CharT * __s ) [inline]
 

Definition at line 472 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT, _Traits, _Alloc>::append ( const _CharT * __s,
size_type __n )
 

template<typename _CharT, typename _Traits, typename _Alloc>
basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT, _Traits, _Alloc>::append ( const basic_string<_CharT, _Traits, _Alloc> & __str,
size_type __pos,
size_type __n )
 

template<typename _CharT, typename _Traits, typename _Alloc>
basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT, _Traits, _Alloc>::append ( const basic_string<_CharT, _Traits, _Alloc> & __str )
 

Referenced by append(), and operator+=().

template<typename _CharT, typename _Traits, typename _Alloc>
template<class _InputIterator>
basic_string<_CharT, _Traits, _Alloc> & std::basic_string<_CharT, _Traits, _Alloc>::assign ( _InputIterator __first,
_InputIterator __last ) [inline]
 

Definition at line 510 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
basic_string<_CharT, _Traits, _Alloc> & std::basic_string<_CharT, _Traits, _Alloc>::assign ( size_type __n,
_CharT __c ) [inline]
 

Definition at line 505 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
basic_string<_CharT, _Traits, _Alloc> & std::basic_string<_CharT, _Traits, _Alloc>::assign ( const _CharT * __s ) [inline]
 

Definition at line 501 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
basic_string<_CharT, _Traits, _Alloc> & std::basic_string<_CharT, _Traits, _Alloc>::assign ( const _CharT * __s,
size_type __n ) [inline]
 

Definition at line 497 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
basic_string<_CharT, _Traits, _Alloc> & std::basic_string<_CharT, _Traits, _Alloc>::assign ( const basic_string<_CharT, _Traits, _Alloc> & __str,
size_type __pos,
size_type __n ) [inline]
 

Definition at line 491 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT, _Traits, _Alloc>::assign ( const basic_string<_CharT, _Traits, _Alloc> & __str )
 

Referenced by assign(), and operator=().

template<typename _CharT, typename _Traits, typename _Alloc>
reference std::basic_string<_CharT, _Traits, _Alloc>::at ( size_type __n ) [inline]
 

Definition at line 444 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
const_reference std::basic_string<_CharT, _Traits, _Alloc>::at ( size_type __n ) const [inline]
 

Definition at line 436 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
const_iterator std::basic_string<_CharT, _Traits, _Alloc>::begin ( ) const [inline]
 

Definition at line 364 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
iterator std::basic_string<_CharT, _Traits, _Alloc>::begin ( ) [inline]
 

Definition at line 357 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
const _CharT * std::basic_string<_CharT, _Traits, _Alloc>::c_str ( ) const [inline]
 

Definition at line 713 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
size_type std::basic_string<_CharT, _Traits, _Alloc>::capacity ( ) const [inline]
 

Definition at line 412 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
void std::basic_string<_CharT, _Traits, _Alloc>::clear ( ) [inline]
 

Definition at line 418 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
int std::basic_string<_CharT, _Traits, _Alloc>::compare ( size_type __pos,
size_type __n1,
const _CharT * __s,
size_type __n2 = npos ) const
 

template<typename _CharT, typename _Traits, typename _Alloc>
int std::basic_string<_CharT, _Traits, _Alloc>::compare ( const _CharT * __s ) const
 

template<typename _CharT, typename _Traits, typename _Alloc>
int std::basic_string<_CharT, _Traits, _Alloc>::compare ( size_type __pos1,
size_type __n1,
const basic_string<_CharT, _Traits, _Alloc> & __str,
size_type __pos2,
size_type __n2 ) const
 

template<typename _CharT, typename _Traits, typename _Alloc>
int std::basic_string<_CharT, _Traits, _Alloc>::compare ( size_type __pos,
size_type __n,
const basic_string<_CharT, _Traits, _Alloc> & __str ) const
 

template<typename _CharT, typename _Traits, typename _Alloc>
int std::basic_string<_CharT, _Traits, _Alloc>::compare ( const basic_string<_CharT, _Traits, _Alloc> & __str ) const [inline]
 

Definition at line 823 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
size_type std::basic_string<_CharT, _Traits, _Alloc>::copy ( _CharT * __s,
size_type __n,
size_type __pos = 0 ) const
 

template<typename _CharT, typename _Traits, typename _Alloc>
const _CharT * std::basic_string<_CharT, _Traits, _Alloc>::data ( ) const [inline]
 

Definition at line 722 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
bool std::basic_string<_CharT, _Traits, _Alloc>::empty ( ) const [inline]
 

Definition at line 421 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
const_iterator std::basic_string<_CharT, _Traits, _Alloc>::end ( ) const [inline]
 

Definition at line 375 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
iterator std::basic_string<_CharT, _Traits, _Alloc>::end ( ) [inline]
 

Definition at line 368 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
iterator std::basic_string<_CharT, _Traits, _Alloc>::erase ( iterator __first,
iterator __last ) [inline]
 

Definition at line 584 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
iterator std::basic_string<_CharT, _Traits, _Alloc>::erase ( iterator __position ) [inline]
 

Definition at line 575 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
basic_string<_CharT, _Traits, _Alloc> & std::basic_string<_CharT, _Traits, _Alloc>::erase ( size_type __pos = 0,
size_type __n = npos ) [inline]
 

Definition at line 568 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
size_type std::basic_string<_CharT, _Traits, _Alloc>::find ( _CharT __c,
size_type __pos = 0 ) const
 

template<typename _CharT, typename _Traits, typename _Alloc>
size_type std::basic_string<_CharT, _Traits, _Alloc>::find ( const _CharT * __s,
size_type __pos = 0 ) const [inline]
 

Definition at line 735 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
size_type std::basic_string<_CharT, _Traits, _Alloc>::find ( const basic_string<_CharT, _Traits, _Alloc> & __str,
size_type __pos = 0 ) const [inline]
 

Definition at line 731 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
size_type std::basic_string<_CharT, _Traits, _Alloc>::find ( const _CharT * __s,
size_type __pos,
size_type __n ) const
 

Referenced by find(), and find_first_of().

template<typename _CharT, typename _Traits, typename _Alloc>
size_type std::basic_string<_CharT, _Traits, _Alloc>::find_first_not_of ( _CharT __c,
size_type __pos = 0 ) const
 

template<typename _CharT, typename _Traits, typename _Alloc>
size_type std::basic_string<_CharT, _Traits, _Alloc>::find_first_not_of ( const _CharT * __s,
size_type __pos = 0 ) const [inline]
 

Definition at line 794 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
size_type std::basic_string<_CharT, _Traits, _Alloc>::find_first_not_of ( const _CharT * __s,
size_type __pos,
size_type __n ) const
 

template<typename _CharT, typename _Traits, typename _Alloc>
size_type std::basic_string<_CharT, _Traits, _Alloc>::find_first_not_of ( const basic_string<_CharT, _Traits, _Alloc> & __str,
size_type __pos = 0 ) const [inline]
 

Definition at line 786 of file basic_string.h.

Referenced by find_first_not_of().

template<typename _CharT, typename _Traits, typename _Alloc>
size_type std::basic_string<_CharT, _Traits, _Alloc>::find_first_of ( _CharT __c,
size_type __pos = 0 ) const [inline]
 

Definition at line 767 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
size_type std::basic_string<_CharT, _Traits, _Alloc>::find_first_of ( const _CharT * __s,
size_type __pos = 0 ) const [inline]
 

Definition at line 763 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
size_type std::basic_string<_CharT, _Traits, _Alloc>::find_first_of ( const _CharT * __s,
size_type __pos,
size_type __n ) const
 

template<typename _CharT, typename _Traits, typename _Alloc>
size_type std::basic_string<_CharT, _Traits, _Alloc>::find_first_of ( const basic_string<_CharT, _Traits, _Alloc> & __str,
size_type __pos = 0 ) const [inline]
 

Definition at line 756 of file basic_string.h.

Referenced by find_first_of().

template<typename _CharT, typename _Traits, typename _Alloc>
size_type std::basic_string<_CharT, _Traits, _Alloc>::find_last_not_of ( _CharT __c,
size_type __pos = npos ) const
 

template<typename _CharT, typename _Traits, typename _Alloc>
size_type std::basic_string<_CharT, _Traits, _Alloc>::find_last_not_of ( const _CharT * __s,
size_type __pos = npos ) const [inline]
 

Definition at line 808 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
size_type std::basic_string<_CharT, _Traits, _Alloc>::find_last_not_of ( const _CharT * __s,
size_type __pos,
size_type __n ) const
 

template<typename _CharT, typename _Traits, typename _Alloc>
size_type std::basic_string<_CharT, _Traits, _Alloc>::find_last_not_of ( const basic_string<_CharT, _Traits, _Alloc> & __str,
size_type __pos = npos ) const [inline]
 

Definition at line 801 of file basic_string.h.

Referenced by find_last_not_of().

template<typename _CharT, typename _Traits, typename _Alloc>
size_type std::basic_string<_CharT, _Traits, _Alloc>::find_last_of ( _CharT __c,
size_type __pos = npos ) const [inline]
 

Definition at line 782 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
size_type std::basic_string<_CharT, _Traits, _Alloc>::find_last_of ( const _CharT * __s,
size_type __pos = npos ) const [inline]
 

Definition at line 778 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
size_type std::basic_string<_CharT, _Traits, _Alloc>::find_last_of ( const _CharT * __s,
size_type __pos,
size_type __n ) const
 

template<typename _CharT, typename _Traits, typename _Alloc>
size_type std::basic_string<_CharT, _Traits, _Alloc>::find_last_of ( const basic_string<_CharT, _Traits, _Alloc> & __str,
size_type __pos = npos ) const [inline]
 

Definition at line 771 of file basic_string.h.

Referenced by find_last_of().

template<typename _CharT, typename _Traits, typename _Alloc>
allocator_type std::basic_string<_CharT, _Traits, _Alloc>::get_allocator ( ) const [inline]
 

Definition at line 725 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
iterator std::basic_string<_CharT, _Traits, _Alloc>::insert ( iterator __p,
_CharT __c = _CharT() ) [inline]
 

Definition at line 559 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
basic_string<_CharT, _Traits, _Alloc> & std::basic_string<_CharT, _Traits, _Alloc>::insert ( size_type __pos,
size_type __n,
_CharT __c ) [inline]
 

Definition at line 552 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
basic_string<_CharT, _Traits, _Alloc> & std::basic_string<_CharT, _Traits, _Alloc>::insert ( size_type __pos,
const _CharT * __s ) [inline]
 

Definition at line 548 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
basic_string<_CharT, _Traits, _Alloc> & std::basic_string<_CharT, _Traits, _Alloc>::insert ( size_type __pos,
const _CharT * __s,
size_type __n ) [inline]
 

Definition at line 540 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
basic_string<_CharT, _Traits, _Alloc> & std::basic_string<_CharT, _Traits, _Alloc>::insert ( size_type __pos1,
const basic_string<_CharT, _Traits, _Alloc> & __str,
size_type __pos2,
size_type __n ) [inline]
 

Definition at line 530 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
basic_string<_CharT, _Traits, _Alloc> & std::basic_string<_CharT, _Traits, _Alloc>::insert ( size_type __pos1,
const basic_string<_CharT, _Traits, _Alloc> & __str ) [inline]
 

Definition at line 522 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
template<class _InputIterator>
void std::basic_string<_CharT, _Traits, _Alloc>::insert ( iterator __p,
_InputIterator __beg,
_InputIterator __end ) [inline]
 

Definition at line 518 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
void std::basic_string<_CharT, _Traits, _Alloc>::insert ( iterator __p,
size_type __n,
_CharT __c ) [inline]
 

Definition at line 514 of file basic_string.h.

Referenced by insert().

template<typename _CharT, typename _Traits, typename _Alloc>
size_type std::basic_string<_CharT, _Traits, _Alloc>::length ( ) const [inline]
 

Definition at line 400 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
size_type std::basic_string<_CharT, _Traits, _Alloc>::max_size ( ) const [inline]
 

Definition at line 403 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
basic_string<_CharT, _Traits, _Alloc> & std::basic_string<_CharT, _Traits, _Alloc>::operator+= ( _CharT __c ) [inline]
 

Definition at line 460 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
basic_string<_CharT, _Traits, _Alloc> & std::basic_string<_CharT, _Traits, _Alloc>::operator+= ( const _CharT * __s ) [inline]
 

Definition at line 457 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
basic_string<_CharT, _Traits, _Alloc> & std::basic_string<_CharT, _Traits, _Alloc>::operator+= ( const basic_string<_CharT, _Traits, _Alloc> & __str ) [inline]
 

Definition at line 454 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
basic_string<_CharT, _Traits, _Alloc> & std::basic_string<_CharT, _Traits, _Alloc>::operator= ( _CharT __c ) [inline]
 

Definition at line 353 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
basic_string<_CharT, _Traits, _Alloc> & std::basic_string<_CharT, _Traits, _Alloc>::operator= ( const _CharT * __s ) [inline]
 

Definition at line 350 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
basic_string<_CharT, _Traits, _Alloc> & std::basic_string<_CharT, _Traits, _Alloc>::operator= ( const basic_string<_CharT, _Traits, _Alloc> & __str ) [inline]
 

Definition at line 347 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
reference std::basic_string<_CharT, _Traits, _Alloc>::operator[] ( size_type __pos ) [inline]
 

Definition at line 429 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
const_reference std::basic_string<_CharT, _Traits, _Alloc>::operator[] ( size_type __pos ) const [inline]
 

Definition at line 425 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
void std::basic_string<_CharT, _Traits, _Alloc>::push_back ( _CharT __c ) [inline]
 

Definition at line 484 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
const_reverse_iterator std::basic_string<_CharT, _Traits, _Alloc>::rbegin ( ) const [inline]
 

Definition at line 383 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
reverse_iterator std::basic_string<_CharT, _Traits, _Alloc>::rbegin ( ) [inline]
 

Definition at line 379 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
const_reverse_iterator std::basic_string<_CharT, _Traits, _Alloc>::rend ( ) const [inline]
 

Definition at line 391 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
reverse_iterator std::basic_string<_CharT, _Traits, _Alloc>::rend ( ) [inline]
 

Definition at line 387 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
template<class _InputIterator>
basic_string<_CharT, _Traits, _Alloc> & std::basic_string<_CharT, _Traits, _Alloc>::replace ( iterator __i1,
iterator __i2,
_InputIterator __k1,
_InputIterator __k2 ) [inline]
 

Definition at line 643 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT, _Traits, _Alloc>::replace ( iterator __i1,
iterator __i2,
size_type __n,
_CharT __c )
 

template<typename _CharT, typename _Traits, typename _Alloc>
basic_string<_CharT, _Traits, _Alloc> & std::basic_string<_CharT, _Traits, _Alloc>::replace ( iterator __i1,
iterator __i2,
const _CharT * __s ) [inline]
 

Definition at line 634 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
basic_string<_CharT, _Traits, _Alloc> & std::basic_string<_CharT, _Traits, _Alloc>::replace ( iterator __i1,
iterator __i2,
const _CharT * __s,
size_type __n ) [inline]
 

Definition at line 629 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
basic_string<_CharT, _Traits, _Alloc> & std::basic_string<_CharT, _Traits, _Alloc>::replace ( iterator __i1,
iterator __i2,
const basic_string<_CharT, _Traits, _Alloc> & __str ) [inline]
 

Definition at line 625 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
basic_string<_CharT, _Traits, _Alloc> & std::basic_string<_CharT, _Traits, _Alloc>::replace ( size_type __pos,
size_type __n1,
size_type __n2,
_CharT __c ) [inline]
 

Definition at line 619 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
basic_string<_CharT, _Traits, _Alloc> & std::basic_string<_CharT, _Traits, _Alloc>::replace ( size_type __pos,
size_type __n1,
const _CharT * __s ) [inline]
 

Definition at line 612 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
basic_string<_CharT, _Traits, _Alloc> & std::basic_string<_CharT, _Traits, _Alloc>::replace ( size_type __pos,
size_type __n1,
const _CharT * __s,
size_type __n2 ) [inline]
 

Definition at line 604 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
basic_string<_CharT, _Traits, _Alloc>& std::basic_string<_CharT, _Traits, _Alloc>::replace ( size_type __pos1,
size_type __n1,
const basic_string<_CharT, _Traits, _Alloc> & __str,
size_type __pos2,
size_type __n2 )
 

template<typename _CharT, typename _Traits, typename _Alloc>
basic_string<_CharT, _Traits, _Alloc> & std::basic_string<_CharT, _Traits, _Alloc>::replace ( size_type __pos,
size_type __n,
const basic_string<_CharT, _Traits, _Alloc> & __str ) [inline]
 

Definition at line 593 of file basic_string.h.

Referenced by append(), assign(), erase(), insert(), push_back(), and replace().

template<typename _CharT, typename _Traits, typename _Alloc>
void std::basic_string<_CharT, _Traits, _Alloc>::reserve ( size_type __res_arg = 0 )
 

template<typename _CharT, typename _Traits, typename _Alloc>
void std::basic_string<_CharT, _Traits, _Alloc>::resize ( size_type __n ) [inline]
 

Definition at line 409 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
void std::basic_string<_CharT, _Traits, _Alloc>::resize ( size_type __n,
_CharT __c )
 

Referenced by resize().

template<typename _CharT, typename _Traits, typename _Alloc>
size_type std::basic_string<_CharT, _Traits, _Alloc>::rfind ( _CharT __c,
size_type __pos = npos ) const
 

template<typename _CharT, typename _Traits, typename _Alloc>
size_type std::basic_string<_CharT, _Traits, _Alloc>::rfind ( const _CharT * __s,
size_type __pos = npos ) const [inline]
 

Definition at line 749 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
size_type std::basic_string<_CharT, _Traits, _Alloc>::rfind ( const _CharT * __s,
size_type __pos,
size_type __n ) const
 

template<typename _CharT, typename _Traits, typename _Alloc>
size_type std::basic_string<_CharT, _Traits, _Alloc>::rfind ( const basic_string<_CharT, _Traits, _Alloc> & __str,
size_type __pos = npos ) const [inline]
 

Definition at line 742 of file basic_string.h.

Referenced by find_last_of(), and rfind().

template<typename _CharT, typename _Traits, typename _Alloc>
size_type std::basic_string<_CharT, _Traits, _Alloc>::size ( ) const [inline]
 

Definition at line 397 of file basic_string.h.

Referenced by _M_check(), _M_fold(), _M_iend(), at(), c_str(), compare(), empty(), end(), and substr().

template<typename _CharT, typename _Traits, typename _Alloc>
basic_string<_CharT, _Traits, _Alloc> std::basic_string<_CharT, _Traits, _Alloc>::substr ( size_type __pos = 0,
size_type __n = npos ) const [inline]
 

Definition at line 815 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
void std::basic_string<_CharT, _Traits, _Alloc>::swap ( basic_string< _CharT, _Traits, _Alloc > & __s )
 


Member Data Documentation

template<typename _CharT, typename _Traits, typename _Alloc>
_Alloc_hider std::basic_string<_CharT, _Traits, _Alloc>::_M_dataplus [private]
 

Definition at line 230 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
size_type std::basic_string<_CharT, _Traits, _Alloc>::_S_empty_rep_storage[(sizeof(_Rep) + sizeof(_CharT) + sizeof(size_type) - 1)/sizeof(size_type)] [static, private]
 

Definition at line 234 of file basic_string.h.

template<typename _CharT, typename _Traits, typename _Alloc>
const size_type std::basic_string<_CharT, _Traits, _Alloc>::npos = static_cast<size_type>(-1) [static]
 

Definition at line 226 of file basic_string.h.


The documentation for this class was generated from the following file:
Generated at Tue May 1 16:30:07 2001 for libstdc++-v3 by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001