push_back
, at
, and array access are supported.
Definition at line 111 of file basic_string.h.
|
Default constructor creates an empty string.
Definition at line 2055 of file basic_string.h. |
|
Construct an empty string using allocator a.
Reimplemented in __gnu_debug::basic_string< _CharT, _Traits, _Allocator >. Definition at line 191 of file basic_string.tcc. |
|
Construct string with copy of value of str.
Reimplemented in __gnu_debug::basic_string< _CharT, _Traits, _Allocator >. Definition at line 183 of file basic_string.tcc. |
|
Construct string as copy of a substring.
Definition at line 197 of file basic_string.tcc. |
|
Construct string as copy of a substring.
Definition at line 207 of file basic_string.tcc. |
|
Construct string initialized by a character array.
Definition at line 219 of file basic_string.tcc. |
|
Construct string as copy of a C string.
Reimplemented in __gnu_debug::basic_string< _CharT, _Traits, _Allocator >. Definition at line 226 of file basic_string.tcc. |
|
Construct string as multiple characters.
Definition at line 233 of file basic_string.tcc. |
|
Construct string as copy of a range.
Reimplemented in __gnu_debug::basic_string< _CharT, _Traits, _Allocator >. Definition at line 241 of file basic_string.tcc. |
|
Destroy the string instance.
Reimplemented in __gnu_debug::basic_string< _CharT, _Traits, _Allocator >. Definition at line 482 of file basic_string.h. |
|
Append a range of characters.
Reimplemented in __gnu_debug::basic_string< _CharT, _Traits, _Allocator >. Definition at line 851 of file basic_string.h. |
|
Append multiple characters.
Definition at line 286 of file basic_string.tcc. References std::basic_string< _CharT, _Traits, _Alloc >::size(). |
|
Append a C string.
Reimplemented in __gnu_debug::basic_string< _CharT, _Traits, _Allocator >. Definition at line 824 of file basic_string.h. |
|
Append a C substring.
Definition at line 303 of file basic_string.tcc. References __glibcxx_requires_string_len, std::basic_string< _CharT, _Traits, _Alloc >::reserve(), and std::basic_string< _CharT, _Traits, _Alloc >::size(). |
|
Append a substring.
Definition at line 347 of file basic_string.tcc. References std::basic_string< _CharT, _Traits, _Alloc >::_M_check(), std::basic_string< _CharT, _Traits, _Alloc >::_M_data(), std::basic_string< _CharT, _Traits, _Alloc >::_M_limit(), and std::basic_string< _CharT, _Traits, _Alloc >::size(). |
|
Append a string to this string.
Reimplemented in __gnu_debug::basic_string< _CharT, _Traits, _Allocator >. Definition at line 330 of file basic_string.tcc. References std::basic_string< _CharT, _Traits, _Alloc >::_M_data(), and std::basic_string< _CharT, _Traits, _Alloc >::size(). Referenced by std::money_put< _CharT, _OutIter >::_M_insert(), std::collate< _CharT >::do_transform(), std::operator+(), std::operator>>(), and std::basic_string< _CharT, _Traits, _Alloc >::resize(). |
|
Set value to a range of characters.
Reimplemented in __gnu_debug::basic_string< _CharT, _Traits, _Allocator >. Definition at line 946 of file basic_string.h. |
|
Set value to multiple characters.
Definition at line 933 of file basic_string.h. |
|
Set value to contents of a C string.
Reimplemented in __gnu_debug::basic_string< _CharT, _Traits, _Allocator >. Definition at line 917 of file basic_string.h. |
|
Set value to a C substring.
Definition at line 264 of file basic_string.tcc. References __glibcxx_requires_string_len. |
|
Set value to a substring of a string.
Definition at line 889 of file basic_string.h. |
|
Set value to contents of another string.
Reimplemented in __gnu_debug::basic_string< _CharT, _Traits, _Allocator >. Definition at line 248 of file basic_string.tcc. References std::basic_string< _CharT, _Traits, _Alloc >::_M_rep(), and std::basic_string< _CharT, _Traits, _Alloc >::get_allocator(). Referenced by std::bitset< _Nb >::_M_copy_to_string(), std::money_put< _CharT, _OutIter >::_M_insert(), std::basic_stringbuf< _CharT, _Traits, _Alloc >::overflow(), and std::basic_stringbuf< _CharT, _Traits, _Alloc >::str(). |
|
Provides access to the data contained in the string.
Definition at line 747 of file basic_string.h. |
|
Provides access to the data contained in the string.
Definition at line 728 of file basic_string.h. |
|
Returns a read-only (constant) iterator that points to the first character in the string. Reimplemented in __gnu_debug::basic_string< _CharT, _Traits, _Allocator >. Definition at line 532 of file basic_string.h. |
|
Returns a read/write iterator that points to the first character in the string. Unshares the string. Reimplemented in __gnu_debug::basic_string< _CharT, _Traits, _Allocator >. Definition at line 521 of file basic_string.h. |
|
Return const pointer to null-terminated contents. This is a handle to internal data. Do not modify or dire things may happen. Reimplemented in __gnu_debug::basic_string< _CharT, _Traits, _Allocator >. Definition at line 1522 of file basic_string.h. Referenced by std::messages< _CharT >::_M_convert_to_char(), std::money_get< _CharT, _InIter >::do_get(), std::num_get< _CharT, _InIter >::do_get(), and std::collate< _CharT >::do_transform(). |
|
Returns the total number of characters that the string can hold before needing to allocate more memory. Definition at line 641 of file basic_string.h. Referenced by std::basic_stringbuf< _CharT, _Traits, _Alloc >::_M_sync(), and std::basic_stringbuf< _CharT, _Traits, _Alloc >::overflow(). |
|
Erases the string, making it empty. Reimplemented in __gnu_debug::basic_string< _CharT, _Traits, _Allocator >. Definition at line 668 of file basic_string.h. Referenced by std::num_get< _CharT, _InIter >::_M_extract_float(). |
|
Compare substring against a character array.
NB: s must have at least n2 characters, '' has no special meaning. Definition at line 962 of file basic_string.tcc. |
|
Compare substring to a C string.
Definition at line 946 of file basic_string.tcc. |
|
Compare to a C string.
Reimplemented in __gnu_debug::basic_string< _CharT, _Traits, _Allocator >. Definition at line 931 of file basic_string.tcc. References __glibcxx_requires_string, std::min(), and std::basic_string< _CharT, _Traits, _Alloc >::size(). |
|
Compare substring to a substring.
Definition at line 913 of file basic_string.tcc. References std::basic_string< _CharT, _Traits, _Alloc >::_M_check(), std::basic_string< _CharT, _Traits, _Alloc >::_M_limit(), std::basic_string< _CharT, _Traits, _Alloc >::data(), and std::min(). |
|
Compare substring to a string.
Definition at line 898 of file basic_string.tcc. References std::basic_string< _CharT, _Traits, _Alloc >::data(), std::min(), and std::basic_string< _CharT, _Traits, _Alloc >::size(). |
|
Compare to a string.
Reimplemented in __gnu_debug::basic_string< _CharT, _Traits, _Allocator >. Definition at line 1929 of file basic_string.h. Referenced by std::operator!=(), std::operator<(), std::operator<=(), std::operator==(), std::operator>(), and std::operator>=(). |
|
Copy substring into C string.
Definition at line 705 of file basic_string.tcc. References __glibcxx_requires_string_len. Referenced by std::__moneypunct_cache< _CharT, _Intl >::_M_cache(), and std::__numpunct_cache< _CharT >::_M_cache(). |
|
|
Returns true if the string is empty. Equivalent to *this == "". Definition at line 675 of file basic_string.h. |
|
Returns a read-only (constant) iterator that points one past the last character in the string. Reimplemented in __gnu_debug::basic_string< _CharT, _Traits, _Allocator >. Definition at line 551 of file basic_string.h. |
|
Returns a read/write iterator that points one past the last character in the string. Unshares the string. Reimplemented in __gnu_debug::basic_string< _CharT, _Traits, _Allocator >. Definition at line 540 of file basic_string.h. |
|
Remove a range of characters.
Definition at line 1156 of file basic_string.h. |
|
Remove one character.
Definition at line 1136 of file basic_string.h. |
|
Remove characters.
Definition at line 1120 of file basic_string.h. Referenced by std::money_put< _CharT, _OutIter >::_M_insert(), std::getline(), std::operator>>(), and std::basic_string< _CharT, _Traits, _Alloc >::resize(). |
|
Find position of a character.
Definition at line 742 of file basic_string.tcc. References std::find(), std::basic_string< _CharT, _Traits, _Alloc >::npos, and std::basic_string< _CharT, _Traits, _Alloc >::size(). |
|
Find position of a C string.
Definition at line 1581 of file basic_string.h. |
|
Find position of a string.
Definition at line 1567 of file basic_string.h. |
|
Find position of a C substring.
Definition at line 719 of file basic_string.tcc. References __glibcxx_requires_string_len, std::basic_string< _CharT, _Traits, _Alloc >::npos, and std::basic_string< _CharT, _Traits, _Alloc >::size(). |
|
Find position of a different character.
Definition at line 846 of file basic_string.tcc. References std::basic_string< _CharT, _Traits, _Alloc >::npos, and std::basic_string< _CharT, _Traits, _Alloc >::size(). |
|
Find position of a character not in C string.
Definition at line 1820 of file basic_string.h. |
|
Find position of a character not in C substring.
Definition at line 834 of file basic_string.tcc. References __glibcxx_requires_string_len, std::find(), std::basic_string< _CharT, _Traits, _Alloc >::npos, and std::basic_string< _CharT, _Traits, _Alloc >::size(). |
|
Find position of a character not in string.
Definition at line 1791 of file basic_string.h. |
|
Find position of a character.
Note: equivalent to find(c, pos). Definition at line 1716 of file basic_string.h. |
|
Find position of a character of C string.
Definition at line 1697 of file basic_string.h. |
|
Find position of a character of C substring.
Definition at line 798 of file basic_string.tcc. References __glibcxx_requires_string_len, std::find(), and std::basic_string< _CharT, _Traits, _Alloc >::size(). |
|
Find position of a character of string.
Definition at line 1669 of file basic_string.h. |
|
Find last position of a different character.
Definition at line 878 of file basic_string.tcc. References std::basic_string< _CharT, _Traits, _Alloc >::npos, and std::basic_string< _CharT, _Traits, _Alloc >::size(). |
|
Find last position of a character not in C string.
Definition at line 1879 of file basic_string.h. |
|
Find last position of a character not in C substring.
Definition at line 857 of file basic_string.tcc. References __glibcxx_requires_string_len, std::find(), std::basic_string< _CharT, _Traits, _Alloc >::npos, and std::basic_string< _CharT, _Traits, _Alloc >::size(). |
|
Find last position of a character not in string.
Definition at line 1850 of file basic_string.h. |
|
Find last position of a character.
Note: equivalent to rfind(c, pos). Definition at line 1777 of file basic_string.h. |
|
Find last position of a character of C string.
Definition at line 1758 of file basic_string.h. |
|
Find last position of a character of C substring.
Definition at line 813 of file basic_string.tcc. References __glibcxx_requires_string_len, std::find(), std::basic_string< _CharT, _Traits, _Alloc >::npos, and std::basic_string< _CharT, _Traits, _Alloc >::size(). |
|
Find last position of a character of string.
Definition at line 1730 of file basic_string.h. |
|
Return copy of allocator used to construct this string.
Definition at line 1539 of file basic_string.h. Referenced by std::basic_string< _CharT, _Traits, _Alloc >::assign(), std::basic_string< _CharT, _Traits, _Alloc >::reserve(), and std::basic_string< _CharT, _Traits, _Alloc >::swap(). |
|
Insert one character.
Definition at line 1096 of file basic_string.h. |
|
Insert multiple characters.
Definition at line 1079 of file basic_string.h. |
|
Insert a C string.
Definition at line 1056 of file basic_string.h. |
|
Insert a C substring.
Definition at line 365 of file basic_string.tcc. References __glibcxx_requires_string_len. |
|
Insert a substring.
Definition at line 1015 of file basic_string.h. |
|
Insert value of a string.
Definition at line 993 of file basic_string.h. |
|
Insert a range of characters.
Definition at line 978 of file basic_string.h. |
|
Insert multiple characters.
Definition at line 962 of file basic_string.h. |
|
null-termination.
Definition at line 601 of file basic_string.h. Referenced by std::collate< _CharT >::do_transform(), std::locale::operator()(), std::tr1::hash< std::wstring >::operator()(), and std::tr1::hash< std::string >::operator()(). |
|
Returns the size() of the largest possible string.
Definition at line 606 of file basic_string.h. Referenced by std::getline(), std::operator>>(), and std::basic_stringbuf< _CharT, _Traits, _Alloc >::overflow(). |
|
Append a character.
Reimplemented in __gnu_debug::basic_string< _CharT, _Traits, _Allocator >. Definition at line 780 of file basic_string.h. |
|
Append a C string.
Reimplemented in __gnu_debug::basic_string< _CharT, _Traits, _Allocator >. Definition at line 771 of file basic_string.h. |
|
Append a string to this string.
Reimplemented in __gnu_debug::basic_string< _CharT, _Traits, _Allocator >. Definition at line 762 of file basic_string.h. |
|
Set value to string of length 1.
Reimplemented in __gnu_debug::basic_string< _CharT, _Traits, _Allocator >. Definition at line 509 of file basic_string.h. |
|
Copy contents of s into this string.
Reimplemented in __gnu_debug::basic_string< _CharT, _Traits, _Allocator >. Definition at line 498 of file basic_string.h. |
|
Assign the value of str to this string.
Reimplemented in __gnu_debug::basic_string< _CharT, _Traits, _Allocator >. Definition at line 490 of file basic_string.h. |
|
Subscript access to the data contained in the string.
Definition at line 707 of file basic_string.h. |
|
Subscript access to the data contained in the string.
Definition at line 690 of file basic_string.h. |
|
Append a single character.
Reimplemented in __gnu_debug::basic_string< _CharT, _Traits, _Allocator >. Definition at line 859 of file basic_string.h. Referenced by std::collate< _CharT >::do_transform(), std::operator>>(), and std::basic_stringbuf< _CharT, _Traits, _Alloc >::overflow(). |
|
Returns a read-only (constant) reverse iterator that points to the last character in the string. Iteration is done in reverse element order. Reimplemented in __gnu_debug::basic_string< _CharT, _Traits, _Allocator >. Definition at line 569 of file basic_string.h. |
|
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 in __gnu_debug::basic_string< _CharT, _Traits, _Allocator >. Definition at line 560 of file basic_string.h. |
|
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 in __gnu_debug::basic_string< _CharT, _Traits, _Allocator >. Definition at line 587 of file basic_string.h. |
|
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 in __gnu_debug::basic_string< _CharT, _Traits, _Allocator >. Definition at line 578 of file basic_string.h. |
|
Replace range of characters with range.
Definition at line 1372 of file basic_string.h. |
|
Replace range of characters with multiple characters.
Definition at line 1349 of file basic_string.h. |
|
Replace range of characters with C string.
Definition at line 1328 of file basic_string.h. |
|
Replace range of characters with C substring.
Definition at line 1307 of file basic_string.h. |
|
Replace range of characters with string.
Definition at line 1289 of file basic_string.h. |
|
Replace characters with multiple characters.
Definition at line 1271 of file basic_string.h. |
|
Replace characters with value of a C string.
Definition at line 1248 of file basic_string.h. |
|
Replace characters with value of a C substring.
Definition at line 396 of file basic_string.tcc. References __glibcxx_requires_string_len, and std::basic_string< _CharT, _Traits, _Alloc >::_M_data(). |
|
Replace characters with value from another string.
Definition at line 1205 of file basic_string.h. |
|
Replace characters with value from another string.
Definition at line 1183 of file basic_string.h. |
|
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. Definition at line 484 of file basic_string.tcc. References std::basic_string< _CharT, _Traits, _Alloc >::get_allocator(), and std::basic_string< _CharT, _Traits, _Alloc >::size(). Referenced by std::money_get< _CharT, _InIter >::_M_extract(), std::num_get< _CharT, _InIter >::_M_extract_float(), std::num_get< _CharT, _InIter >::_M_extract_int(), std::money_put< _CharT, _OutIter >::_M_insert(), std::basic_string< _CharT, _Traits, _Alloc >::append(), std::num_get< _CharT, _InIter >::do_get(), std::operator>>(), and std::basic_stringbuf< _CharT, _Traits, _Alloc >::overflow(). |
|
Resizes the string to the specified number of characters.
Definition at line 633 of file basic_string.h. |
|
Resizes the string to the specified number of characters.
Definition at line 622 of file basic_string.tcc. References std::basic_string< _CharT, _Traits, _Alloc >::append(), std::basic_string< _CharT, _Traits, _Alloc >::erase(), and std::basic_string< _CharT, _Traits, _Alloc >::size(). Referenced by std::money_get< _CharT, _InIter >::do_get(). |
|
Find last position of a character.
Definition at line 781 of file basic_string.tcc. References std::basic_string< _CharT, _Traits, _Alloc >::npos, and std::basic_string< _CharT, _Traits, _Alloc >::size(). |
|
Find last position of a C string.
Definition at line 1639 of file basic_string.h. |
|
Find last position of a C substring.
Definition at line 760 of file basic_string.tcc. References __glibcxx_requires_string_len, std::min(), std::basic_string< _CharT, _Traits, _Alloc >::npos, and std::basic_string< _CharT, _Traits, _Alloc >::size(). |
|
Find last position of a string.
Definition at line 1611 of file basic_string.h. |
|
|
Get a substring.
Definition at line 1911 of file basic_string.h. |
|
Swap contents with another string.
Definition at line 501 of file basic_string.tcc. References std::basic_string< _CharT, _Traits, _Alloc >::_M_data(), std::basic_string< _CharT, _Traits, _Alloc >::_M_rep(), and std::basic_string< _CharT, _Traits, _Alloc >::get_allocator(). Referenced by std::basic_stringbuf< _CharT, _Traits, _Alloc >::overflow(), and std::swap(). |
|
Value returned by various member functions when they fail.
Definition at line 272 of file basic_string.h. Referenced by std::basic_string< _CharT, _Traits, _Alloc >::find(), std::basic_string< _CharT, _Traits, _Alloc >::find_first_not_of(), std::basic_string< _CharT, _Traits, _Alloc >::find_last_not_of(), std::basic_string< _CharT, _Traits, _Alloc >::find_last_of(), and std::basic_string< _CharT, _Traits, _Alloc >::rfind(). |