#include <basic_string.h>
Collaboration 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 |
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)] |
|
Definition at line 90 of file basic_string.h. |
|
Definition at line 98 of file basic_string.h. |
|
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. |
|
Definition at line 92 of file basic_string.h. |
|
Definition at line 97 of file basic_string.h. |
|
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. |
|
Definition at line 91 of file basic_string.h. Referenced by insert(), and operator+=(). |
|
Definition at line 88 of file basic_string.h. |
|
Definition at line 89 of file basic_string.h. |
|
Definition at line 853 of file basic_string.h. Referenced by substr(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 343 of file basic_string.h. |
|
Definition at line 264 of file basic_string.h. |
|
Definition at line 241 of file basic_string.h. |
|
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[](). |
|
Definition at line 273 of file basic_string.h. |
|
Definition at line 251 of file basic_string.h. Referenced by _M_check(), _M_fold(), assign(), erase(), and insert(). |
|
Definition at line 254 of file basic_string.h. |
|
Definition at line 257 of file basic_string.h. Referenced by at(), begin(), end(), and operator[](). |
|
Referenced by _M_leak(). |
|
Referenced by clear(). |
|
Definition at line 245 of file basic_string.h. Referenced by _M_leak(), capacity(), erase(), insert(), length(), size(), and ~basic_string(). |
|
|
|
Referenced by replace(). |
|
|
|
|
|
|
|
Definition at line 681 of file basic_string.h. Referenced by _S_construct_aux(). |
|
Definition at line 672 of file basic_string.h. |
|
Definition at line 663 of file basic_string.h. Referenced by _S_construct(). |
|
Definition at line 303 of file basic_string.h. |
|
Definition at line 299 of file basic_string.h. |
|
Definition at line 295 of file basic_string.h. |
|
Definition at line 291 of file basic_string.h. |
|
Definition at line 284 of file basic_string.h. Referenced by _S_copy_chars(). |
|
Definition at line 313 of file basic_string.h. |
|
Definition at line 480 of file basic_string.h. |
|
|
|
Definition at line 472 of file basic_string.h. |
|
|
|
|
|
Referenced by append(), and operator+=(). |
|
Definition at line 510 of file basic_string.h. |
|
Definition at line 505 of file basic_string.h. |
|
Definition at line 501 of file basic_string.h. |
|
Definition at line 497 of file basic_string.h. |
|
Definition at line 491 of file basic_string.h. |
|
|
|
Definition at line 444 of file basic_string.h. |
|
Definition at line 436 of file basic_string.h. |
|
Definition at line 364 of file basic_string.h. |
|
Definition at line 357 of file basic_string.h. |
|
Definition at line 713 of file basic_string.h. |
|
Definition at line 412 of file basic_string.h. |
|
Definition at line 418 of file basic_string.h. |
|
|
|
|
|
|
|
|
|
Definition at line 823 of file basic_string.h. |
|
|
|
Definition at line 722 of file basic_string.h. |
|
Definition at line 421 of file basic_string.h. |
|
Definition at line 375 of file basic_string.h. |
|
Definition at line 368 of file basic_string.h. |
|
Definition at line 584 of file basic_string.h. |
|
Definition at line 575 of file basic_string.h. |
|
Definition at line 568 of file basic_string.h. |
|
|
|
Definition at line 735 of file basic_string.h. |
|
Definition at line 731 of file basic_string.h. |
|
Referenced by find(), and find_first_of(). |
|
|
|
Definition at line 794 of file basic_string.h. |
|
|
|
Definition at line 786 of file basic_string.h. Referenced by find_first_not_of(). |
|
Definition at line 767 of file basic_string.h. |
|
Definition at line 763 of file basic_string.h. |
|
|
|
Definition at line 756 of file basic_string.h. Referenced by find_first_of(). |
|
|
|
Definition at line 808 of file basic_string.h. |
|
|
|
Definition at line 801 of file basic_string.h. Referenced by find_last_not_of(). |
|
Definition at line 782 of file basic_string.h. |
|
Definition at line 778 of file basic_string.h. |
|
|
|
Definition at line 771 of file basic_string.h. Referenced by find_last_of(). |
|
Definition at line 725 of file basic_string.h. |
|
Definition at line 559 of file basic_string.h. |
|
Definition at line 552 of file basic_string.h. |
|
Definition at line 548 of file basic_string.h. |
|
Definition at line 540 of file basic_string.h. |
|
Definition at line 530 of file basic_string.h. |
|
Definition at line 522 of file basic_string.h. |
|
Definition at line 518 of file basic_string.h. |
|
Definition at line 514 of file basic_string.h. Referenced by insert(). |
|
Definition at line 400 of file basic_string.h. |
|
Definition at line 403 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 454 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 347 of file basic_string.h. |
|
Definition at line 429 of file basic_string.h. |
|
Definition at line 425 of file basic_string.h. |
|
Definition at line 484 of file basic_string.h. |
|
Definition at line 383 of file basic_string.h. |
|
Definition at line 379 of file basic_string.h. |
|
Definition at line 391 of file basic_string.h. |
|
Definition at line 387 of file basic_string.h. |
|
Definition at line 643 of file basic_string.h. |
|
|
|
Definition at line 634 of file basic_string.h. |
|
Definition at line 629 of file basic_string.h. |
|
Definition at line 625 of file basic_string.h. |
|
Definition at line 619 of file basic_string.h. |
|
Definition at line 612 of file basic_string.h. |
|
Definition at line 604 of file basic_string.h. |
|
|
|
Definition at line 593 of file basic_string.h. Referenced by append(), assign(), erase(), insert(), push_back(), and replace(). |
|
|
|
Definition at line 409 of file basic_string.h. |
|
Referenced by resize(). |
|
|
|
Definition at line 749 of file basic_string.h. |
|
|
|
Definition at line 742 of file basic_string.h. Referenced by find_last_of(), and rfind(). |
|
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(). |
|
Definition at line 815 of file basic_string.h. |
|
|
|
Definition at line 230 of file basic_string.h. |
|
Definition at line 234 of file basic_string.h. |
|
Definition at line 226 of file basic_string.h. |