push_back
, at
, and array access are supported.
Definition at line 110 of file basic_string.h.
|
Default constructor creates an empty string.
Definition at line 2045 of file basic_string.h. Referenced by basic_string::substr(). |
|
Construct an empty string using allocator a.
Definition at line 190 of file basic_string.tcc. |
|
Construct string with copy of value of str.
Definition at line 182 of file basic_string.tcc. |
|
Construct string as copy of a substring.
Definition at line 196 of file basic_string.tcc. |
|
Construct string as copy of a substring.
Definition at line 206 of file basic_string.tcc. |
|
Construct string initialized by a character array.
Definition at line 218 of file basic_string.tcc. |
|
Construct string as copy of a C string.
Definition at line 225 of file basic_string.tcc. |
|
Construct string as multiple characters.
Definition at line 232 of file basic_string.tcc. |
|
Construct string as copy of a range.
Definition at line 240 of file basic_string.tcc. |
|
Destroy the string instance.
Definition at line 472 of file basic_string.h. |
|
Append a range of characters.
Definition at line 841 of file basic_string.h. References basic_string::replace(). |
|
Append multiple characters.
Definition at line 285 of file basic_string.tcc. References basic_string::size(). |
|
Append a C string.
Definition at line 814 of file basic_string.h. References basic_string::append(). |
|
Append a C substring.
Definition at line 302 of file basic_string.tcc. References basic_string::reserve(), and basic_string::size(). |
|
Append a substring.
Definition at line 346 of file basic_string.tcc. References basic_string::_M_check(), basic_string::_M_data(), basic_string::_M_limit(), and basic_string::size(). |
|
Append a string to this string.
Definition at line 329 of file basic_string.tcc. References basic_string::_M_data(), and basic_string::size(). Referenced by money_put::_M_insert(), basic_string::append(), collate::do_transform(), std::operator+(), basic_string::operator+=(), std::operator>>(), and basic_string::resize(). |
|
Set value to a range of characters.
Definition at line 936 of file basic_string.h. References basic_string::replace(). |
|
Set value to multiple characters.
Definition at line 923 of file basic_string.h. |
|
Set value to contents of a C string.
Definition at line 907 of file basic_string.h. References basic_string::assign(). |
|
Set value to a C substring.
Definition at line 263 of file basic_string.tcc. |
|
Set value to a substring of a string.
Definition at line 879 of file basic_string.h. References basic_string::_M_check(), basic_string::_M_data(), basic_string::_M_limit(), and basic_string::assign(). |
|
Set value to contents of another string.
Definition at line 247 of file basic_string.tcc. References basic_string::_M_rep(), and basic_string::get_allocator(). Referenced by money_put::_M_insert(), basic_string::assign(), money_get::do_get(), basic_string::operator=(), basic_stringbuf::overflow(), and basic_stringbuf::str(). |
|
Provides access to the data contained in the string.
Definition at line 737 of file basic_string.h. References basic_string::size(). |
|
Provides access to the data contained in the string.
Definition at line 718 of file basic_string.h. |
|
Returns a read-only (constant) iterator that points to the first character in the string. Definition at line 522 of file basic_string.h. |
|
Returns a read/write iterator that points to the first character in the string. Unshares the string. Definition at line 511 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. Definition at line 1512 of file basic_string.h. Referenced by messages::_M_convert_to_char(), money_get::do_get(), num_get::do_get(), collate::do_transform(), and encoding_state::init(). |
|
Returns the total number of characters that the string can hold before needing to allocate more memory. Definition at line 631 of file basic_string.h. Referenced by basic_stringbuf::overflow(). |
|
Erases the string, making it empty. Definition at line 658 of file basic_string.h. |
|
Compare substring against a character array.
NB: s must have at least n2 characters, '' has no special meaning. Definition at line 949 of file basic_string.tcc. |
|
Compare substring to a C string.
Definition at line 933 of file basic_string.tcc. |
|
Compare to a C string.
Definition at line 918 of file basic_string.tcc. References std::min(), and basic_string::size(). |
|
Compare substring to a substring.
Definition at line 900 of file basic_string.tcc. References basic_string::_M_check(), basic_string::_M_limit(), basic_string::data(), and std::min(). |
|
Compare substring to a string.
Definition at line 885 of file basic_string.tcc. References basic_string::data(), std::min(), and basic_string::size(). |
|
Compare to a string.
Definition at line 1919 of file basic_string.h. References basic_string::data(), std::min(), and basic_string::size(). Referenced by std::operator!=(), std::operator<(), std::operator<=(), std::operator==(), std::operator>(), and std::operator>=(). |
|
Copy substring into C string.
Definition at line 696 of file basic_string.tcc. Referenced by __moneypunct_cache::_M_cache(), and __numpunct_cache::_M_cache(). |
|
Return const pointer to contents. This is a handle to internal data. Do not modify or dire things may happen. Definition at line 1522 of file basic_string.h. Referenced by money_put::_M_insert(), basic_string::compare(), collate::do_transform(), basic_string::find(), basic_string::find_first_not_of(), basic_string::find_first_of(), basic_string::find_last_not_of(), basic_string::find_last_of(), locale::operator()(), hash< std::wstring >::operator()(), hash< std::string >::operator()(), basic_stringbuf::overflow(), basic_string::rfind(), and basic_stringbuf::str(). |
|
Returns true if the string is empty. Equivalent to *this == "". Definition at line 665 of file basic_string.h. References basic_string::size(). |
|
Returns a read-only (constant) iterator that points one past the last character in the string. Definition at line 541 of file basic_string.h. |
|
Returns a read/write iterator that points one past the last character in the string. Unshares the string. Definition at line 530 of file basic_string.h. |
|
Remove a range of characters.
Definition at line 1146 of file basic_string.h. |
|
Remove one character.
Definition at line 1126 of file basic_string.h. |
|
Remove characters.
Definition at line 1110 of file basic_string.h. Referenced by std::getline(), std::operator>>(), and basic_string::resize(). |
|
Find position of a character.
Definition at line 729 of file basic_string.tcc. References std::find(), basic_string::npos, and basic_string::size(). |
|
Find position of a C string.
Definition at line 1571 of file basic_string.h. References basic_string::find(). |
|
Find position of a string.
Definition at line 1557 of file basic_string.h. References basic_string::data(), basic_string::find(), and basic_string::size(). |
|
Find position of a C substring.
Definition at line 710 of file basic_string.tcc. References basic_string::npos, std::search(), and basic_string::size(). Referenced by basic_string::find(), and basic_string::find_first_of(). |
|
Find position of a different character.
Definition at line 833 of file basic_string.tcc. References basic_string::npos, and basic_string::size(). |
|
Find position of a character not in C string.
Definition at line 1810 of file basic_string.h. References basic_string::find_first_not_of(). |
|
Find position of a character not in C substring.
Definition at line 821 of file basic_string.tcc. References std::find(), basic_string::npos, and basic_string::size(). |
|
Find position of a character not in string.
Definition at line 1781 of file basic_string.h. References basic_string::data(), and basic_string::size(). Referenced by basic_string::find_first_not_of(). |
|
Find position of a character.
Note: equivalent to find(c, pos). Definition at line 1706 of file basic_string.h. References basic_string::find(). |
|
Find position of a character of C string.
Definition at line 1687 of file basic_string.h. References basic_string::find_first_of(). |
|
Find position of a character of C substring.
Definition at line 785 of file basic_string.tcc. References std::find(), and basic_string::size(). |
|
Find position of a character of string.
Definition at line 1659 of file basic_string.h. References basic_string::data(), and basic_string::size(). Referenced by basic_string::find_first_of(). |
|
Find last position of a different character.
Definition at line 865 of file basic_string.tcc. References basic_string::npos, and basic_string::size(). |
|
Find position of a character not in C string.
Definition at line 1869 of file basic_string.h. References basic_string::find_last_not_of(). |
|
Find last position of a character not in C substring.
Definition at line 844 of file basic_string.tcc. References std::find(), basic_string::npos, and basic_string::size(). |
|
Find last position of a character not in string.
Definition at line 1840 of file basic_string.h. References basic_string::data(), and basic_string::size(). Referenced by basic_string::find_last_not_of(). |
|
Find last position of a character.
Note: equivalent to rfind(c, pos). Definition at line 1767 of file basic_string.h. References basic_string::rfind(). |
|
Find last position of a character of C string.
Definition at line 1748 of file basic_string.h. References basic_string::find_last_of(). |
|
Find last position of a character of C substring.
Definition at line 800 of file basic_string.tcc. References std::find(), basic_string::npos, and basic_string::size(). |
|
Find last position of a character of string.
Definition at line 1720 of file basic_string.h. References basic_string::data(), and basic_string::size(). Referenced by basic_string::find_last_of(). |
|
Return copy of allocator used to construct this string.
Definition at line 1529 of file basic_string.h. Referenced by basic_string::assign(), basic_string::reserve(), and basic_string::swap(). |
|
Insert one character.
Definition at line 1086 of file basic_string.h. |
|
Insert multiple characters.
Definition at line 1069 of file basic_string.h. |
|
Insert a C string.
Definition at line 1046 of file basic_string.h. References basic_string::insert(). |
|
Insert a C substring.
Definition at line 364 of file basic_string.tcc. |
|
Insert a substring.
Definition at line 1005 of file basic_string.h. References basic_string::_M_check(), basic_string::_M_data(), basic_string::_M_limit(), and basic_string::insert(). |
|
Insert value of a string.
Definition at line 983 of file basic_string.h. References basic_string::insert(), and basic_string::size(). |
|
Insert a range of characters.
Definition at line 968 of file basic_string.h. References basic_string::replace(). |
|
Insert multiple characters.
Definition at line 952 of file basic_string.h. References basic_string::replace(). Referenced by basic_string::insert(). |
|
null-termination.
Definition at line 591 of file basic_string.h. Referenced by collate::do_transform(), locale::operator()(), hash< std::wstring >::operator()(), and hash< std::string >::operator()(). |
|
Returns the size() of the largest possible string.
Definition at line 596 of file basic_string.h. Referenced by std::getline(), std::operator>>(), and basic_stringbuf::overflow(). |
|
Append a character.
Definition at line 770 of file basic_string.h. References basic_string::push_back(). |
|
Append a C string.
Definition at line 761 of file basic_string.h. References basic_string::append(). |
|
Append a string to this string.
Definition at line 752 of file basic_string.h. References basic_string::append(). |
|
Set value to string of length 1.
Definition at line 499 of file basic_string.h. References basic_string::assign(). |
|
Copy contents of s into this string.
Definition at line 488 of file basic_string.h. References basic_string::assign(). |
|
Assign the value of str to this string.
Definition at line 480 of file basic_string.h. References basic_string::assign(). |
|
Subscript access to the data contained in the string.
Definition at line 697 of file basic_string.h. References basic_string::size(). |
|
Subscript access to the data contained in the string.
Definition at line 680 of file basic_string.h. References basic_string::size(). |
|
Append a single character.
Definition at line 849 of file basic_string.h. References basic_string::size(). Referenced by collate::do_transform(), basic_string::operator+=(), and std::operator>>(). |
|
Returns a read-only (constant) reverse iterator that points to the last character in the string. Iteration is done in reverse element order. Definition at line 559 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. Definition at line 550 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. Definition at line 577 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. Definition at line 568 of file basic_string.h. |
|
Replace range of characters with range.
Definition at line 1362 of file basic_string.h. |
|
Replace range of characters with multiple characters.
Definition at line 1339 of file basic_string.h. |
|
Replace range of characters with C string.
Definition at line 1318 of file basic_string.h. References basic_string::replace(). |
|
Replace range of characters with C substring.
Definition at line 1297 of file basic_string.h. References basic_string::replace(). |
|
Replace range of characters with string.
Definition at line 1279 of file basic_string.h. References basic_string::_M_data(), basic_string::replace(), and basic_string::size(). |
|
Replace characters with multiple characters.
Definition at line 1261 of file basic_string.h. |
|
Replace characters with value of a C string.
Definition at line 1238 of file basic_string.h. References basic_string::replace(). |
|
Replace characters with value of a C substring.
Definition at line 395 of file basic_string.tcc. References basic_string::_M_data(). |
|
Replace characters with value from another string.
Definition at line 1195 of file basic_string.h. References basic_string::_M_check(), basic_string::_M_data(), basic_string::_M_limit(), and basic_string::replace(). |
|
Replace characters with value from another string.
Definition at line 1173 of file basic_string.h. References basic_string::_M_data(), and basic_string::size(). Referenced by basic_string::append(), basic_string::assign(), basic_string::insert(), and basic_string::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. Definition at line 483 of file basic_string.tcc. References basic_string::get_allocator(), and basic_string::size(). Referenced by money_get::_M_extract(), num_get::_M_extract_float(), num_get::_M_extract_int(), money_put::_M_insert(), basic_string::append(), num_get::do_get(), std::operator>>(), and basic_stringbuf::overflow(). |
|
Resizes the string to the specified number of characters.
Definition at line 623 of file basic_string.h. References basic_string::resize(). |
|
Resizes the string to the specified number of characters.
Definition at line 613 of file basic_string.tcc. References basic_string::append(), basic_string::erase(), and basic_string::size(). Referenced by basic_string::resize(). |
|
Find last position of a character.
Definition at line 768 of file basic_string.tcc. References basic_string::npos, and basic_string::size(). |
|
Find last position of a C string.
Definition at line 1629 of file basic_string.h. References basic_string::rfind(). |
|
Find last position of a C substring.
Definition at line 747 of file basic_string.tcc. References std::min(), basic_string::npos, and basic_string::size(). |
|
Find last position of a string.
Definition at line 1601 of file basic_string.h. References basic_string::data(), and basic_string::size(). Referenced by basic_string::find_last_of(), and basic_string::rfind(). |
|
|
Get a substring.
Definition at line 1901 of file basic_string.h. References basic_string::basic_string(). |
|
Swap contents with another string.
Definition at line 500 of file basic_string.tcc. References basic_string::_M_data(), basic_string::_M_rep(), and basic_string::get_allocator(). Referenced by basic_stringbuf::overflow(), and std::swap(). |
|
Value returned by various member functions when they fail.
Definition at line 262 of file basic_string.h. Referenced by basic_string::find(), basic_string::find_first_not_of(), basic_string::find_last_not_of(), basic_string::find_last_of(), and basic_string::rfind(). |