Public Types | |
typedef Traits | traits_type |
typedef Traits::char_type | value_type |
typedef Allocator | allocator_type |
typedef Allocator::size_type | size_type |
typedef Allocator::difference_type | difference_type |
typedef Allocator::reference | reference |
typedef Allocator::const_reference | const_reference |
typedef Allocator::pointer | pointer |
typedef Allocator::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 position, size_type n=Base::npos, const Allocator &a=Allocator()) | |
basic_string (const CharT *s, size_type n, const Allocator &a=Allocator()) | |
Construct string initialized by a character array. | |
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()) | |
Construct string as multiple characters. | |
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) |
Resizes the string to the specified number of characters. | |
void | resize (size_type n) |
Resizes the string to the specified number of characters. | |
void | clear () |
const_reference | operator[] (size_type position) const |
Subscript access to the data contained in the string. | |
reference | operator[] (size_type position) |
Subscript access to the data contained in the string. | |
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 position, size_type n) |
basic_string & | append (const CharT *s, size_type n) |
Append a C substring. | |
basic_string & | append (const CharT *s) |
Append a C string. | |
basic_string & | append (size_type n, CharT c) |
Append multiple characters. | |
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 position, size_type n) |
basic_string & | assign (const CharT *s, size_type n) |
Set value to a C substring. | |
basic_string & | assign (const CharT *s) |
Set value to contents of a C string. | |
basic_string & | assign (size_type n, CharT c) |
Set value to multiple characters. | |
template<typename InputIterator> | |
basic_string & | assign (InputIterator first, InputIterator last) |
Set value to a range of characters. | |
basic_string & | insert (size_type position1, const basic_string &str) |
basic_string & | insert (size_type position1, const basic_string &str, size_type position2, size_type n) |
basic_string & | insert (size_type position, const CharT *s, size_type n) |
Insert a C substring. | |
basic_string & | insert (size_type position, const CharT *s) |
Insert a C string. | |
basic_string & | insert (size_type position, size_type n, CharT c) |
Insert multiple characters. | |
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 position=0, size_type n=Base::npos) |
Remove characters. | |
iterator | erase (iterator position) |
iterator | erase (iterator first, iterator last) |
basic_string & | replace (size_type position1, size_type n1, const basic_string &str) |
basic_string & | replace (size_type position1, size_type n1, const basic_string &str, size_type position2, size_type n2) |
basic_string & | replace (size_type position, size_type n1, const CharT *s, size_type n2) |
Replace characters with value of a C substring. | |
basic_string & | replace (size_type position, size_type n1, const CharT *s) |
Replace characters with value of a C string. | |
basic_string & | replace (size_type position, size_type n1, size_type n2, CharT c) |
Replace characters with multiple characters. | |
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 position=0) const |
Copy substring into C string. | |
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 position=0) const |
size_type | find (const CharT *s, size_type position, size_type n) const |
Find position of a C substring. | |
size_type | find (const CharT *s, size_type position=0) const |
Find position of a C string. | |
size_type | find (CharT c, size_type position=0) const |
Find position of a character. | |
size_type | rfind (const basic_string &str, size_type position=Base::npos) const |
size_type | rfind (const CharT *s, size_type position, size_type n) const |
Find last position of a C substring. | |
size_type | rfind (const CharT *s, size_type position=Base::npos) const |
Find last position of a C string. | |
size_type | rfind (CharT c, size_type position=Base::npos) const |
Find last position of a character. | |
size_type | find_first_of (const basic_string &str, size_type position=0) const |
size_type | find_first_of (const CharT *s, size_type position, size_type n) const |
Find position of a character of C substring. | |
size_type | find_first_of (const CharT *s, size_type position=0) const |
Find position of a character of C string. | |
size_type | find_first_of (CharT c, size_type position=0) const |
Find position of a character. | |
size_type | find_last_of (const basic_string &str, size_type position=Base::npos) const |
size_type | find_last_of (const CharT *s, size_type position, size_type n) const |
Find last position of a character of C substring. | |
size_type | find_last_of (const CharT *s, size_type position=Base::npos) const |
Find last position of a character of C string. | |
size_type | find_last_of (CharT c, size_type position=Base::npos) const |
Find last position of a character. | |
size_type | find_first_not_of (const basic_string &str, size_type position=0) const |
size_type | find_first_not_of (const CharT *s, size_type position, size_type n) const |
Find position of a character not in C substring. | |
size_type | find_first_not_of (const CharT *s, size_type position=0) const |
Find position of a character not in C string. | |
size_type | find_first_not_of (CharT c, size_type position=0) const |
Find position of a different character. | |
size_type | find_last_not_of (const basic_string &str, size_type position=Base::npos) const |
size_type | find_last_not_of (const CharT *s, size_type position, size_type n) const |
Find last position of a character not in C substring. | |
size_type | find_last_not_of (const CharT *s, size_type position=Base::npos) const |
Find position of a character not in C string. | |
size_type | find_last_not_of (CharT c, size_type position=Base::npos) const |
Find last position of a different character. | |
basic_string | substr (size_type position=0, size_type n=Base::npos) const |
Get a substring. | |
int | compare (const basic_string &str) const |
int | compare (size_type position1, size_type n1, const basic_string &str) const |
int | compare (size_type position1, size_type n1, const basic_string &str, size_type position2, size_type n2) const |
int | compare (const CharT *s) const |
Compare to a C string. | |
int | compare (size_type position1, size_type n1, const CharT *s) const |
Compare substring to a C string. | |
int | compare (size_type position1, size_type n1, const CharT *s, size_type n2) const |
Compare substring against a character array. | |
Base & | M_base () |
const Base & | M_base () const |
basic_string () | |
Default constructor creates an empty string. | |
basic_string (const basic_string &str) | |
Construct string with copy of value of str. | |
basic_string (const basic_string &str, size_type position, size_type n=npos) | |
Construct string as copy of a substring. | |
basic_string (const basic_string &str, size_type position, size_type n, const Allocator &a) | |
Construct string as copy of a substring. | |
size_type | size () const |
null-termination. | |
size_type | length () const |
null-termination. | |
size_type | max_size () const |
Returns the size() of the largest possible string. | |
size_type | capacity () const |
void | reserve (size_type __res_arg=0) |
Attempt to preallocate enough memory for specified number of characters. | |
bool | empty () const |
const_reference | at (size_type n) const |
Provides access to the data contained in the string. | |
reference | at (size_type n) |
Provides access to the data contained in the string. | |
basic_string & | operator+= (const basic_string &str) |
Append a string to this string. | |
basic_string & | append (const basic_string &str) |
Append a string to this string. | |
basic_string & | append (const basic_string &str, size_type position, size_type n) |
Append a substring. | |
basic_string & | assign (const basic_string &str) |
Set value to contents of another string. | |
basic_string & | assign (const basic_string &str, size_type position, size_type n) |
Set value to a substring of a string. | |
void | insert (iterator __p, size_type n, CharTc) |
Insert multiple characters. | |
void | insert (iterator __p, InputIterator __beg, InputIterator __end) |
Insert a range of characters. | |
basic_string & | insert (size_type position1, const basic_string &str) |
Insert value of a string. | |
basic_string & | insert (size_type position1, const basic_string &str, size_type position2, size_type n) |
Insert a substring. | |
iterator | insert (iterator __p, CharTc) |
Insert one character. | |
iterator | erase (iterator position) |
Remove one character. | |
iterator | erase (iterator first, iterator last) |
Remove a range of characters. | |
basic_string & | replace (size_type position, size_type n, const basic_string &str) |
Replace characters with value from another string. | |
basic_string & | replace (size_type position1, size_type n1, const basic_string &str, size_type position2, size_type n2) |
Replace characters with value from another string. | |
basic_string & | replace (iterator __i1, iterator __i2, const basic_string &str) |
Replace range of characters with string. | |
basic_string & | replace (iterator __i1, iterator __i2, const CharT *s, size_type n) |
Replace range of characters with C substring. | |
basic_string & | replace (iterator __i1, iterator __i2, const CharT *s) |
Replace range of characters with C string. | |
basic_string & | replace (iterator __i1, iterator __i2, size_type n, CharTc) |
Replace range of characters with multiple characters. | |
basic_string & | replace (iterator __i1, iterator __i2, InputIterator __k1, InputIterator __k2) |
Replace range of characters with range. | |
basic_string & | replace (iterator __i1, iterator __i2, CharT *__k1, CharT *__k2) |
basic_string & | replace (iterator __i1, iterator __i2, const CharT *__k1, const CharT *__k2) |
basic_string & | replace (iterator __i1, iterator __i2, iterator __k1, iterator __k2) |
basic_string & | replace (iterator __i1, iterator __i2, const_iterator __k1, const_iterator __k2) |
void | swap (basic_string &s) |
Swap contents with another string. | |
allocator_type | get_allocator () const |
Return copy of allocator used to construct this string. | |
size_type | find (const basic_string &str, size_type position=0) const |
Find position of a string. | |
size_type | rfind (const basic_string &str, size_type position=npos) const |
Find last position of a string. | |
size_type | find_first_of (const basic_string &str, size_type position=0) const |
Find position of a character of string. | |
size_type | find_last_of (const basic_string &str, size_type position=npos) const |
Find last position of a character of string. | |
size_type | find_first_not_of (const basic_string &str, size_type position=0) const |
Find position of a character not in string. | |
size_type | find_last_not_of (const basic_string &str, size_type position=npos) const |
Find last position of a character not in string. | |
int | compare (const basic_string &str) const |
Compare to a string. | |
int | compare (size_type position, size_type n, const basic_string &str) const |
Compare substring to a string. | |
int | compare (size_type position1, size_type n1, const basic_string &str, size_type position2, size_type n2) const |
Compare substring to a substring. | |
void | M_invalidate_if (Predicate pred) |
void | M_transfer_iter (const Safe_iterator< Iterator, basic_string< CharT, Traits, Allocator > > &x) |
void | M_invalidate_all () const |
Public Attributes | |
Safe_iterator_base * | M_iterators |
The list of mutable iterators that reference this container. | |
Safe_iterator_base * | M_const_iterators |
The list of constant iterators that reference this container. | |
unsigned int | M_version |
The container version number. This number may never be 0. | |
Static Public Attributes | |
static const size_type | npos |
Value returned by various member functions when they fail. | |
Protected Member Functions | |
void | M_detach_all () |
void | M_detach_singular () |
void | M_revalidate_singular () |
void | M_swap (Safe_sequence_base &x) |
Private Types | |
typedef std::basic_string< CharT, Traits, Allocator > | Base |
typedef __gnu_debug::Safe_sequence< basic_string > | Safe_base |
Definition at line 41 of file debug/string.
|
Construct an empty string using allocator a.
Reimplemented from std::basic_string< CharT, Traits, Allocator >. Definition at line 72 of file debug/string. |
|
Construct string initialized by a character array.
Reimplemented from std::basic_string< CharT, Traits, Allocator >. Definition at line 93 of file debug/string. |
|
Construct string as copy of a C string.
Reimplemented from std::basic_string< CharT, Traits, Allocator >. Definition at line 98 of file debug/string. References __gnu_debug::basic_string< CharT, Traits, Allocator >::assign(). |
|
Construct string as multiple characters.
Reimplemented from std::basic_string< CharT, Traits, Allocator >. Definition at line 102 of file debug/string. |
|
Construct string as copy of a range.
Reimplemented from std::basic_string< CharT, Traits, Allocator >. Definition at line 108 of file debug/string. |
|
Destroy the string instance.
Reimplemented from std::basic_string< CharT, Traits, Allocator >. Definition at line 113 of file debug/string. |
|
Append a substring.
|
|
Append a string to this string.
|
|
Append a range of characters.
Reimplemented from std::basic_string< CharT, Traits, Allocator >. Definition at line 292 of file debug/string. |
|
Append multiple characters.
Reimplemented from std::basic_string< CharT, Traits, Allocator >. Definition at line 283 of file debug/string. |
|
Append a C string.
Reimplemented from std::basic_string< CharT, Traits, Allocator >. Definition at line 274 of file debug/string. |
|
Append a C substring.
Reimplemented from std::basic_string< CharT, Traits, Allocator >. Definition at line 265 of file debug/string. |
|
Set value to a substring of a string.
Definition at line 809 of file basic_string.h. References std::basic_string< CharT, Traits, Alloc >::assign(). |
|
Set value to contents of another string.
|
|
Set value to a range of characters.
Reimplemented from std::basic_string< CharT, Traits, Allocator >. Definition at line 353 of file debug/string. |
|
Set value to multiple characters.
Reimplemented from std::basic_string< CharT, Traits, Allocator >. Definition at line 344 of file debug/string. |
|
Set value to contents of a C string.
Reimplemented from std::basic_string< CharT, Traits, Allocator >. Definition at line 335 of file debug/string. |
|
Set value to a C substring.
Reimplemented from std::basic_string< CharT, Traits, Allocator >. Definition at line 326 of file debug/string. |
|
Provides access to the data contained in the string.
Definition at line 678 of file basic_string.h. References std::__throw_out_of_range(), and std::basic_string< CharT, Traits, Alloc >::size(). |
|
Provides access to the data contained in the string.
Definition at line 659 of file basic_string.h. References std::__throw_out_of_range(). |
|
Construct string as copy of a substring.
|
|
Construct string as copy of a substring.
|
|
Construct string with copy of value of str.
|
|
Default constructor creates an empty string.
Referenced by __gnu_debug::basic_string< CharT, Traits, Allocator >::substr(). |
|
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 146 of file debug/string. |
|
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 142 of file debug/string. Referenced by __gnu_debug::basic_string< CharT, Traits, Allocator >::rend(). |
|
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 571 of file debug/string. |
|
Returns the total number of characters that the string can hold before needing to allocate more memory. Definition at line 578 of file basic_string.h. |
|
Erases the string, making it empty. Reimplemented from std::basic_string< CharT, Traits, Allocator >. Definition at line 193 of file debug/string. |
|
Compare substring to a substring.
|
|
Compare substring to a string.
|
|
Compare to a string.
Definition at line 1860 of file basic_string.h. References std::basic_string< CharT, Traits, Alloc >::data(), std::min(), and std::basic_string< CharT, Traits, Alloc >::size(). |
|
Compare substring against a character array.
NB: s must have at least n2 characters, '' has no special meaning. Reimplemented from std::basic_string< CharT, Traits, Allocator >. Definition at line 758 of file debug/string. |
|
Compare substring to a C string.
Reimplemented from std::basic_string< CharT, Traits, Allocator >. Definition at line 749 of file debug/string. |
|
Compare to a C string.
Reimplemented from std::basic_string< CharT, Traits, Allocator >. Definition at line 740 of file debug/string. |
|
Copy substring into C string.
Reimplemented from std::basic_string< CharT, Traits, Allocator >. Definition at line 554 of file debug/string. References std::copy(). |
|
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 579 of file debug/string. |
|
Returns true if the string is empty. Equivalent to *this == "". Definition at line 610 of file basic_string.h. References std::basic_string< CharT, Traits, Alloc >::size(). |
|
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 154 of file debug/string. |
|
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 150 of file debug/string. Referenced by __gnu_debug::basic_string< CharT, Traits, Allocator >::rbegin(). |
|
Remove a range of characters.
Definition at line 1072 of file basic_string.h. |
|
Remove one character.
Definition at line 1052 of file basic_string.h. |
|
Remove characters.
Reimplemented from std::basic_string< CharT, Traits, Allocator >. Definition at line 431 of file debug/string. |
|
Find position of a string.
Definition at line 1498 of file basic_string.h. References std::basic_string< CharT, Traits, Alloc >::data(), std::basic_string< CharT, Traits, Alloc >::find(), and std::basic_string< CharT, Traits, Alloc >::size(). |
|
Find position of a character.
Reimplemented from std::basic_string< CharT, Traits, Allocator >. Definition at line 607 of file debug/string. References std::find(). |
|
Find position of a C string.
Reimplemented from std::basic_string< CharT, Traits, Allocator >. Definition at line 600 of file debug/string. References std::find(). |
|
Find position of a C substring.
Reimplemented from std::basic_string< CharT, Traits, Allocator >. Definition at line 593 of file debug/string. References std::find(). |
|
Find position of a character not in string.
Definition at line 1722 of file basic_string.h. References std::basic_string< CharT, Traits, Alloc >::data(), std::basic_string< CharT, Traits, Alloc >::find_first_not_of(), and std::basic_string< CharT, Traits, Alloc >::size(). |
|
Find position of a different character.
Reimplemented from std::basic_string< CharT, Traits, Allocator >. Definition at line 695 of file debug/string. |
|
Find position of a character not in C string.
Reimplemented from std::basic_string< CharT, Traits, Allocator >. Definition at line 688 of file debug/string. |
|
Find position of a character not in C substring.
Reimplemented from std::basic_string< CharT, Traits, Allocator >. Definition at line 681 of file debug/string. |
|
Find position of a character of string.
Definition at line 1600 of file basic_string.h. References std::basic_string< CharT, Traits, Alloc >::data(), std::basic_string< CharT, Traits, Alloc >::find_first_of(), and std::basic_string< CharT, Traits, Alloc >::size(). |
|
Find position of a character.
Note: equivalent to find(c, pos). Reimplemented from std::basic_string< CharT, Traits, Allocator >. Definition at line 651 of file debug/string. References std::find_first_of(). |
|
Find position of a character of C string.
Reimplemented from std::basic_string< CharT, Traits, Allocator >. Definition at line 644 of file debug/string. References std::find_first_of(). |
|
Find position of a character of C substring.
Reimplemented from std::basic_string< CharT, Traits, Allocator >. Definition at line 637 of file debug/string. References std::find_first_of(). |
|
Find last position of a character not in string.
Definition at line 1781 of file basic_string.h. References std::basic_string< CharT, Traits, Alloc >::data(), std::basic_string< CharT, Traits, Alloc >::find_last_not_of(), and std::basic_string< CharT, Traits, Alloc >::size(). |
|
Find last position of a different character.
Reimplemented from std::basic_string< CharT, Traits, Allocator >. Definition at line 718 of file debug/string. |
|
Find position of a character not in C string.
Reimplemented from std::basic_string< CharT, Traits, Allocator >. Definition at line 711 of file debug/string. |
|
Find last position of a character not in C substring.
Reimplemented from std::basic_string< CharT, Traits, Allocator >. Definition at line 704 of file debug/string. |
|
Find last position of a character of string.
Definition at line 1661 of file basic_string.h. References std::basic_string< CharT, Traits, Alloc >::data(), std::basic_string< CharT, Traits, Alloc >::find_last_of(), and std::basic_string< CharT, Traits, Alloc >::size(). |
|
Find last position of a character.
Note: equivalent to rfind(c, pos). Reimplemented from std::basic_string< CharT, Traits, Allocator >. Definition at line 673 of file debug/string. |
|
Find last position of a character of C string.
Reimplemented from std::basic_string< CharT, Traits, Allocator >. Definition at line 666 of file debug/string. |
|
Find last position of a character of C substring.
Reimplemented from std::basic_string< CharT, Traits, Allocator >. Definition at line 659 of file debug/string. |
|
Return copy of allocator used to construct this string.
Definition at line 1471 of file basic_string.h. |
|
Insert one character.
Definition at line 1015 of file basic_string.h. |
|
Insert a substring.
Definition at line 934 of file basic_string.h. References std::basic_string< CharT, Traits, Alloc >::insert(). |
|
Insert value of a string.
Definition at line 912 of file basic_string.h. References std::basic_string< CharT, Traits, Alloc >::insert(), and std::basic_string< CharT, Traits, Alloc >::size(). |
|
Insert a range of characters.
Definition at line 897 of file basic_string.h. References std::basic_string< CharT, Traits, Alloc >::replace(). |
|
Insert multiple characters.
Definition at line 882 of file basic_string.h. References std::basic_string< CharT, Traits, Alloc >::replace(). |
|
Insert multiple characters.
Reimplemented from std::basic_string< CharT, Traits, Allocator >. Definition at line 397 of file debug/string. |
|
Insert a C string.
Reimplemented from std::basic_string< CharT, Traits, Allocator >. Definition at line 388 of file debug/string. |
|
Insert a C substring.
Reimplemented from std::basic_string< CharT, Traits, Allocator >. Definition at line 379 of file debug/string. |
|
null-termination.
Definition at line 541 of file basic_string.h. |
|
Detach all iterators, leaving them singular. |
|
Detach all singular iterators.
|
|
Invalidates all iterators. Definition at line 202 of file safe_base.h. |
|
Invalidates all iterators |
|
Revalidates all attached singular iterators. This method may be used to validate iterators that were invalidated before (but for some reasion, such as an exception, need to become valid again). |
|
Swap this sequence with the given sequence. This operation also swaps ownership of the iterators, so that when the operation is complete all iterators that originally referenced one container now reference the other container. Definition at line 172 of file debug.cc. References __gnu_debug::swap(). |
|
Transfers all iterators that reference this memory location to this sequence from whatever sequence they are attached to. |
|
Returns the size() of the largest possible string.
Definition at line 545 of file basic_string.h. |
|
Append a string to this string.
Definition at line 693 of file basic_string.h. References std::basic_string< CharT, Traits, Alloc >::append(). |
|
Append a character.
Reimplemented from std::basic_string< CharT, Traits, Allocator >. Definition at line 241 of file debug/string. |
|
Append a C string.
Reimplemented from std::basic_string< CharT, Traits, Allocator >. Definition at line 232 of file debug/string. |
|
Set value to string of length 1.
Reimplemented from std::basic_string< CharT, Traits, Allocator >. Definition at line 133 of file debug/string. |
|
Copy contents of s into this string.
Reimplemented from std::basic_string< CharT, Traits, Allocator >. Definition at line 124 of file debug/string. |
|
Subscript access to the data contained in the string.
Reimplemented from std::basic_string< CharT, Traits, Allocator >. Definition at line 214 of file debug/string. |
|
Subscript access to the data contained in the string.
Reimplemented from std::basic_string< CharT, Traits, Allocator >. Definition at line 203 of file debug/string. References std::basic_string< CharT, Traits, Allocator >::size(). |
|
Append a single character.
Reimplemented from std::basic_string< CharT, Traits, Allocator >. Definition at line 303 of file debug/string. |
|
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 162 of file debug/string. References __gnu_debug::basic_string< CharT, Traits, Allocator >::end(). |
|
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 158 of file debug/string. References __gnu_debug::basic_string< CharT, Traits, Allocator >::end(). |
|
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 170 of file debug/string. References __gnu_debug::basic_string< CharT, Traits, Allocator >::begin(). |
|
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 166 of file debug/string. References __gnu_debug::basic_string< CharT, Traits, Allocator >::begin(). |
|
Replace range of characters with range.
Definition at line 1288 of file basic_string.h. |
|
Replace range of characters with multiple characters.
Definition at line 1265 of file basic_string.h. |
|
Replace range of characters with C string.
Definition at line 1244 of file basic_string.h. References std::basic_string< CharT, Traits, Alloc >::replace(). |
|
Replace range of characters with C substring.
Definition at line 1223 of file basic_string.h. References std::basic_string< CharT, Traits, Alloc >::replace(). |
|
Replace range of characters with string.
Definition at line 1205 of file basic_string.h. References std::basic_string< CharT, Traits, Alloc >::replace(), and std::basic_string< CharT, Traits, Alloc >::size(). |
|
Replace characters with value from another string.
Definition at line 1121 of file basic_string.h. References std::basic_string< CharT, Traits, Alloc >::replace(). |
|
Replace characters with value from another string.
Definition at line 1099 of file basic_string.h. References std::basic_string< CharT, Traits, Alloc >::replace(), and std::basic_string< CharT, Traits, Alloc >::size(). |
|
Replace characters with multiple characters.
Reimplemented from std::basic_string< CharT, Traits, Allocator >. Definition at line 496 of file debug/string. References std::replace(). |
|
Replace characters with value of a C string.
Reimplemented from std::basic_string< CharT, Traits, Allocator >. Definition at line 487 of file debug/string. References std::replace(). |
|
Replace characters with value of a C substring.
Reimplemented from std::basic_string< CharT, Traits, Allocator >. Definition at line 477 of file debug/string. References std::replace(). |
|
Attempt to preallocate enough memory for specified number of characters.
The advantage of this function is that if optimal code is a necessity and the user can determine the string length that will be required, the user can reserve the memory in advance, and thus prevent a possible reallocation of memory and copying of string data. |
|
Resizes the string to the specified number of characters.
Reimplemented from std::basic_string< CharT, Traits, Allocator >. Definition at line 186 of file debug/string. References __gnu_debug::basic_string< CharT, Traits, Allocator >::resize(). |
|
Resizes the string to the specified number of characters.
Reimplemented from std::basic_string< CharT, Traits, Allocator >. Definition at line 179 of file debug/string. Referenced by __gnu_debug::basic_string< CharT, Traits, Allocator >::resize(). |
|
Find last position of a string.
Definition at line 1542 of file basic_string.h. References std::basic_string< CharT, Traits, Alloc >::data(), std::basic_string< CharT, Traits, Alloc >::rfind(), and std::basic_string< CharT, Traits, Alloc >::size(). |
|
Find last position of a character.
Reimplemented from std::basic_string< CharT, Traits, Allocator >. Definition at line 629 of file debug/string. |
|
Find last position of a C string.
Reimplemented from std::basic_string< CharT, Traits, Allocator >. Definition at line 622 of file debug/string. |
|
Find last position of a C substring.
Reimplemented from std::basic_string< CharT, Traits, Allocator >. Definition at line 615 of file debug/string. |
|
null-termination.
Definition at line 536 of file basic_string.h. Referenced by __gnu_debug::basic_string< CharT, Traits, Allocator >::operator[](). |
|
Get a substring.
Reimplemented from std::basic_string< CharT, Traits, Allocator >. Definition at line 722 of file debug/string. References std::basic_string< CharT, Traits, Allocator >::basic_string(). |
|
Swap contents with another string.
|
|
The list of constant iterators that reference this container.
Definition at line 156 of file safe_base.h. |
|
The list of mutable iterators that reference this container.
Definition at line 153 of file safe_base.h. |
|
The container version number. This number may never be 0.
Definition at line 159 of file safe_base.h. |
|
Value returned by various member functions when they fail.
Definition at line 253 of file basic_string.h. |