Inheritance diagram for __gnu_debug::basic_string< _CharT, _Traits, _Allocator >:
Public Types | |
typedef _Traits | traits_type |
typedef _Traits::char_type | value_type |
typedef _Allocator | allocator_type |
typedef _Base::size_type | size_type |
typedef _Base::difference_type | difference_type |
typedef _Base::reference | reference |
typedef _Base::const_reference | const_reference |
typedef _Base::pointer | pointer |
typedef _Base::const_pointer | const_pointer |
typedef __gnu_debug::_Safe_iterator< typename _Base::iterator, basic_string > | iterator |
typedef __gnu_debug::_Safe_iterator< typename _Base::const_iterator, basic_string > | const_iterator |
typedef std::reverse_iterator< iterator > | reverse_iterator |
typedef std::reverse_iterator< const_iterator > | const_reverse_iterator |
Public Member Functions | |
basic_string (const _Allocator &__a=_Allocator()) | |
Construct an empty string using allocator a. | |
basic_string (const _Base &__base) | |
basic_string (const basic_string &__str) | |
basic_string (const basic_string &__str, size_type __pos, size_type __n=_Base::npos, const _Allocator &__a=_Allocator()) | |
basic_string (const _CharT *__s, size_type __n, const _Allocator &__a=_Allocator()) | |
basic_string (const _CharT *__s, const _Allocator &__a=_Allocator()) | |
Construct string as copy of a C string. | |
basic_string (size_type __n, _CharT __c, const _Allocator &__a=_Allocator()) | |
template<typename _InputIterator> | |
basic_string (_InputIterator __begin, _InputIterator __end, const _Allocator &__a=_Allocator()) | |
Construct string as copy of a range. | |
~basic_string () | |
Destroy the string instance. | |
basic_string & | operator= (const basic_string &__str) |
basic_string & | operator= (const _CharT *__s) |
Copy contents of s into this string. | |
basic_string & | operator= (_CharT __c) |
Set value to string of length 1. | |
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 |
void | resize (size_type __n, _CharT __c) |
void | resize (size_type __n) |
void | clear () |
const_reference | operator[] (size_type __pos) const |
reference | operator[] (size_type __pos) |
basic_string & | operator+= (const basic_string &__str) |
basic_string & | operator+= (const _CharT *__s) |
Append a C string. | |
basic_string & | operator+= (_CharT __c) |
Append a character. | |
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) |
Append a C string. | |
basic_string & | append (size_type __n, _CharT __c) |
template<typename _InputIterator> | |
basic_string & | append (_InputIterator __first, _InputIterator __last) |
Append a range of characters. | |
void | push_back (_CharT __c) |
Append a single character. | |
basic_string & | assign (const basic_string &__x) |
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) |
Set value to contents of a C string. | |
basic_string & | assign (size_type __n, _CharT __c) |
template<typename _InputIterator> | |
basic_string & | assign (_InputIterator __first, _InputIterator __last) |
Set value to a range of characters. | |
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) |
void | insert (iterator __p, size_type __n, _CharT __c) |
template<typename _InputIterator> | |
void | insert (iterator __p, _InputIterator __first, _InputIterator __last) |
basic_string & | erase (size_type __pos=0, size_type __n=_Base::npos) |
iterator | erase (iterator __position) |
iterator | erase (iterator __first, iterator __last) |
basic_string & | replace (size_type __pos1, size_type __n1, 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<typename _InputIterator> | |
basic_string & | replace (iterator __i1, iterator __i2, _InputIterator __j1, _InputIterator __j2) |
size_type | copy (_CharT *__s, size_type __n, size_type __pos=0) const |
void | swap (basic_string< _CharT, _Traits, _Allocator > &__x) |
const _CharT * | c_str () const |
Return const pointer to null-terminated contents. | |
const _CharT * | data () const |
Return const pointer to contents. | |
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 (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=_Base::npos) const |
size_type | rfind (const _CharT *__s, size_type __pos, size_type __n) const |
size_type | rfind (const _CharT *__s, size_type __pos=_Base::npos) const |
size_type | rfind (_CharT __c, size_type __pos=_Base::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=_Base::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=_Base::npos) const |
size_type | find_last_of (_CharT __c, size_type __pos=_Base::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=_Base::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=_Base::npos) const |
size_type | find_last_not_of (_CharT __c, size_type __pos=_Base::npos) const |
basic_string | substr (size_type __pos=0, size_type __n=_Base::npos) const |
int | compare (const basic_string &__str) const |
int | compare (size_type __pos1, size_type __n1, 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 |
Compare to a C string. | |
int | compare (size_type __pos1, size_type __n1, const _CharT *__s) const |
int | compare (size_type __pos1, size_type __n1, const _CharT *__s, size_type __n2) const |
_Base & | _M_base () |
const _Base & | _M_base () const |
Private Types | |
typedef std::basic_string< _CharT, _Traits, _Allocator > | _Base |
typedef __gnu_debug::_Safe_sequence< basic_string > | _Safe_base |
Definition at line 42 of file debug/string.
typedef std::basic_string<_CharT, _Traits, _Allocator> __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::_Base [private] |
Definition at line 47 of file debug/string.
typedef __gnu_debug::_Safe_sequence<basic_string> __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::_Safe_base [private] |
Definition at line 48 of file debug/string.
typedef _Allocator __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::allocator_type |
Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.
Definition at line 54 of file debug/string.
typedef __gnu_debug::_Safe_iterator<typename _Base::const_iterator, basic_string> __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::const_iterator |
Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.
Definition at line 65 of file debug/string.
typedef _Base::const_pointer __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::const_pointer |
Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.
Definition at line 60 of file debug/string.
typedef _Base::const_reference __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::const_reference |
Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.
Definition at line 58 of file debug/string.
typedef std::reverse_iterator<const_iterator> __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::const_reverse_iterator |
Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.
Definition at line 68 of file debug/string.
typedef _Base::difference_type __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::difference_type |
Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.
Definition at line 56 of file debug/string.
typedef __gnu_debug::_Safe_iterator<typename _Base::iterator, basic_string> __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::iterator |
Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.
Definition at line 63 of file debug/string.
typedef _Base::pointer __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::pointer |
Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.
Definition at line 59 of file debug/string.
typedef _Base::reference __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::reference |
Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.
Definition at line 57 of file debug/string.
typedef std::reverse_iterator<iterator> __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::reverse_iterator |
Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.
Definition at line 67 of file debug/string.
typedef _Base::size_type __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::size_type |
Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.
Definition at line 55 of file debug/string.
typedef _Traits __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::traits_type |
Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.
Definition at line 52 of file debug/string.
typedef _Traits::char_type __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::value_type |
Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.
Definition at line 53 of file debug/string.
__gnu_debug::basic_string< _CharT, _Traits, _Allocator >::basic_string | ( | const _Allocator & | __a = _Allocator() |
) | [inline, explicit] |
Construct an empty string using allocator a.
Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.
Definition at line 73 of file debug/string.
__gnu_debug::basic_string< _CharT, _Traits, _Allocator >::basic_string | ( | const _Base & | __base | ) | [inline] |
Definition at line 78 of file debug/string.
__gnu_debug::basic_string< _CharT, _Traits, _Allocator >::basic_string | ( | const basic_string< _CharT, _Traits, _Allocator > & | __str | ) | [inline] |
Definition at line 82 of file debug/string.
__gnu_debug::basic_string< _CharT, _Traits, _Allocator >::basic_string | ( | const basic_string< _CharT, _Traits, _Allocator > & | __str, | |
size_type | __pos, | |||
size_type | __n = _Base::npos , |
|||
const _Allocator & | __a = _Allocator() | |||
) | [inline] |
Definition at line 88 of file debug/string.
__gnu_debug::basic_string< _CharT, _Traits, _Allocator >::basic_string | ( | const _CharT * | __s, | |
size_type | __n, | |||
const _Allocator & | __a = _Allocator() | |||
) | [inline] |
Definition at line 94 of file debug/string.
__gnu_debug::basic_string< _CharT, _Traits, _Allocator >::basic_string | ( | const _CharT * | __s, | |
const _Allocator & | __a = _Allocator() | |||
) | [inline] |
Construct string as copy of a C string.
s | Source C string. | |
a | Allocator to use (default is default allocator). |
Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.
Definition at line 99 of file debug/string.
References __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::assign().
__gnu_debug::basic_string< _CharT, _Traits, _Allocator >::basic_string | ( | size_type | __n, | |
_CharT | __c, | |||
const _Allocator & | __a = _Allocator() | |||
) | [inline] |
Definition at line 103 of file debug/string.
__gnu_debug::basic_string< _CharT, _Traits, _Allocator >::basic_string | ( | _InputIterator | __begin, | |
_InputIterator | __end, | |||
const _Allocator & | __a = _Allocator() | |||
) | [inline] |
Construct string as copy of a range.
beg | Start of range. | |
end | End of range. | |
a | Allocator to use (default is default allocator). |
Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.
Definition at line 109 of file debug/string.
__gnu_debug::basic_string< _CharT, _Traits, _Allocator >::~basic_string | ( | ) | [inline] |
Destroy the string instance.
Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.
Definition at line 114 of file debug/string.
const _Base& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::_M_base | ( | ) | const [inline] |
Definition at line 779 of file debug/string.
_Base& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::_M_base | ( | ) | [inline] |
Definition at line 776 of file debug/string.
Referenced by __gnu_debug::getline(), __gnu_debug::operator!=(), __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::operator+=(), __gnu_debug::operator<(), __gnu_debug::operator<<(), __gnu_debug::operator<=(), __gnu_debug::operator==(), __gnu_debug::operator>(), __gnu_debug::operator>=(), __gnu_debug::operator>>(), and __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::operator[]().
basic_string& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::append | ( | _InputIterator | __first, | |
_InputIterator | __last | |||
) | [inline] |
Append a range of characters.
first | Iterator referencing the first character to append. | |
last | Iterator marking the end of the range. |
Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.
Definition at line 302 of file debug/string.
References __glibcxx_check_valid_range, __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), and std::basic_string< _CharT, _Traits, _Allocator >::append().
basic_string& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::append | ( | size_type | __n, | |
_CharT | __c | |||
) | [inline] |
Definition at line 293 of file debug/string.
References __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), and std::basic_string< _CharT, _Traits, _Allocator >::append().
basic_string& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::append | ( | const _CharT * | __s | ) | [inline] |
Append a C string.
s | The C string to append. |
Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.
Definition at line 284 of file debug/string.
References __glibcxx_check_string, __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), and std::basic_string< _CharT, _Traits, _Allocator >::append().
basic_string& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::append | ( | const _CharT * | __s, | |
size_type | __n | |||
) | [inline] |
Definition at line 275 of file debug/string.
References __glibcxx_check_string_len, __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), and std::basic_string< _CharT, _Traits, _Allocator >::append().
basic_string& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::append | ( | const basic_string< _CharT, _Traits, _Allocator > & | __str, | |
size_type | __pos, | |||
size_type | __n | |||
) | [inline] |
Definition at line 267 of file debug/string.
References __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), and std::basic_string< _CharT, _Traits, _Allocator >::append().
basic_string& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::append | ( | const basic_string< _CharT, _Traits, _Allocator > & | __str | ) | [inline] |
Definition at line 259 of file debug/string.
References __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), and std::basic_string< _CharT, _Traits, _Allocator >::append().
basic_string& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::assign | ( | _InputIterator | __first, | |
_InputIterator | __last | |||
) | [inline] |
Set value to a range of characters.
first | Iterator referencing the first character to append. | |
last | Iterator marking the end of the range. |
Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.
Definition at line 363 of file debug/string.
References __glibcxx_check_valid_range, __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), and std::basic_string< _CharT, _Traits, _Allocator >::assign().
basic_string& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::assign | ( | size_type | __n, | |
_CharT | __c | |||
) | [inline] |
Definition at line 354 of file debug/string.
References __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), and std::basic_string< _CharT, _Traits, _Allocator >::assign().
basic_string& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::assign | ( | const _CharT * | __s | ) | [inline] |
Set value to contents of a C string.
s | The C string to use. |
Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.
Definition at line 345 of file debug/string.
References __glibcxx_check_string, __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), and std::basic_string< _CharT, _Traits, _Allocator >::assign().
basic_string& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::assign | ( | const _CharT * | __s, | |
size_type | __n | |||
) | [inline] |
Definition at line 336 of file debug/string.
References __glibcxx_check_string_len, __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), and std::basic_string< _CharT, _Traits, _Allocator >::assign().
basic_string& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::assign | ( | const basic_string< _CharT, _Traits, _Allocator > & | __str, | |
size_type | __pos, | |||
size_type | __n | |||
) | [inline] |
Definition at line 328 of file debug/string.
References __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), and std::basic_string< _CharT, _Traits, _Allocator >::assign().
basic_string& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::assign | ( | const basic_string< _CharT, _Traits, _Allocator > & | __x | ) | [inline] |
Definition at line 320 of file debug/string.
References __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), and std::basic_string< _CharT, _Traits, _Allocator >::assign().
Referenced by __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::basic_string().
const_iterator __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::begin | ( | ) | const [inline] |
Returns a read-only (constant) iterator that points to the first character in the string.
Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.
Definition at line 147 of file debug/string.
References std::basic_string< _CharT, _Traits, _Allocator >::begin().
iterator __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::begin | ( | ) | [inline] |
Returns a read/write iterator that points to the first character in the string. Unshares the string.
Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.
Definition at line 143 of file debug/string.
References std::basic_string< _CharT, _Traits, _Allocator >::begin().
Referenced by __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::rend().
const _CharT* __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::c_str | ( | ) | const [inline] |
Return const pointer to null-terminated contents.
This is a handle to internal data. Do not modify or dire things may happen.
Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.
Definition at line 581 of file debug/string.
References __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), and std::basic_string< _CharT, _Traits, _Allocator >::c_str().
void __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::clear | ( | ) | [inline] |
Erases the string, making it empty.
Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.
Definition at line 194 of file debug/string.
References __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), and std::basic_string< _CharT, _Traits, _Allocator >::clear().
int __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::compare | ( | size_type | __pos1, | |
size_type | __n1, | |||
const _CharT * | __s, | |||
size_type | __n2 | |||
) | const [inline] |
Definition at line 768 of file debug/string.
References __glibcxx_check_string_len, and std::basic_string< _CharT, _Traits, _Allocator >::compare().
int __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::compare | ( | size_type | __pos1, | |
size_type | __n1, | |||
const _CharT * | __s | |||
) | const [inline] |
Definition at line 759 of file debug/string.
References __glibcxx_check_string, and std::basic_string< _CharT, _Traits, _Allocator >::compare().
int __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::compare | ( | const _CharT * | __s | ) | const [inline] |
Compare to a C string.
s | C string to compare against. |
Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.
Definition at line 750 of file debug/string.
References __glibcxx_check_string, and std::basic_string< _CharT, _Traits, _Allocator >::compare().
int __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::compare | ( | size_type | __pos1, | |
size_type | __n1, | |||
const basic_string< _CharT, _Traits, _Allocator > & | __str, | |||
size_type | __pos2, | |||
size_type | __n2 | |||
) | const [inline] |
Definition at line 745 of file debug/string.
References std::basic_string< _CharT, _Traits, _Allocator >::compare().
int __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::compare | ( | size_type | __pos1, | |
size_type | __n1, | |||
const basic_string< _CharT, _Traits, _Allocator > & | __str | |||
) | const [inline] |
Definition at line 740 of file debug/string.
References std::basic_string< _CharT, _Traits, _Allocator >::compare().
int __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::compare | ( | const basic_string< _CharT, _Traits, _Allocator > & | __str | ) | const [inline] |
Definition at line 736 of file debug/string.
References std::basic_string< _CharT, _Traits, _Allocator >::compare().
size_type __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::copy | ( | _CharT * | __s, | |
size_type | __n, | |||
size_type | __pos = 0 | |||
) | const [inline] |
Definition at line 564 of file debug/string.
References __glibcxx_check_string_len, and std::copy().
const _CharT* __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::data | ( | ) | const [inline] |
Return const pointer to contents.
This is a handle to internal data. Do not modify or dire things may happen.
Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.
Definition at line 589 of file debug/string.
References __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), and std::basic_string< _CharT, _Traits, _Allocator >::data().
const_iterator __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::end | ( | ) | const [inline] |
Returns a read-only (constant) iterator that points one past the last character in the string.
Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.
Definition at line 155 of file debug/string.
References std::basic_string< _CharT, _Traits, _Allocator >::end().
iterator __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::end | ( | ) | [inline] |
Returns a read/write iterator that points one past the last character in the string. Unshares the string.
Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.
Definition at line 151 of file debug/string.
References std::basic_string< _CharT, _Traits, _Allocator >::end().
Referenced by __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::rbegin().
iterator __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::erase | ( | iterator | __first, | |
iterator | __last | |||
) | [inline] |
iterator __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::erase | ( | iterator | __position | ) | [inline] |
Definition at line 449 of file debug/string.
References __glibcxx_check_erase, __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), __gnu_debug::_Safe_iterator< _Iterator, _Sequence >::base(), and std::basic_string< _CharT, _Traits, _Allocator >::erase().
basic_string& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::erase | ( | size_type | __pos = 0 , |
|
size_type | __n = _Base::npos | |||
) | [inline] |
Definition at line 441 of file debug/string.
References __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), and std::basic_string< _CharT, _Traits, _Allocator >::erase().
size_type __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::find | ( | _CharT | __c, | |
size_type | __pos = 0 | |||
) | const [inline] |
size_type __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::find | ( | const _CharT * | __s, | |
size_type | __pos = 0 | |||
) | const [inline] |
size_type __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::find | ( | const _CharT * | __s, | |
size_type | __pos, | |||
size_type | __n | |||
) | const [inline] |
size_type __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::find | ( | const basic_string< _CharT, _Traits, _Allocator > & | __str, | |
size_type | __pos = 0 | |||
) | const [inline] |
size_type __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::find_first_not_of | ( | _CharT | __c, | |
size_type | __pos = 0 | |||
) | const [inline] |
Definition at line 705 of file debug/string.
References std::basic_string< _CharT, _Traits, _Allocator >::find_first_not_of().
size_type __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::find_first_not_of | ( | const _CharT * | __s, | |
size_type | __pos = 0 | |||
) | const [inline] |
Definition at line 698 of file debug/string.
References __glibcxx_check_string, and std::basic_string< _CharT, _Traits, _Allocator >::find_first_not_of().
size_type __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::find_first_not_of | ( | const _CharT * | __s, | |
size_type | __pos, | |||
size_type | __n | |||
) | const [inline] |
Definition at line 691 of file debug/string.
References __glibcxx_check_string_len, and std::basic_string< _CharT, _Traits, _Allocator >::find_first_not_of().
size_type __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::find_first_not_of | ( | const basic_string< _CharT, _Traits, _Allocator > & | __str, | |
size_type | __pos = 0 | |||
) | const [inline] |
Definition at line 687 of file debug/string.
References std::basic_string< _CharT, _Traits, _Allocator >::find_first_not_of().
size_type __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::find_first_of | ( | _CharT | __c, | |
size_type | __pos = 0 | |||
) | const [inline] |
size_type __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::find_first_of | ( | const _CharT * | __s, | |
size_type | __pos = 0 | |||
) | const [inline] |
Definition at line 654 of file debug/string.
References __glibcxx_check_string, and std::find_first_of().
size_type __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::find_first_of | ( | const _CharT * | __s, | |
size_type | __pos, | |||
size_type | __n | |||
) | const [inline] |
Definition at line 647 of file debug/string.
References __glibcxx_check_string, and std::find_first_of().
size_type __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::find_first_of | ( | const basic_string< _CharT, _Traits, _Allocator > & | __str, | |
size_type | __pos = 0 | |||
) | const [inline] |
size_type __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::find_last_not_of | ( | _CharT | __c, | |
size_type | __pos = _Base::npos | |||
) | const [inline] |
Definition at line 728 of file debug/string.
References std::basic_string< _CharT, _Traits, _Allocator >::find_last_not_of().
size_type __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::find_last_not_of | ( | const _CharT * | __s, | |
size_type | __pos = _Base::npos | |||
) | const [inline] |
Definition at line 721 of file debug/string.
References __glibcxx_check_string, and std::basic_string< _CharT, _Traits, _Allocator >::find_last_not_of().
size_type __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::find_last_not_of | ( | const _CharT * | __s, | |
size_type | __pos, | |||
size_type | __n | |||
) | const [inline] |
Definition at line 714 of file debug/string.
References __glibcxx_check_string, and std::basic_string< _CharT, _Traits, _Allocator >::find_last_not_of().
size_type __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::find_last_not_of | ( | const basic_string< _CharT, _Traits, _Allocator > & | __str, | |
size_type | __pos = _Base::npos | |||
) | const [inline] |
Definition at line 709 of file debug/string.
References std::basic_string< _CharT, _Traits, _Allocator >::find_last_not_of().
size_type __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::find_last_of | ( | _CharT | __c, | |
size_type | __pos = _Base::npos | |||
) | const [inline] |
Definition at line 683 of file debug/string.
References std::basic_string< _CharT, _Traits, _Allocator >::find_last_of().
size_type __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::find_last_of | ( | const _CharT * | __s, | |
size_type | __pos = _Base::npos | |||
) | const [inline] |
Definition at line 676 of file debug/string.
References __glibcxx_check_string, and std::basic_string< _CharT, _Traits, _Allocator >::find_last_of().
size_type __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::find_last_of | ( | const _CharT * | __s, | |
size_type | __pos, | |||
size_type | __n | |||
) | const [inline] |
Definition at line 669 of file debug/string.
References __glibcxx_check_string, and std::basic_string< _CharT, _Traits, _Allocator >::find_last_of().
size_type __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::find_last_of | ( | const basic_string< _CharT, _Traits, _Allocator > & | __str, | |
size_type | __pos = _Base::npos | |||
) | const [inline] |
Definition at line 665 of file debug/string.
References std::basic_string< _CharT, _Traits, _Allocator >::find_last_of().
void __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::insert | ( | iterator | __p, | |
_InputIterator | __first, | |||
_InputIterator | __last | |||
) | [inline] |
void __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::insert | ( | iterator | __p, | |
size_type | __n, | |||
_CharT | __c | |||
) | [inline] |
Definition at line 424 of file debug/string.
References __glibcxx_check_insert, __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), __gnu_debug::_Safe_iterator< _Iterator, _Sequence >::base(), and std::basic_string< _CharT, _Traits, _Allocator >::insert().
iterator __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::insert | ( | iterator | __p, | |
_CharT | __c | |||
) | [inline] |
Definition at line 415 of file debug/string.
References __glibcxx_check_insert, __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), __gnu_debug::_Safe_iterator< _Iterator, _Sequence >::base(), and std::basic_string< _CharT, _Traits, _Allocator >::insert().
basic_string& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::insert | ( | size_type | __pos, | |
size_type | __n, | |||
_CharT | __c | |||
) | [inline] |
Definition at line 407 of file debug/string.
References __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), and std::basic_string< _CharT, _Traits, _Allocator >::insert().
basic_string& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::insert | ( | size_type | __pos, | |
const _CharT * | __s | |||
) | [inline] |
Definition at line 398 of file debug/string.
References __glibcxx_check_string, __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), and std::basic_string< _CharT, _Traits, _Allocator >::insert().
basic_string& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::insert | ( | size_type | __pos, | |
const _CharT * | __s, | |||
size_type | __n | |||
) | [inline] |
Definition at line 389 of file debug/string.
References __glibcxx_check_string, __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), and std::basic_string< _CharT, _Traits, _Allocator >::insert().
basic_string& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::insert | ( | size_type | __pos1, | |
const basic_string< _CharT, _Traits, _Allocator > & | __str, | |||
size_type | __pos2, | |||
size_type | __n | |||
) | [inline] |
Definition at line 380 of file debug/string.
References __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), and std::basic_string< _CharT, _Traits, _Allocator >::insert().
basic_string& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::insert | ( | size_type | __pos1, | |
const basic_string< _CharT, _Traits, _Allocator > & | __str | |||
) | [inline] |
Definition at line 372 of file debug/string.
References __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), and std::basic_string< _CharT, _Traits, _Allocator >::insert().
basic_string& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::operator+= | ( | _CharT | __c | ) | [inline] |
Append a character.
c | The character to append. |
Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.
Definition at line 251 of file debug/string.
References __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::_M_base(), and __gnu_debug::_Safe_sequence_base::_M_invalidate_all().
basic_string& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::operator+= | ( | const _CharT * | __s | ) | [inline] |
Append a C string.
s | The C string to append. |
Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.
Definition at line 242 of file debug/string.
References __glibcxx_check_string, __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::_M_base(), and __gnu_debug::_Safe_sequence_base::_M_invalidate_all().
basic_string& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::operator+= | ( | const basic_string< _CharT, _Traits, _Allocator > & | __str | ) | [inline] |
Definition at line 234 of file debug/string.
References __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::_M_base(), and __gnu_debug::_Safe_sequence_base::_M_invalidate_all().
basic_string& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::operator= | ( | _CharT | __c | ) | [inline] |
Set value to string of length 1.
c | Source character. |
Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.
Definition at line 134 of file debug/string.
References __gnu_debug::_Safe_sequence_base::_M_invalidate_all().
basic_string& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::operator= | ( | const _CharT * | __s | ) | [inline] |
Copy contents of s into this string.
s | Source null-terminated string. |
Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.
Definition at line 125 of file debug/string.
References __glibcxx_check_string, and __gnu_debug::_Safe_sequence_base::_M_invalidate_all().
basic_string& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::operator= | ( | const basic_string< _CharT, _Traits, _Allocator > & | __str | ) | [inline] |
Definition at line 117 of file debug/string.
References __gnu_debug::_Safe_sequence_base::_M_invalidate_all().
reference __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::operator[] | ( | size_type | __pos | ) | [inline] |
Definition at line 215 of file debug/string.
References __glibcxx_check_subscript, __gnu_debug::__msg_subscript_oob, _GLIBCXX_DEBUG_VERIFY, __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::_M_base(), and std::basic_string< _CharT, _Traits, _Allocator >::size().
const_reference __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::operator[] | ( | size_type | __pos | ) | const [inline] |
Definition at line 204 of file debug/string.
References __gnu_debug::__msg_subscript_oob, _GLIBCXX_DEBUG_VERIFY, __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::_M_base(), and std::basic_string< _CharT, _Traits, _Allocator >::size().
void __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::push_back | ( | _CharT | __c | ) | [inline] |
Append a single character.
c | Character to append. |
Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.
Definition at line 313 of file debug/string.
References __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), and std::basic_string< _CharT, _Traits, _Allocator >::push_back().
const_reverse_iterator __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::rbegin | ( | ) | const [inline] |
Returns a read-only (constant) reverse iterator that points to the last character in the string. Iteration is done in reverse element order.
Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.
Definition at line 163 of file debug/string.
References __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::end().
reverse_iterator __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::rbegin | ( | ) | [inline] |
Returns a read/write reverse iterator that points to the last character in the string. Iteration is done in reverse element order. Unshares the string.
Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.
Definition at line 159 of file debug/string.
References __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::end().
const_reverse_iterator __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::rend | ( | ) | const [inline] |
Returns a read-only (constant) reverse iterator that points to one before the first character in the string. Iteration is done in reverse element order.
Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.
Definition at line 171 of file debug/string.
References __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::begin().
reverse_iterator __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::rend | ( | ) | [inline] |
Returns a read/write reverse iterator that points to one before the first character in the string. Iteration is done in reverse element order. Unshares the string.
Reimplemented from std::basic_string< _CharT, _Traits, _Allocator >.
Definition at line 167 of file debug/string.
References __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::begin().
basic_string& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::replace | ( | iterator | __i1, | |
iterator | __i2, | |||
_InputIterator | __j1, | |||
_InputIterator | __j2 | |||
) | [inline] |
Definition at line 553 of file debug/string.
References __glibcxx_check_erase_range, __glibcxx_check_valid_range, __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), __gnu_debug::_Safe_iterator< _Iterator, _Sequence >::base(), and std::replace().
basic_string& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::replace | ( | iterator | __i1, | |
iterator | __i2, | |||
size_type | __n, | |||
_CharT | __c | |||
) | [inline] |
Definition at line 543 of file debug/string.
References __glibcxx_check_erase_range, __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), __gnu_debug::_Safe_iterator< _Iterator, _Sequence >::base(), and std::replace().
basic_string& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::replace | ( | iterator | __i1, | |
iterator | __i2, | |||
const _CharT * | __s | |||
) | [inline] |
Definition at line 533 of file debug/string.
References __glibcxx_check_erase_range, __glibcxx_check_string, __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), __gnu_debug::_Safe_iterator< _Iterator, _Sequence >::base(), and std::replace().
basic_string& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::replace | ( | iterator | __i1, | |
iterator | __i2, | |||
const _CharT * | __s, | |||
size_type | __n | |||
) | [inline] |
Definition at line 523 of file debug/string.
References __glibcxx_check_erase_range, __glibcxx_check_string_len, __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), __gnu_debug::_Safe_iterator< _Iterator, _Sequence >::base(), and std::replace().
basic_string& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::replace | ( | iterator | __i1, | |
iterator | __i2, | |||
const basic_string< _CharT, _Traits, _Allocator > & | __str | |||
) | [inline] |
Definition at line 514 of file debug/string.
References __glibcxx_check_erase_range, __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), __gnu_debug::_Safe_iterator< _Iterator, _Sequence >::base(), and std::replace().
basic_string& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::replace | ( | size_type | __pos, | |
size_type | __n1, | |||
size_type | __n2, | |||
_CharT | __c | |||
) | [inline] |
Definition at line 506 of file debug/string.
References __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), and std::replace().
basic_string& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::replace | ( | size_type | __pos, | |
size_type | __n1, | |||
const _CharT * | __s | |||
) | [inline] |
Definition at line 497 of file debug/string.
References __glibcxx_check_string, __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), and std::replace().
basic_string& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::replace | ( | size_type | __pos, | |
size_type | __n1, | |||
const _CharT * | __s, | |||
size_type | __n2 | |||
) | [inline] |
Definition at line 487 of file debug/string.
References __glibcxx_check_string_len, __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), and std::replace().
basic_string& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::replace | ( | size_type | __pos1, | |
size_type | __n1, | |||
const basic_string< _CharT, _Traits, _Allocator > & | __str, | |||
size_type | __pos2, | |||
size_type | __n2 | |||
) | [inline] |
Definition at line 478 of file debug/string.
References __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), and std::replace().
basic_string& __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::replace | ( | size_type | __pos1, | |
size_type | __n1, | |||
const basic_string< _CharT, _Traits, _Allocator > & | __str | |||
) | [inline] |
Definition at line 470 of file debug/string.
References __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), and std::replace().
void __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::resize | ( | size_type | __n | ) | [inline] |
Definition at line 187 of file debug/string.
References __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::resize().
void __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::resize | ( | size_type | __n, | |
_CharT | __c | |||
) | [inline] |
Definition at line 180 of file debug/string.
References __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), and std::basic_string< _CharT, _Traits, _Allocator >::resize().
Referenced by __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::resize().
size_type __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::rfind | ( | _CharT | __c, | |
size_type | __pos = _Base::npos | |||
) | const [inline] |
Definition at line 639 of file debug/string.
References std::basic_string< _CharT, _Traits, _Allocator >::rfind().
size_type __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::rfind | ( | const _CharT * | __s, | |
size_type | __pos = _Base::npos | |||
) | const [inline] |
Definition at line 632 of file debug/string.
References __glibcxx_check_string, and std::basic_string< _CharT, _Traits, _Allocator >::rfind().
size_type __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::rfind | ( | const _CharT * | __s, | |
size_type | __pos, | |||
size_type | __n | |||
) | const [inline] |
Definition at line 625 of file debug/string.
References __glibcxx_check_string_len, and std::basic_string< _CharT, _Traits, _Allocator >::rfind().
size_type __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::rfind | ( | const basic_string< _CharT, _Traits, _Allocator > & | __str, | |
size_type | __pos = _Base::npos | |||
) | const [inline] |
Definition at line 621 of file debug/string.
References std::basic_string< _CharT, _Traits, _Allocator >::rfind().
basic_string __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::substr | ( | size_type | __pos = 0 , |
|
size_type | __n = _Base::npos | |||
) | const [inline] |
Definition at line 732 of file debug/string.
References std::basic_string< _CharT, _Traits, _Allocator >::basic_string(), and std::basic_string< _CharT, _Traits, _Allocator >::substr().
void __gnu_debug::basic_string< _CharT, _Traits, _Allocator >::swap | ( | basic_string< _CharT, _Traits, _Allocator > & | __x | ) | [inline] |
Definition at line 571 of file debug/string.
References __gnu_debug::_Safe_sequence_base::_M_invalidate_all(), __gnu_debug::_Safe_sequence_base::_M_swap(), and std::swap().
Referenced by __gnu_debug::swap().