#include <string>
Public Types | |
| typedef _Alloc | allocator_type |
|
typedef __gnu_cxx::__normal_iterator< const_pointer, basic_string > | const_iterator |
| typedef _Alloc::const_pointer | const_pointer |
| typedef _Alloc::const_reference | const_reference |
|
typedef std::reverse_iterator< const_iterator > | const_reverse_iterator |
| typedef _Alloc::difference_type | difference_type |
|
typedef __gnu_cxx::__normal_iterator< pointer, basic_string > | iterator |
| typedef _Alloc::pointer | pointer |
| typedef _Alloc::reference | reference |
|
typedef std::reverse_iterator< iterator > | reverse_iterator |
| typedef _Alloc::size_type | size_type |
| typedef _Traits | traits_type |
| typedef _Traits::char_type | value_type |
Public Member Functions | |
| template<class _InputIterator> | |
| basic_string & | append (_InputIterator __first, _InputIterator __last) |
| basic_string & | append (size_type __n, _CharT __c) |
| basic_string & | append (const _CharT *__s) |
| basic_string & | append (const _CharT *__s, size_type __n) |
| basic_string & | append (const basic_string &__str, size_type __pos, size_type __n) |
| basic_string & | append (const basic_string &__str) |
| template<class _InputIterator> | |
| basic_string & | assign (_InputIterator __first, _InputIterator __last) |
| basic_string & | assign (size_type __n, _CharT __c) |
| basic_string & | assign (const _CharT *__s) |
| basic_string & | assign (const _CharT *__s, size_type __n) |
| basic_string & | assign (const basic_string &__str, size_type __pos, size_type __n) |
| basic_string & | assign (const basic_string &__str) |
| reference | at (size_type __n) |
| const_reference | at (size_type __n) const |
| template<class _InputIterator> | |
| basic_string (_InputIterator __beg, _InputIterator __end, const _Alloc &__a=_Alloc()) | |
| basic_string (size_type __n, _CharT __c, const _Alloc &__a=_Alloc()) | |
| basic_string (const _CharT *__s, const _Alloc &__a=_Alloc()) | |
| basic_string (const _CharT *__s, size_type __n, const _Alloc &__a=_Alloc()) | |
| basic_string (const basic_string &__str, size_type __pos, size_type __n, const _Alloc &__a) | |
| basic_string (const basic_string &__str, size_type __pos, size_type __n=npos) | |
| basic_string (const basic_string &__str) | |
| basic_string (const _Alloc &__a) | |
| const_iterator | begin () const |
| iterator | begin () |
| const _CharT * | c_str () const |
| size_type | capacity () const |
| void | clear () |
| int | compare (size_type __pos, size_type __n1, const _CharT *__s, size_type __n2) const |
| int | compare (size_type __pos, size_type __n1, const _CharT *__s) const |
| int | compare (const _CharT *__s) const |
| int | compare (size_type __pos1, size_type __n1, const basic_string &__str, size_type __pos2, size_type __n2) const |
| int | compare (size_type __pos, size_type __n, const basic_string &__str) const |
| int | compare (const basic_string &__str) const |
| size_type | copy (_CharT *__s, size_type __n, size_type __pos=0) const |
| const _CharT * | data () const |
| bool | empty () const |
| const_iterator | end () const |
| iterator | end () |
| iterator | erase (iterator __first, iterator __last) |
| iterator | erase (iterator __position) |
| basic_string & | erase (size_type __pos=0, size_type __n=npos) |
| size_type | find (_CharT __c, size_type __pos=0) const |
| size_type | find (const _CharT *__s, size_type __pos=0) const |
| size_type | find (const basic_string &__str, size_type __pos=0) const |
| size_type | find (const _CharT *__s, size_type __pos, size_type __n) const |
| size_type | find_first_not_of (_CharT __c, size_type __pos=0) const |
| size_type | find_first_not_of (const _CharT *__s, 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 basic_string &__str, size_type __pos=0) const |
| size_type | find_first_of (_CharT __c, size_type __pos=0) const |
| size_type | find_first_of (const _CharT *__s, 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 basic_string &__str, size_type __pos=0) const |
| size_type | find_last_not_of (_CharT __c, size_type __pos=npos) const |
| size_type | find_last_not_of (const _CharT *__s, 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 basic_string &__str, size_type __pos=npos) const |
| size_type | find_last_of (_CharT __c, size_type __pos=npos) const |
| size_type | find_last_of (const _CharT *__s, 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 basic_string &__str, size_type __pos=npos) const |
| allocator_type | get_allocator () const |
| iterator | insert (iterator __p, _CharT __c=_CharT()) |
| basic_string & | insert (size_type __pos, size_type __n, _CharT __c) |
| basic_string & | insert (size_type __pos, const _CharT *__s) |
| basic_string & | insert (size_type __pos, const _CharT *__s, size_type __n) |
| basic_string & | insert (size_type __pos1, const basic_string &__str, size_type __pos2, size_type __n) |
| basic_string & | insert (size_type __pos1, const basic_string &__str) |
| template<class _InputIterator> | |
| void | insert (iterator __p, _InputIterator __beg, _InputIterator __end) |
| void | insert (iterator __p, size_type __n, _CharT __c) |
| size_type | length () const |
| size_type | max_size () const |
| basic_string & | operator+= (_CharT __c) |
| basic_string & | operator+= (const _CharT *__s) |
| basic_string & | operator+= (const basic_string &__str) |
| basic_string & | operator= (_CharT __c) |
| basic_string & | operator= (const _CharT *__s) |
| basic_string & | operator= (const basic_string &__str) |
| reference | operator[] (size_type __pos) |
| const_reference | operator[] (size_type __pos) const |
| void | push_back (_CharT __c) |
| const_reverse_iterator | rbegin () const |
| reverse_iterator | rbegin () |
| const_reverse_iterator | rend () const |
| reverse_iterator | rend () |
| basic_string & | replace (iterator __i1, iterator __i2, const_iterator __k1, const_iterator __k2) |
| basic_string & | replace (iterator __i1, iterator __i2, iterator __k1, iterator __k2) |
| basic_string & | replace (iterator __i1, iterator __i2, const _CharT *__k1, const _CharT *__k2) |
| basic_string & | replace (iterator __i1, iterator __i2, _CharT *__k1, _CharT *__k2) |
| template<class _InputIterator> | |
| basic_string & | replace (iterator __i1, iterator __i2, _InputIterator __k1, _InputIterator __k2) |
| basic_string & | replace (iterator __i1, iterator __i2, size_type __n, _CharT __c) |
| basic_string & | replace (iterator __i1, iterator __i2, const _CharT *__s) |
| basic_string & | replace (iterator __i1, iterator __i2, const _CharT *__s, size_type __n) |
| basic_string & | replace (iterator __i1, iterator __i2, const basic_string &__str) |
| basic_string & | replace (size_type __pos, size_type __n1, size_type __n2, _CharT __c) |
| basic_string & | replace (size_type __pos, size_type __n1, const _CharT *__s) |
| basic_string & | replace (size_type __pos, size_type __n1, const _CharT *__s, size_type __n2) |
| 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 __n, const basic_string &__str) |
| void | reserve (size_type __res_arg=0) |
| void | resize (size_type __n) |
| void | resize (size_type __n, _CharT __c) |
| size_type | rfind (_CharT __c, size_type __pos=npos) const |
| size_type | rfind (const _CharT *__s, size_type __pos=npos) const |
| size_type | rfind (const _CharT *__s, size_type __pos, size_type __n) const |
| size_type | rfind (const basic_string &__str, size_type __pos=npos) const |
| size_type | size () const |
| basic_string | substr (size_type __pos=0, size_type __n=npos) const |
| void | swap (basic_string< _CharT, _Traits, _Alloc > &__s) |
Static Public Attributes | |
| static const size_type | npos = static_cast<size_type>(-1) |
Data Structures | |
| struct | _Alloc_hider |
| struct | _Rep |
Meets the requirements of a container, a reversible container, and a sequence. Of the optional sequence requirements, only push_back, at, and array access are supported.
Definition at line 109 of file basic_string.h.
1.4.1