#include <basic_string.h>
Inheritance diagram for std::basic_string:
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) | __attribute__ )((__aligned__(16))) |
|
Definition at line 90 of file basic_string.h. Referenced by std::basic_string< _CharT, _Traits, _Alloc >::_M_mutate(), std::basic_string< _CharT, _Traits, _Alloc >::assign(), and std::basic_string< _CharT, _Traits, _Alloc >::reserve(). |
|
Definition at line 98 of file basic_string.h. Referenced by std::basic_string< char >::begin(), and std::basic_string< char >::end(). |
|
Definition at line 96 of file basic_string.h. |
|
Definition at line 94 of file basic_string.h. |
|
Definition at line 99 of file basic_string.h. Referenced by std::basic_string< char >::rbegin(), and std::basic_string< char >::rend(). |
|
Definition at line 92 of file basic_string.h. |
|
Definition at line 97 of file basic_string.h. Referenced by std::basic_string< char >::_M_ibegin(), std::basic_string< char >::_M_iend(), std::basic_string< char >::begin(), and std::basic_string< char >::end(). |
|
Definition at line 95 of file basic_string.h. |
|
Definition at line 93 of file basic_string.h. |
|
Definition at line 100 of file basic_string.h. Referenced by std::basic_string< char >::rbegin(), and std::basic_string< char >::rend(). |
|
|
Definition at line 88 of file basic_string.h. |
|
Definition at line 89 of file basic_string.h. |
|
Definition at line 862 of file basic_string.h. Referenced by std::basic_string< char >::substr(). |
|
Definition at line 196 of file basic_string.tcc. |
|
Definition at line 189 of file basic_string.tcc. |
|
Definition at line 202 of file basic_string.tcc. |
|
Definition at line 209 of file basic_string.tcc. |
|
Definition at line 217 of file basic_string.tcc. |
|
Definition at line 223 of file basic_string.tcc. |
|
Definition at line 229 of file basic_string.tcc. |
|
Definition at line 236 of file basic_string.tcc. |
|
Definition at line 346 of file basic_string.h. |
|
Definition at line 267 of file basic_string.h. Referenced by 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< char >::replace(). |
|
Definition at line 244 of file basic_string.h. |
|
|
Definition at line 276 of file basic_string.h. Referenced by 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< char >::replace(). |
|
|
|
Definition at line 260 of file basic_string.h. Referenced by std::basic_string< char >::at(), std::basic_string< char >::begin(), std::basic_string< char >::end(), and std::basic_string< char >::operator[](). |
|
Definition at line 266 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(). |
|
|
|
|
Definition at line 443 of file basic_string.tcc. References std::basic_string< _CharT, _Traits, _Alloc >::_M_ibegin(), std::basic_string< _CharT, _Traits, _Alloc >::_M_iend(), and std::basic_string< _CharT, _Traits, _Alloc >::replace(). Referenced by std::basic_string< char >::replace(). |
|
|
|
|
Definition at line 684 of file basic_string.h. Referenced by std::basic_string< char >::_S_construct_aux(). |
|
Definition at line 675 of file basic_string.h. |
|
Definition at line 666 of file basic_string.h. Referenced by std::basic_string< char >::_S_construct(). |
|
Definition at line 306 of file basic_string.h. |
|
Definition at line 302 of file basic_string.h. |
|
Definition at line 298 of file basic_string.h. |
|
Definition at line 294 of file basic_string.h. |
|
Definition at line 287 of file basic_string.h. Referenced by std::basic_string< _CharT, _Traits, _Alloc >::_M_replace(), std::basic_string< _CharT, _Traits, _Alloc >::_S_construct(), and std::basic_string< char >::_S_copy_chars(). |
|
Definition at line 316 of file basic_string.h. Referenced by std::basic_string< _CharT, _Traits, _Alloc >::_S_construct(). |
|
Definition at line 483 of file basic_string.h. |
|
|
Definition at line 475 of file basic_string.h. |
|
|
|
|
Definition at line 513 of file basic_string.h. |
|
Definition at line 508 of file basic_string.h. |
|
Definition at line 504 of file basic_string.h. |
|
Definition at line 500 of file basic_string.h. |
|
Definition at line 494 of file basic_string.h. |
|
|
Definition at line 447 of file basic_string.h. |
|
Definition at line 439 of file basic_string.h. |
|
Definition at line 367 of file basic_string.h. |
|
Definition at line 360 of file basic_string.h. Referenced by std::basic_string< char >::replace(). |
|
Definition at line 716 of file basic_string.h. |
|
Definition at line 415 of file basic_string.h. Referenced by std::basic_string< _CharT, _Traits, _Alloc >::_M_mutate(), std::basic_string< _CharT, _Traits, _Alloc >::append(), and std::basic_string< _CharT, _Traits, _Alloc >::reserve(). |
|
Definition at line 421 of file basic_string.h. |
|
Definition at line 810 of file basic_string.tcc. References std::basic_string< _CharT, _Traits, _Alloc >::_M_data(), std::basic_string< _CharT, _Traits, _Alloc >::size(), and std::basic_string< _CharT, _Traits, _Alloc >::size_type. |
|
Definition at line 788 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. |
|
Definition at line 770 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. |
|
Definition at line 826 of file basic_string.h. Referenced by std::operator!=(), std::operator<(), std::operator<=(), std::operator==(), std::operator>(), and std::operator>=(). |
|
Definition at line 584 of file basic_string.tcc. References std::__throw_out_of_range(), std::basic_string< _CharT, _Traits, _Alloc >::_M_data(), and std::basic_string< _CharT, _Traits, _Alloc >::size(). |
|
|
Definition at line 424 of file basic_string.h. Referenced by std::operator>>(). |
|
Definition at line 378 of file basic_string.h. |
|
Definition at line 371 of file basic_string.h. Referenced by std::basic_string< char >::replace(). |
|
Definition at line 587 of file basic_string.h. |
|
Definition at line 578 of file basic_string.h. |
|
Definition at line 571 of file basic_string.h. Referenced by std::getline(), std::operator>>(), and std::basic_string< _CharT, _Traits, _Alloc >::resize(). |
|
|
Definition at line 738 of file basic_string.h. |
|
Definition at line 734 of file basic_string.h. |
|
Definition at line 600 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(). |
|
Definition at line 718 of file basic_string.tcc. References std::basic_string< _CharT, _Traits, _Alloc >::_M_data(), std::basic_string< _CharT, _Traits, _Alloc >::npos, and std::basic_string< _CharT, _Traits, _Alloc >::size(). |
|
Definition at line 797 of file basic_string.h. |
|
Definition at line 706 of file basic_string.tcc. References std::basic_string< _CharT, _Traits, _Alloc >::_M_data(), std::basic_string< _CharT, _Traits, _Alloc >::npos, and std::basic_string< _CharT, _Traits, _Alloc >::size(). |
|
Definition at line 789 of file basic_string.h. Referenced by std::basic_string< char >::find_first_not_of(). |
|
Definition at line 770 of file basic_string.h. |
|
Definition at line 766 of file basic_string.h. |
|
Definition at line 672 of file basic_string.tcc. References std::basic_string< _CharT, _Traits, _Alloc >::_M_data(), std::basic_string< _CharT, _Traits, _Alloc >::npos, and std::basic_string< _CharT, _Traits, _Alloc >::size(). |
|
Definition at line 759 of file basic_string.h. Referenced by std::basic_string< char >::find_first_of(). |
|
|
Definition at line 811 of file basic_string.h. |
|
|
Definition at line 804 of file basic_string.h. Referenced by std::basic_string< char >::find_last_not_of(). |
|
Definition at line 785 of file basic_string.h. |
|
Definition at line 781 of file basic_string.h. |
|
|
Definition at line 774 of file basic_string.h. Referenced by std::basic_string< char >::find_last_of(). |
|
Definition at line 728 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(). |
|
Definition at line 562 of file basic_string.h. |
|
Definition at line 555 of file basic_string.h. |
|
Definition at line 551 of file basic_string.h. |
|
Definition at line 543 of file basic_string.h. |
|
Definition at line 533 of file basic_string.h. |
|
Definition at line 525 of file basic_string.h. |
|
Definition at line 521 of file basic_string.h. |
|
Definition at line 517 of file basic_string.h. Referenced by std::basic_string< char >::insert(). |
|
Definition at line 403 of file basic_string.h. Referenced by std::locale::operator()(). |
|
Definition at line 406 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(). |
|
Definition at line 463 of file basic_string.h. |
|
Definition at line 460 of file basic_string.h. |
|
Definition at line 457 of file basic_string.h. |
|
Definition at line 356 of file basic_string.h. |
|
Definition at line 353 of file basic_string.h. |
|
Definition at line 350 of file basic_string.h. |
|
Definition at line 432 of file basic_string.h. |
|
Definition at line 428 of file basic_string.h. |
|
Definition at line 487 of file basic_string.h. Referenced by std::operator>>(). |
|
Definition at line 386 of file basic_string.h. |
|
Definition at line 382 of file basic_string.h. |
|
Definition at line 394 of file basic_string.h. |
|
Definition at line 390 of file basic_string.h. |
|
Definition at line 646 of file basic_string.h. |
|
|
Definition at line 637 of file basic_string.h. |
|
Definition at line 632 of file basic_string.h. |
|
Definition at line 628 of file basic_string.h. |
|
Definition at line 622 of file basic_string.h. |
|
Definition at line 615 of file basic_string.h. |
|
Definition at line 607 of file basic_string.h. |
|
Definition at line 475 of file basic_string.tcc. References std::basic_string< _CharT, _Traits, _Alloc >::_M_check(), std::basic_string< _CharT, _Traits, _Alloc >::_M_fold(), and std::basic_string< _CharT, _Traits, _Alloc >::replace(). |
|
|
|
Definition at line 412 of file basic_string.h. |
|
|
|
Definition at line 752 of file basic_string.h. |
|
Definition at line 633 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. |
|
Definition at line 745 of file basic_string.h. Referenced by std::basic_string< char >::find_last_of(), and std::basic_string< char >::rfind(). |
|
|
Definition at line 818 of file basic_string.h. |
|
|
|
|
Definition at line 230 of file basic_string.h. Referenced by std::basic_string< char >::_M_data(), and std::basic_string< char >::get_allocator(). |
|