|
|
Whole document tree
Templatestd::basic_string class Reference
Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members
std::basic_string< _CharT, _Traits, _Alloc > Class Template Reference#include <basic_string.h>
Inheritance diagram for std::basic_string:
[legend]Collaboration diagram for std::basic_string< _CharT, _Traits, _Alloc >:
[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_iterator > | const_reverse_iterator |
typedef reverse_iterator<
iterator > | reverse_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 |
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) |
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) |
Private Attributes |
_Alloc_hider | _M_dataplus |
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< _CharT, _Traits, _Alloc >
Member Typedef Documentation
template<typename _CharT, typename _Traits, typename _Alloc> |
typedef _Alloc std::basic_string< _CharT, _Traits, _Alloc >::allocator_type
|
|
template<typename _CharT, typename _Traits, typename _Alloc> |
typedef __normal_iterator<const_pointer, basic_string> std::basic_string< _CharT, _Traits, _Alloc >::const_iterator
|
|
template<typename _CharT, typename _Traits, typename _Alloc> |
typedef _Alloc::const_pointer std::basic_string< _CharT, _Traits, _Alloc >::const_pointer
|
|
template<typename _CharT, typename _Traits, typename _Alloc> |
typedef _Alloc::const_reference std::basic_string< _CharT, _Traits, _Alloc >::const_reference
|
|
template<typename _CharT, typename _Traits, typename _Alloc> |
typedef reverse_iterator<const_iterator> std::basic_string< _CharT, _Traits, _Alloc >::const_reverse_iterator
|
|
template<typename _CharT, typename _Traits, typename _Alloc> |
typedef _Alloc::difference_type std::basic_string< _CharT, _Traits, _Alloc >::difference_type
|
|
template<typename _CharT, typename _Traits, typename _Alloc> |
typedef __normal_iterator<pointer, basic_string> std::basic_string< _CharT, _Traits, _Alloc >::iterator
|
|
template<typename _CharT, typename _Traits, typename _Alloc> |
typedef _Alloc::pointer std::basic_string< _CharT, _Traits, _Alloc >::pointer
|
|
template<typename _CharT, typename _Traits, typename _Alloc> |
typedef _Alloc::reference std::basic_string< _CharT, _Traits, _Alloc >::reference
|
|
template<typename _CharT, typename _Traits, typename _Alloc> |
typedef reverse_iterator<iterator> std::basic_string< _CharT, _Traits, _Alloc >::reverse_iterator
|
|
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 std::basic_string< char >::_M_check(), std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_clone(), std::basic_string< char >::_M_fold(), std::basic_string< _CharT, _Traits, _Alloc >::_M_mutate(), std::basic_string< _CharT, _Traits, _Alloc >::_M_replace(), std::basic_string< _CharT, _Traits, _Alloc >::_S_construct(), std::basic_string< _CharT, _Traits, _Alloc >::append(), std::basic_string< char >::assign(), std::basic_string< char >::at(), std::basic_string< char >::c_str(), std::basic_string< _CharT, _Traits, _Alloc >::compare(), std::basic_string< char >::compare(), std::basic_string< char >::erase(), std::basic_string< _CharT, _Traits, _Alloc >::find(), std::basic_string< char >::find(), std::basic_string< char >::find_first_not_of(), std::basic_string< char >::find_first_of(), std::basic_string< _CharT, _Traits, _Alloc >::find_last_not_of(), std::basic_string< char >::find_last_not_of(), std::basic_string< _CharT, _Traits, _Alloc >::find_last_of(), std::basic_string< char >::find_last_of(), std::basic_string< char >::insert(), std::basic_string< char >::operator+=(), std::basic_string< char >::operator[](), std::basic_string< _CharT, _Traits, _Alloc >::replace(), std::basic_string< char >::replace(), std::basic_string< _CharT, _Traits, _Alloc >::resize(), std::basic_string< char >::resize(), std::basic_string< _CharT, _Traits, _Alloc >::rfind(), std::basic_string< char >::rfind(), and std::basic_string< char >::substr(). |
template<typename _CharT, typename _Traits, typename _Alloc> |
typedef _Traits std::basic_string< _CharT, _Traits, _Alloc >::traits_type
|
|
template<typename _CharT, typename _Traits, typename _Alloc> |
typedef _Traits::char_type std::basic_string< _CharT, _Traits, _Alloc >::value_type
|
|
Constructor & Destructor Documentation
template<typename _CharT, typename _Traits, typename _Alloc> |
std::basic_string< _CharT, _Traits, _Alloc >::basic_string |
( |
|
) |
[inline] |
|
template<typename _CharT, typename _Traits, typename _Alloc> |
std::basic_string< _CharT, _Traits, _Alloc >::basic_string |
( |
const _Alloc & |
__a |
) |
[explicit] |
|
template<typename _CharT, typename _Traits, typename _Alloc> |
std::basic_string< _CharT, _Traits, _Alloc >::basic_string |
( |
const basic_string< _CharT, _Traits, _Alloc > & |
__str |
) |
|
|
template<typename _CharT, typename _Traits, typename _Alloc> |
std::basic_string< _CharT, _Traits, _Alloc >::basic_string |
( |
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 |
( |
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 |
( |
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 |
( |
const _CharT * |
__s, |
|
|
const _Alloc & |
__a = _Alloc() |
|
) |
|
|
template<typename _CharT, typename _Traits, typename _Alloc> |
std::basic_string< _CharT, _Traits, _Alloc >::basic_string |
( |
size_type |
__n, |
|
|
_CharT |
__c, |
|
|
const _Alloc & |
__a = _Alloc() |
|
) |
|
|
template<typename _CharT, typename _Traits, typename _Alloc> |
template<typename _InputIter> |
std::basic_string< _CharT, _Traits, _Alloc >::basic_string |
( |
_InputIterator |
__begin, |
|
|
_InputIterator |
__end, |
|
|
const _Alloc & |
__a = _Alloc() |
|
) |
|
|
template<typename _CharT, typename _Traits, typename _Alloc> |
std::basic_string< _CharT, _Traits, _Alloc >::~basic_string |
( |
|
) |
[inline] |
|
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] |
|
template<typename _CharT, typename _Traits, typename _Alloc> |
_CharT* std::basic_string< _CharT, _Traits, _Alloc >::_M_data |
( |
_CharT * |
__p |
) |
[inline, private] |
|
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 std::basic_string< char >::_M_ibegin(), std::basic_string< char >::_M_iend(), std::basic_string< _CharT, _Traits, _Alloc >::_M_mutate(), std::basic_string< char >::_M_rep(), std::basic_string< _CharT, _Traits, _Alloc >::_M_replace(), std::basic_string< _CharT, _Traits, _Alloc >::assign(), std::basic_string< char >::at(), std::basic_string< char >::begin(), std::basic_string< char >::c_str(), std::basic_string< _CharT, _Traits, _Alloc >::compare(), std::basic_string< char >::compare(), std::basic_string< _CharT, _Traits, _Alloc >::copy(), std::basic_string< char >::data(), std::basic_string< char >::end(), std::basic_string< char >::erase(), std::basic_string< _CharT, _Traits, _Alloc >::find(), std::basic_string< _CharT, _Traits, _Alloc >::find_first_not_of(), std::basic_string< _CharT, _Traits, _Alloc >::find_first_of(), std::basic_string< _CharT, _Traits, _Alloc >::find_last_not_of(), std::basic_string< _CharT, _Traits, _Alloc >::find_last_of(), std::basic_string< char >::operator[](), std::basic_string< _CharT, _Traits, _Alloc >::replace(), std::basic_string< _CharT, _Traits, _Alloc >::reserve(), std::basic_string< _CharT, _Traits, _Alloc >::rfind(), and std::basic_string< _CharT, _Traits, _Alloc >::swap(). |
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] |
|
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 std::basic_string< char >::_M_check(), std::basic_string< char >::_M_fold(), std::basic_string< _CharT, _Traits, _Alloc >::_M_replace(), std::basic_string< _CharT, _Traits, _Alloc >::append(), std::basic_string< char >::assign(), std::basic_string< char >::erase(), std::basic_string< char >::insert(), std::basic_string< _CharT, _Traits, _Alloc >::replace(), and std::basic_string< _CharT, _Traits, _Alloc >::swap(). |
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 std::basic_string< _CharT, _Traits, _Alloc >::_M_replace(), std::basic_string< _CharT, _Traits, _Alloc >::append(), std::basic_string< char >::append(), std::basic_string< char >::assign(), std::basic_string< char >::insert(), std::basic_string< char >::push_back(), and std::basic_string< _CharT, _Traits, _Alloc >::swap(). |
template<typename _CharT, typename _Traits, typename _Alloc> |
void std::basic_string< _CharT, _Traits, _Alloc >::_M_leak |
( |
|
) |
[inline, private] |
|
template<typename _CharT, typename _Traits, typename _Alloc> |
void std::basic_string< _CharT, _Traits, _Alloc >::_M_leak_hard |
( |
|
) |
[private] |
|
|
Definition at line 261 of file basic_string.tcc.
References std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_is_shared(), std::basic_string< _CharT, _Traits, _Alloc >::_M_mutate(), std::basic_string< _CharT, _Traits, _Alloc >::_M_rep(), and std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_set_leaked().
Referenced by std::basic_string< char >::_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] |
|
|
Definition at line 271 of file basic_string.tcc.
References __throw_exception_again, std::basic_string< _CharT, _Traits, _Alloc >::_M_data(), std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_dispose(), std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_is_shared(), std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_length, std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_refdata(), std::basic_string< _CharT, _Traits, _Alloc >::_M_rep(), std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_set_sharable(), std::basic_string< _CharT, _Traits, _Alloc >::allocator_type, std::basic_string< _CharT, _Traits, _Alloc >::capacity(), std::basic_string< _CharT, _Traits, _Alloc >::get_allocator(), std::basic_string< _CharT, _Traits, _Alloc >::size(), and std::basic_string< _CharT, _Traits, _Alloc >::size_type.
Referenced by std::basic_string< _CharT, _Traits, _Alloc >::_M_leak_hard(), std::basic_string< _CharT, _Traits, _Alloc >::_M_replace(), std::basic_string< char >::clear(), and std::basic_string< _CharT, _Traits, _Alloc >::replace(). |
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 std::basic_string< char >::_M_leak(), std::basic_string< _CharT, _Traits, _Alloc >::_M_leak_hard(), std::basic_string< _CharT, _Traits, _Alloc >::_M_mutate(), std::basic_string< _CharT, _Traits, _Alloc >::assign(), std::basic_string< char >::capacity(), std::basic_string< char >::erase(), std::basic_string< char >::insert(), std::basic_string< char >::length(), std::basic_string< _CharT, _Traits, _Alloc >::reserve(), std::basic_string< char >::size(), std::basic_string< _CharT, _Traits, _Alloc >::swap(), and std::basic_string< char >::~basic_string(). |
template<typename _CharT, typename _Traits, typename _Alloc> |
template<typename _ForwardIter> |
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] |
|
|
Definition at line 449 of file basic_string.tcc.
References std::__throw_length_error(), std::basic_string< _CharT, _Traits, _Alloc >::_M_data(), std::basic_string< _CharT, _Traits, _Alloc >::_M_ibegin(), std::basic_string< _CharT, _Traits, _Alloc >::_M_mutate(), std::basic_string< _CharT, _Traits, _Alloc >::_S_copy_chars(), distance(), std::basic_string< _CharT, _Traits, _Alloc >::max_size(), and std::basic_string< _CharT, _Traits, _Alloc >::size_type. |
template<typename _CharT, typename _Traits, typename _Alloc> |
template<typename _InputIter> |
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] |
|
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] |
|
|
Definition at line 160 of file basic_string.tcc.
References __throw_exception_again, std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_destroy(), std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_length, std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_refcopy(), std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_refdata(), and std::basic_string< _CharT, _Traits, _Alloc >::_S_empty_rep(). |
template<typename _CharT, typename _Traits, typename _Alloc> |
template<class _InIter> |
_CharT * std::basic_string< _CharT, _Traits, _Alloc >::_S_construct |
( |
_FwdIter |
__end, |
|
|
_FwdIter |
__beg, |
|
|
const _Alloc & |
__a, |
|
|
forward_iterator_tag |
|
|
) |
[static, private] |
|
|
Definition at line 134 of file basic_string.tcc.
References __throw_exception_again, std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_destroy(), std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_length, std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_refcopy(), std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_refdata(), std::basic_string< _CharT, _Traits, _Alloc >::_S_copy_chars(), std::basic_string< _CharT, _Traits, _Alloc >::_S_empty_rep(), distance(), and std::basic_string< _CharT, _Traits, _Alloc >::size_type. |
template<typename _CharT, typename _Traits, typename _Alloc> |
template<typename _InIter> |
_CharT * std::basic_string< _CharT, _Traits, _Alloc >::_S_construct |
( |
_InIter |
__beg, |
|
|
_InIter |
__end, |
|
|
const _Alloc & |
__a, |
|
|
input_iterator_tag |
|
|
) |
[static, private] |
|
|
Definition at line 74 of file basic_string.tcc.
References __throw_exception_again, std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_capacity, std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_destroy(), std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_length, std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_refcopy(), std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_refdata(), std::basic_string< _CharT, _Traits, _Alloc >::_S_empty_rep(), and std::basic_string< _CharT, _Traits, _Alloc >::size_type. |
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] |
|
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] |
|
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] |
|
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] |
|
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] |
|
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] |
|
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] |
|
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] |
|
template<typename _CharT, typename _Traits, typename _Alloc> |
_Rep& std::basic_string< _CharT, _Traits, _Alloc >::_S_empty_rep |
( |
|
) |
[inline, static, private] |
|
template<typename _CharT, typename _Traits, typename _Alloc> |
template<class _InputIterator> |
basic_string& std::basic_string< _CharT, _Traits, _Alloc >::append |
( |
_InputIterator |
__first, |
|
|
_InputIterator |
__last |
|
) |
[inline] |
|
template<typename _CharT, typename _Traits, typename _Alloc> |
basic_string< _CharT, _Traits, _Alloc > & std::basic_string< _CharT, _Traits, _Alloc >::append |
( |
size_type |
__n, |
|
|
_CharT |
__c |
|
) |
|
|
|
Definition at line 523 of file basic_string.tcc.
References std::basic_string< _CharT, _Traits, _Alloc >::_M_iend(), std::basic_string< _CharT, _Traits, _Alloc >::capacity(), std::basic_string< _CharT, _Traits, _Alloc >::replace(), std::basic_string< _CharT, _Traits, _Alloc >::reserve(), std::basic_string< _CharT, _Traits, _Alloc >::size(), and std::basic_string< _CharT, _Traits, _Alloc >::size_type. |
template<typename _CharT, typename _Traits, typename _Alloc> |
basic_string& std::basic_string< _CharT, _Traits, _Alloc >::append |
( |
const _CharT * |
__s |
) |
[inline] |
|
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 |
|
) |
|
|
|
Definition at line 512 of file basic_string.tcc.
References std::basic_string< _CharT, _Traits, _Alloc >::_M_iend(), std::basic_string< _CharT, _Traits, _Alloc >::capacity(), std::basic_string< _CharT, _Traits, _Alloc >::replace(), std::basic_string< _CharT, _Traits, _Alloc >::reserve(), std::basic_string< _CharT, _Traits, _Alloc >::size(), and std::basic_string< _CharT, _Traits, _Alloc >::size_type. |
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 |
|
) |
|
|
|
Definition at line 497 of file basic_string.tcc.
References std::basic_string< _CharT, _Traits, _Alloc >::_M_check(), std::basic_string< _CharT, _Traits, _Alloc >::_M_fold(), std::basic_string< _CharT, _Traits, _Alloc >::_M_iend(), std::basic_string< _CharT, _Traits, _Alloc >::capacity(), std::min(), std::basic_string< _CharT, _Traits, _Alloc >::replace(), std::basic_string< _CharT, _Traits, _Alloc >::reserve(), std::basic_string< _CharT, _Traits, _Alloc >::size(), and std::basic_string< _CharT, _Traits, _Alloc >::size_type. |
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 |
) |
|
|
|
Definition at line 481 of file basic_string.tcc.
References std::basic_string< _CharT, _Traits, _Alloc >::_M_ibegin(), std::basic_string< _CharT, _Traits, _Alloc >::_M_iend(), std::basic_string< _CharT, _Traits, _Alloc >::capacity(), std::basic_string< _CharT, _Traits, _Alloc >::replace(), std::basic_string< _CharT, _Traits, _Alloc >::reserve(), std::basic_string< _CharT, _Traits, _Alloc >::size(), and std::basic_string< _CharT, _Traits, _Alloc >::size_type.
Referenced by std::basic_string< char >::append(), std::operator+(), std::basic_string< char >::operator+=(), and std::basic_string< _CharT, _Traits, _Alloc >::resize(). |
template<typename _CharT, typename _Traits, typename _Alloc> |
template<class _InputIterator> |
basic_string& std::basic_string< _CharT, _Traits, _Alloc >::assign |
( |
_InputIterator |
__first, |
|
|
_InputIterator |
__last |
|
) |
[inline] |
|
template<typename _CharT, typename _Traits, typename _Alloc> |
basic_string& std::basic_string< _CharT, _Traits, _Alloc >::assign |
( |
size_type |
__n, |
|
|
_CharT |
__c |
|
) |
[inline] |
|
template<typename _CharT, typename _Traits, typename _Alloc> |
basic_string& std::basic_string< _CharT, _Traits, _Alloc >::assign |
( |
const _CharT * |
__s |
) |
[inline] |
|
template<typename _CharT, typename _Traits, typename _Alloc> |
basic_string& std::basic_string< _CharT, _Traits, _Alloc >::assign |
( |
const _CharT * |
__s, |
|
|
size_type |
__n |
|
) |
[inline] |
|
template<typename _CharT, typename _Traits, typename _Alloc> |
basic_string& std::basic_string< _CharT, _Traits, _Alloc >::assign |
( |
const basic_string< _CharT, _Traits, _Alloc > & |
__str, |
|
|
size_type |
__pos, |
|
|
size_type |
__n |
|
) |
[inline] |
|
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 |
) |
|
|
|
Definition at line 237 of file basic_string.tcc.
References std::basic_string< _CharT, _Traits, _Alloc >::_M_data(), std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_dispose(), std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_grab(), std::basic_string< _CharT, _Traits, _Alloc >::_M_rep(), std::basic_string< _CharT, _Traits, _Alloc >::allocator_type, and std::basic_string< _CharT, _Traits, _Alloc >::get_allocator().
Referenced by std::bitset< _Nb >::_M_copy_to_string(), std::basic_string< char >::assign(), and std::basic_string< char >::operator=(). |
template<typename _CharT, typename _Traits, typename _Alloc> |
reference std::basic_string< _CharT, _Traits, _Alloc >::at |
( |
size_type |
__n |
) |
[inline] |
|
template<typename _CharT, typename _Traits, typename _Alloc> |
const_reference std::basic_string< _CharT, _Traits, _Alloc >::at |
( |
size_type |
__n |
) |
const [inline] |
|
template<typename _CharT, typename _Traits, typename _Alloc> |
const_iterator std::basic_string< _CharT, _Traits, _Alloc >::begin |
( |
|
) |
const [inline] |
|
template<typename _CharT, typename _Traits, typename _Alloc> |
iterator std::basic_string< _CharT, _Traits, _Alloc >::begin |
( |
|
) |
[inline] |
|
template<typename _CharT, typename _Traits, typename _Alloc> |
const _CharT* std::basic_string< _CharT, _Traits, _Alloc >::c_str |
( |
|
) |
const [inline] |
|
template<typename _CharT, typename _Traits, typename _Alloc> |
size_type std::basic_string< _CharT, _Traits, _Alloc >::capacity |
( |
|
) |
const [inline] |
|
template<typename _CharT, typename _Traits, typename _Alloc> |
void std::basic_string< _CharT, _Traits, _Alloc >::clear |
( |
|
) |
[inline] |
|
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 |
|
|
Definition at line 783 of file basic_string.tcc.
References std::__throw_out_of_range(), std::basic_string< _CharT, _Traits, _Alloc >::_M_data(), std::basic_string< _CharT, _Traits, _Alloc >::data(), std::min(), std::basic_string< _CharT, _Traits, _Alloc >::size(), and std::basic_string< _CharT, _Traits, _Alloc >::size_type. |
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 |
|
|
Definition at line 765 of file basic_string.tcc.
References std::__throw_out_of_range(), std::basic_string< _CharT, _Traits, _Alloc >::_M_data(), std::basic_string< _CharT, _Traits, _Alloc >::data(), std::min(), std::basic_string< _CharT, _Traits, _Alloc >::size(), and std::basic_string< _CharT, _Traits, _Alloc >::size_type. |
template<typename _CharT, typename _Traits, typename _Alloc> |
int std::basic_string< _CharT, _Traits, _Alloc >::compare |
( |
const basic_string< _CharT, _Traits, _Alloc > & |
__str |
) |
const [inline] |
|
template<typename _CharT, typename _Traits, typename _Alloc> |
basic_string< _CharT, _Traits, _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.
Referenced by std::_S_string_copy(), std::basic_string< _CharT, _Traits, _Alloc >::compare(), std::basic_string< char >::compare(), std::basic_string< char >::find(), std::basic_string< char >::find_first_not_of(), std::basic_string< char >::find_first_of(), std::basic_string< char >::find_last_not_of(), std::basic_string< char >::find_last_of(), std::locale::operator()(), and std::basic_string< char >::rfind(). |
template<typename _CharT, typename _Traits, typename _Alloc> |
bool std::basic_string< _CharT, _Traits, _Alloc >::empty |
( |
|
) |
const [inline] |
|
template<typename _CharT, typename _Traits, typename _Alloc> |
const_iterator std::basic_string< _CharT, _Traits, _Alloc >::end |
( |
|
) |
const [inline] |
|
template<typename _CharT, typename _Traits, typename _Alloc> |
iterator std::basic_string< _CharT, _Traits, _Alloc >::end |
( |
|
) |
[inline] |
|
template<typename _CharT, typename _Traits, typename _Alloc> |
iterator std::basic_string< _CharT, _Traits, _Alloc >::erase |
( |
iterator |
__first, |
|
|
iterator |
__last |
|
) |
[inline] |
|
template<typename _CharT, typename _Traits, typename _Alloc> |
iterator std::basic_string< _CharT, _Traits, _Alloc >::erase |
( |
iterator |
__position |
) |
[inline] |
|
template<typename _CharT, typename _Traits, typename _Alloc> |
basic_string& std::basic_string< _CharT, _Traits, _Alloc >::erase |
( |
size_type |
__pos = 0, |
|
|
size_type |
__n = npos |
|
) |
[inline] |
|
template<typename _CharT, typename _Traits, typename _Alloc> |
basic_string< _CharT, _Traits, _Alloc >::size_type std::basic_string< _CharT, _Traits, _Alloc >::find |
( |
_CharT |
__c, |
|
|
size_type |
__pos = 0 |
|
) |
const |
|
|
Definition at line 609 of file basic_string.tcc.
References std::basic_string< _CharT, _Traits, _Alloc >::_M_data(), std::basic_string< _CharT, _Traits, _Alloc >::npos, std::basic_string< _CharT, _Traits, _Alloc >::size(), and std::basic_string< _CharT, _Traits, _Alloc >::size_type. |
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] |
|
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] |
|
template<typename _CharT, typename _Traits, typename _Alloc> |
basic_string< _CharT, _Traits, _Alloc >::size_type std::basic_string< _CharT, _Traits, _Alloc >::find |
( |
const _CharT * |
__s, |
|
|
size_type |
__pos, |
|
|
size_type |
__n |
|
) |
const |
|
|
Definition at line 595 of file basic_string.tcc.
References std::basic_string< _CharT, _Traits, _Alloc >::_M_data(), std::basic_string< _CharT, _Traits, _Alloc >::npos, std::basic_string< _CharT, _Traits, _Alloc >::size(), and std::basic_string< _CharT, _Traits, _Alloc >::size_type.
Referenced by std::basic_string< char >::find(), and std::basic_string< char >::find_first_of(). |
template<typename _CharT, typename _Traits, typename _Alloc> |
basic_string< _CharT, _Traits, _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] |
|
template<typename _CharT, typename _Traits, typename _Alloc> |
basic_string< _CharT, _Traits, _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] |
|
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] |
|
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] |
|
template<typename _CharT, typename _Traits, typename _Alloc> |
basic_string< _CharT, _Traits, _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] |
|
template<typename _CharT, typename _Traits, typename _Alloc> |
basic_string< _CharT, _Traits, _Alloc >::size_type std::basic_string< _CharT, _Traits, _Alloc >::find_last_not_of |
( |
_CharT |
__c, |
|
|
size_type |
__pos = npos |
|
) |
const |
|
|
Definition at line 745 of file basic_string.tcc.
References std::basic_string< _CharT, _Traits, _Alloc >::_M_data(), std::basic_string< _CharT, _Traits, _Alloc >::npos, std::basic_string< _CharT, _Traits, _Alloc >::size(), and std::basic_string< _CharT, _Traits, _Alloc >::size_type. |
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] |
|
template<typename _CharT, typename _Traits, typename _Alloc> |
basic_string< _CharT, _Traits, _Alloc >::size_type std::basic_string< _CharT, _Traits, _Alloc >::find_last_not_of |
( |
const _CharT * |
__s, |
|
|
size_type |
__pos, |
|
|
size_type |
__n |
|
) |
const |
|
|
Definition at line 725 of file basic_string.tcc.
References std::basic_string< _CharT, _Traits, _Alloc >::_M_data(), std::basic_string< _CharT, _Traits, _Alloc >::npos, std::basic_string< _CharT, _Traits, _Alloc >::size(), and std::basic_string< _CharT, _Traits, _Alloc >::size_type. |
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] |
|
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] |
|
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] |
|
template<typename _CharT, typename _Traits, typename _Alloc> |
basic_string< _CharT, _Traits, _Alloc >::size_type std::basic_string< _CharT, _Traits, _Alloc >::find_last_of |
( |
const _CharT * |
__s, |
|
|
size_type |
__pos, |
|
|
size_type |
__n |
|
) |
const |
|
|
Definition at line 681 of file basic_string.tcc.
References std::basic_string< _CharT, _Traits, _Alloc >::_M_data(), std::basic_string< _CharT, _Traits, _Alloc >::npos, std::basic_string< _CharT, _Traits, _Alloc >::size(), and std::basic_string< _CharT, _Traits, _Alloc >::size_type. |
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] |
|
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.
Referenced by std::basic_string< _CharT, _Traits, _Alloc >::_M_mutate(), std::basic_string< _CharT, _Traits, _Alloc >::assign(), std::basic_string< _CharT, _Traits, _Alloc >::reserve(), and std::basic_string< _CharT, _Traits, _Alloc >::swap(). |
template<typename _CharT, typename _Traits, typename _Alloc> |
iterator std::basic_string< _CharT, _Traits, _Alloc >::insert |
( |
iterator |
__p, |
|
|
_CharT |
__c = _CharT() |
|
) |
[inline] |
|
template<typename _CharT, typename _Traits, typename _Alloc> |
basic_string& std::basic_string< _CharT, _Traits, _Alloc >::insert |
( |
size_type |
__pos, |
|
|
size_type |
__n, |
|
|
_CharT |
__c |
|
) |
[inline] |
|
template<typename _CharT, typename _Traits, typename _Alloc> |
basic_string& std::basic_string< _CharT, _Traits, _Alloc >::insert |
( |
size_type |
__pos, |
|
|
const _CharT * |
__s |
|
) |
[inline] |
|
template<typename _CharT, typename _Traits, typename _Alloc> |
basic_string& std::basic_string< _CharT, _Traits, _Alloc >::insert |
( |
size_type |
__pos, |
|
|
const _CharT * |
__s, |
|
|
size_type |
__n |
|
) |
[inline] |
|
template<typename _CharT, typename _Traits, typename _Alloc> |
basic_string& std::basic_string< _CharT, _Traits, _Alloc >::insert |
( |
size_type |
__pos1, |
|
|
const basic_string< _CharT, _Traits, _Alloc > & |
__str, |
|
|
size_type |
__pos2, |
|
|
size_type |
__n |
|
) |
[inline] |
|
template<typename _CharT, typename _Traits, typename _Alloc> |
basic_string& std::basic_string< _CharT, _Traits, _Alloc >::insert |
( |
size_type |
__pos1, |
|
|
const basic_string< _CharT, _Traits, _Alloc > & |
__str |
|
) |
[inline] |
|
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] |
|
template<typename _CharT, typename _Traits, typename _Alloc> |
void std::basic_string< _CharT, _Traits, _Alloc >::insert |
( |
iterator |
__p, |
|
|
size_type |
__n, |
|
|
_CharT |
__c |
|
) |
[inline] |
|
template<typename _CharT, typename _Traits, typename _Alloc> |
size_type std::basic_string< _CharT, _Traits, _Alloc >::length |
( |
|
) |
const [inline] |
|
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.
Referenced by std::basic_string< _CharT, _Traits, _Alloc >::_M_replace(), std::getline(), std::operator>>(), std::basic_string< _CharT, _Traits, _Alloc >::replace(), std::basic_string< _CharT, _Traits, _Alloc >::reserve(), and std::basic_string< _CharT, _Traits, _Alloc >::resize(). |
template<typename _CharT, typename _Traits, typename _Alloc> |
basic_string& std::basic_string< _CharT, _Traits, _Alloc >::operator+= |
( |
_CharT |
__c |
) |
[inline] |
|
template<typename _CharT, typename _Traits, typename _Alloc> |
basic_string& std::basic_string< _CharT, _Traits, _Alloc >::operator+= |
( |
const _CharT * |
__s |
) |
[inline] |
|
template<typename _CharT, typename _Traits, typename _Alloc> |
basic_string& std::basic_string< _CharT, _Traits, _Alloc >::operator+= |
( |
const basic_string< _CharT, _Traits, _Alloc > & |
__str |
) |
[inline] |
|
template<typename _CharT, typename _Traits, typename _Alloc> |
basic_string& std::basic_string< _CharT, _Traits, _Alloc >::operator= |
( |
_CharT |
__c |
) |
[inline] |
|
template<typename _CharT, typename _Traits, typename _Alloc> |
basic_string& std::basic_string< _CharT, _Traits, _Alloc >::operator= |
( |
const _CharT * |
__s |
) |
[inline] |
|
template<typename _CharT, typename _Traits, typename _Alloc> |
basic_string& std::basic_string< _CharT, _Traits, _Alloc >::operator= |
( |
const basic_string< _CharT, _Traits, _Alloc > & |
__str |
) |
[inline] |
|
template<typename _CharT, typename _Traits, typename _Alloc> |
reference std::basic_string< _CharT, _Traits, _Alloc >::operator[] |
( |
size_type |
__pos |
) |
[inline] |
|
template<typename _CharT, typename _Traits, typename _Alloc> |
const_reference std::basic_string< _CharT, _Traits, _Alloc >::operator[] |
( |
size_type |
__pos |
) |
const [inline] |
|
template<typename _CharT, typename _Traits, typename _Alloc> |
void std::basic_string< _CharT, _Traits, _Alloc >::push_back |
( |
_CharT |
__c |
) |
[inline] |
|
template<typename _CharT, typename _Traits, typename _Alloc> |
const_reverse_iterator std::basic_string< _CharT, _Traits, _Alloc >::rbegin |
( |
|
) |
const [inline] |
|
template<typename _CharT, typename _Traits, typename _Alloc> |
reverse_iterator std::basic_string< _CharT, _Traits, _Alloc >::rbegin |
( |
|
) |
[inline] |
|
template<typename _CharT, typename _Traits, typename _Alloc> |
const_reverse_iterator std::basic_string< _CharT, _Traits, _Alloc >::rend |
( |
|
) |
const [inline] |
|
template<typename _CharT, typename _Traits, typename _Alloc> |
reverse_iterator std::basic_string< _CharT, _Traits, _Alloc >::rend |
( |
|
) |
[inline] |
|
template<typename _CharT, typename _Traits, typename _Alloc> |
template<class _InputIterator> |
basic_string& std::basic_string< _CharT, _Traits, _Alloc >::replace |
( |
iterator |
__i1, |
|
|
iterator |
__i2, |
|
|
_InputIterator |
__k1, |
|
|
_InputIterator |
__k2 |
|
) |
[inline] |
|
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 |
|
) |
|
|
|
Definition at line 563 of file basic_string.tcc.
References std::__throw_length_error(), std::basic_string< _CharT, _Traits, _Alloc >::_M_data(), std::basic_string< _CharT, _Traits, _Alloc >::_M_ibegin(), std::basic_string< _CharT, _Traits, _Alloc >::_M_mutate(), std::basic_string< _CharT, _Traits, _Alloc >::max_size(), std::basic_string< _CharT, _Traits, _Alloc >::size(), and std::basic_string< _CharT, _Traits, _Alloc >::size_type. |
template<typename _CharT, typename _Traits, typename _Alloc> |
basic_string& std::basic_string< _CharT, _Traits, _Alloc >::replace |
( |
iterator |
__i1, |
|
|
iterator |
__i2, |
|
|
const _CharT * |
__s |
|
) |
[inline] |
|
template<typename _CharT, typename _Traits, typename _Alloc> |
basic_string& std::basic_string< _CharT, _Traits, _Alloc >::replace |
( |
iterator |
__i1, |
|
|
iterator |
__i2, |
|
|
const _CharT * |
__s, |
|
|
size_type |
__n |
|
) |
[inline] |
|
template<typename _CharT, typename _Traits, typename _Alloc> |
basic_string& std::basic_string< _CharT, _Traits, _Alloc >::replace |
( |
iterator |
__i1, |
|
|
iterator |
__i2, |
|
|
const basic_string< _CharT, _Traits, _Alloc > & |
__str |
|
) |
[inline] |
|
template<typename _CharT, typename _Traits, typename _Alloc> |
basic_string& std::basic_string< _CharT, _Traits, _Alloc >::replace |
( |
size_type |
__pos, |
|
|
size_type |
__n1, |
|
|
size_type |
__n2, |
|
|
_CharT |
__c |
|
) |
[inline] |
|
template<typename _CharT, typename _Traits, typename _Alloc> |
basic_string& std::basic_string< _CharT, _Traits, _Alloc >::replace |
( |
size_type |
__pos, |
|
|
size_type |
__n1, |
|
|
const _CharT * |
__s |
|
) |
[inline] |
|
template<typename _CharT, typename _Traits, typename _Alloc> |
basic_string& std::basic_string< _CharT, _Traits, _Alloc >::replace |
( |
size_type |
__pos, |
|
|
size_type |
__n1, |
|
|
const _CharT * |
__s, |
|
|
size_type |
__n2 |
|
) |
[inline] |
|
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& 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 std::basic_string< _CharT, _Traits, _Alloc >::_M_replace(), std::basic_string< _CharT, _Traits, _Alloc >::append(), std::basic_string< char >::append(), std::basic_string< char >::assign(), std::basic_string< char >::erase(), std::basic_string< char >::insert(), std::basic_string< char >::push_back(), std::basic_string< _CharT, _Traits, _Alloc >::replace(), and std::basic_string< char >::replace(). |
template<typename _CharT, typename _Traits, typename _Alloc> |
void std::basic_string< _CharT, _Traits, _Alloc >::reserve |
( |
size_type |
__res_arg = 0 |
) |
|
|
|
Definition at line 312 of file basic_string.tcc.
References std::__throw_length_error(), std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_clone(), std::basic_string< _CharT, _Traits, _Alloc >::_M_data(), std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_dispose(), std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_is_shared(), std::basic_string< _CharT, _Traits, _Alloc >::_M_rep(), std::basic_string< _CharT, _Traits, _Alloc >::allocator_type, std::basic_string< _CharT, _Traits, _Alloc >::capacity(), std::basic_string< _CharT, _Traits, _Alloc >::get_allocator(), std::basic_string< _CharT, _Traits, _Alloc >::max_size(), and std::basic_string< _CharT, _Traits, _Alloc >::size().
Referenced by std::basic_string< _CharT, _Traits, _Alloc >::append(), std::operator+(), and std::operator>>(). |
template<typename _CharT, typename _Traits, typename _Alloc> |
void std::basic_string< _CharT, _Traits, _Alloc >::resize |
( |
size_type |
__n |
) |
[inline] |
|
template<typename _CharT, typename _Traits, typename _Alloc> |
void std::basic_string< _CharT, _Traits, _Alloc >::resize |
( |
size_type |
__n, |
|
|
_CharT |
__c |
|
) |
|
|
|
Definition at line 422 of file basic_string.tcc.
References std::__throw_length_error(), std::basic_string< _CharT, _Traits, _Alloc >::append(), std::basic_string< _CharT, _Traits, _Alloc >::erase(), std::basic_string< _CharT, _Traits, _Alloc >::max_size(), std::basic_string< _CharT, _Traits, _Alloc >::size(), and std::basic_string< _CharT, _Traits, _Alloc >::size_type.
Referenced by std::basic_string< char >::resize(). |
template<typename _CharT, typename _Traits, typename _Alloc> |
basic_string< _CharT, _Traits, _Alloc >::size_type std::basic_string< _CharT, _Traits, _Alloc >::rfind |
( |
_CharT |
__c, |
|
|
size_type |
__pos = npos |
|
) |
const |
|
|
Definition at line 648 of file basic_string.tcc.
References std::basic_string< _CharT, _Traits, _Alloc >::_M_data(), std::basic_string< _CharT, _Traits, _Alloc >::npos, std::basic_string< _CharT, _Traits, _Alloc >::size(), and std::basic_string< _CharT, _Traits, _Alloc >::size_type. |
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] |
|
template<typename _CharT, typename _Traits, typename _Alloc> |
basic_string< _CharT, _Traits, _Alloc >::size_type std::basic_string< _CharT, _Traits, _Alloc >::rfind |
( |
const _CharT * |
__s, |
|
|
size_type |
__pos, |
|
|
size_type |
__n |
|
) |
const |
|
|
Definition at line 628 of file basic_string.tcc.
References std::basic_string< _CharT, _Traits, _Alloc >::_M_data(), std::min(), std::basic_string< _CharT, _Traits, _Alloc >::npos, std::basic_string< _CharT, _Traits, _Alloc >::size(), and std::basic_string< _CharT, _Traits, _Alloc >::size_type. |
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] |
|
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 std::__match_parallel(), std::basic_string< char >::_M_check(), std::bitset< _Nb >::_M_copy_from_string(), std::basic_string< char >::_M_fold(), std::basic_string< _CharT, _Traits, _Alloc >::_M_mutate(), std::_S_string_copy(), std::basic_string< _CharT, _Traits, _Alloc >::append(), std::basic_string< char >::at(), std::bitset< _Nb >::bitset(), std::basic_string< char >::c_str(), std::basic_string< _CharT, _Traits, _Alloc >::compare(), std::basic_string< char >::compare(), std::basic_string< _CharT, _Traits, _Alloc >::copy(), std::basic_string< char >::empty(), std::basic_string< _CharT, _Traits, _Alloc >::find(), std::basic_string< char >::find(), std::basic_string< _CharT, _Traits, _Alloc >::find_first_not_of(), std::basic_string< char >::find_first_not_of(), std::basic_string< _CharT, _Traits, _Alloc >::find_first_of(), std::basic_string< char >::find_first_of(), std::basic_string< _CharT, _Traits, _Alloc >::find_last_not_of(), std::basic_string< char >::find_last_not_of(), std::basic_string< _CharT, _Traits, _Alloc >::find_last_of(), std::basic_string< char >::find_last_of(), std::operator+(), std::basic_string< _CharT, _Traits, _Alloc >::replace(), std::basic_string< _CharT, _Traits, _Alloc >::reserve(), std::basic_string< _CharT, _Traits, _Alloc >::resize(), std::basic_string< _CharT, _Traits, _Alloc >::rfind(), std::basic_string< char >::rfind(), and std::basic_string< char >::substr(). |
template<typename _CharT, typename _Traits, typename _Alloc> |
basic_string std::basic_string< _CharT, _Traits, _Alloc >::substr |
( |
size_type |
__pos = 0, |
|
|
size_type |
__n = npos |
|
) |
const [inline] |
|
template<typename _CharT, typename _Traits, typename _Alloc> |
void std::basic_string< _CharT, _Traits, _Alloc >::swap |
( |
basic_string< _CharT, _Traits, _Alloc > & |
__s |
) |
|
|
|
Definition at line 329 of file basic_string.tcc.
References std::basic_string< _CharT, _Traits, _Alloc >::_M_data(), std::basic_string< _CharT, _Traits, _Alloc >::_M_ibegin(), std::basic_string< _CharT, _Traits, _Alloc >::_M_iend(), std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_is_leaked(), std::basic_string< _CharT, _Traits, _Alloc >::_M_rep(), std::basic_string< _CharT, _Traits, _Alloc >::_Rep::_M_set_sharable(), and std::basic_string< _CharT, _Traits, _Alloc >::get_allocator().
Referenced by std::swap(). |
Member Data Documentation
template<typename _CharT, typename _Traits, typename _Alloc> |
_Alloc_hider std::basic_string< _CharT, _Traits, _Alloc >::_M_dataplus [private]
|
|
template<typename _CharT, typename _Traits, typename _Alloc> |
basic_string< _CharT, _Traits, _Alloc >::size_type std::basic_string< _CharT, _Traits, _Alloc >::_S_empty_rep_storage [static, private]
|
|
template<typename _CharT, typename _Traits, typename _Alloc> |
const basic_string< _CharT, _Traits, _Alloc >::size_type std::basic_string< _CharT, _Traits, _Alloc >::npos = static_cast<size_type>(-1) [static]
|
|
|
Definition at line 57 of file basic_string.tcc.
Referenced by std::basic_string< char >::erase(), std::basic_string< _CharT, _Traits, _Alloc >::find(), std::basic_string< _CharT, _Traits, _Alloc >::find_first_not_of(), std::basic_string< _CharT, _Traits, _Alloc >::find_first_of(), std::basic_string< _CharT, _Traits, _Alloc >::find_last_not_of(), std::basic_string< char >::find_last_not_of(), std::basic_string< _CharT, _Traits, _Alloc >::find_last_of(), std::basic_string< char >::find_last_of(), std::basic_string< _CharT, _Traits, _Alloc >::rfind(), std::basic_string< char >::rfind(), and std::basic_string< char >::substr(). |
The documentation for this class was generated from the following files:
Generated on Mon Apr 8 03:18:54 2002 for libstdc++-v3 Source by
1.2.15
|