#include <string>
Inheritance diagram for basic_string:
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 1964 of file basic_string.h. Referenced by basic_string< char >::substr(). |
|
Construct an empty string using allocator a.
Definition at line 188 of file basic_string.tcc. |
|
Construct string with copy of value of str.
Definition at line 180 of file basic_string.tcc. |
|
Construct string as copy of a substring.
Definition at line 194 of file basic_string.tcc. |
|
Construct string as copy of a substring.
Definition at line 204 of file basic_string.tcc. |
|
Construct string initialized by a character array.
Definition at line 216 of file basic_string.tcc. |
|
Construct string as copy of a C string.
Definition at line 223 of file basic_string.tcc. |
|
Construct string as multiple characters.
Definition at line 230 of file basic_string.tcc. |
|
Construct string as copy of a range.
Definition at line 238 of file basic_string.tcc. |
|
Destroy the string instance.
Definition at line 414 of file basic_string.h. |
|
Append a range of characters.
Definition at line 768 of file basic_string.h. |
|
Append multiple characters.
Definition at line 755 of file basic_string.h. |
|
Append a C string.
Definition at line 740 of file basic_string.h. |
|
Append a C substring.
Definition at line 629 of file basic_string.tcc. References basic_string::capacity(), basic_string::reserve(), and basic_string::size(). |
|
Append a substring.
Definition at line 612 of file basic_string.tcc. References basic_string::capacity(), basic_string::reserve(), and basic_string::size(). |
|
Append a string to this string.
Definition at line 596 of file basic_string.tcc. References basic_string::capacity(), basic_string::reserve(), and basic_string::size(). Referenced by collate::do_transform(), std::getline(), std::operator+(), std::operator>>(), and basic_string::resize(). |
|
Set value to a range of characters.
Definition at line 857 of file basic_string.h. |
|
Set value to multiple characters.
Definition at line 844 of file basic_string.h. |
|
Set value to contents of a C string.
Definition at line 828 of file basic_string.h. |
|
Set value to a C substring.
Definition at line 261 of file basic_string.tcc. References basic_string::max_size(), and basic_string::size(). |
|
Set value to a substring of a string.
Definition at line 800 of file basic_string.h. |
|
Set value to contents of another string.
Definition at line 245 of file basic_string.tcc. References basic_string::get_allocator(). Referenced by money_get::do_get(). |
|
Provides access to the data contained in the string.
Definition at line 669 of file basic_string.h. |
|
Provides access to the data contained in the string.
Definition at line 650 of file basic_string.h. |
|
Returns a read-only (constant) iterator that points to the first character in the string. Definition at line 464 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 453 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 1447 of file basic_string.h. Referenced by money_get::do_get(), and collate::do_transform(). |
|
Returns the total number of characters that the string can hold before needing to allocate more memory. Definition at line 569 of file basic_string.h. Referenced by basic_string::append(), and basic_string::reserve(). |
|
Erases the string, making it empty. Definition at line 595 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 924 of file basic_string.tcc. References std::min(). |
|
Compare substring to a C string.
Definition at line 908 of file basic_string.tcc. References std::min(). |
|
Compare to a C string.
Definition at line 893 of file basic_string.tcc. References std::min(), and basic_string::size(). |
|
Compare substring to a substring.
Definition at line 875 of file basic_string.tcc. References basic_string::data(), and std::min(). |
|
Compare substring to a string.
Definition at line 860 of file basic_string.tcc. References basic_string::data(), std::min(), and basic_string::size(). |
|
Compare to a string.
Definition at line 1849 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 671 of file basic_string.tcc. |
|
Return const pointer to contents. This is a handle to internal data. Do not modify or dire things may happen. Definition at line 1456 of file basic_string.h. Referenced by basic_string::compare(), basic_string< char >::compare(), money_get::do_get(), collate::do_transform(), basic_string< char >::find(), basic_string< char >::find_first_not_of(), basic_string< char >::find_first_of(), basic_string< char >::find_last_not_of(), basic_string< char >::find_last_of(), locale::operator()(), and basic_string< char >::rfind(). |
|
Returns true if the string is empty. Equivalent to *this == "". Definition at line 601 of file basic_string.h. |
|
Returns a read-only (constant) iterator that points one past the last character in the string. Definition at line 483 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 472 of file basic_string.h. |
|
Remove a range of characters.
Definition at line 1063 of file basic_string.h. |
|
Remove one character.
Definition at line 1043 of file basic_string.h. |
|
Remove characters.
Definition at line 1030 of file basic_string.h. Referenced by std::getline(), std::operator>>(), and basic_string::resize(). |
|
Find position of a character.
Definition at line 704 of file basic_string.tcc. References basic_string::npos, and basic_string::size(). |
|
Find position of a C string.
Definition at line 1503 of file basic_string.h. |
|
Find position of a string.
Definition at line 1489 of file basic_string.h. |
|
Find position of a C substring.
Definition at line 685 of file basic_string.tcc. References basic_string::npos, std::search(), and basic_string::size(). |
|
Find position of a different character.
Definition at line 808 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 1742 of file basic_string.h. |
|
Find position of a character not in C substring.
Definition at line 796 of file basic_string.tcc. References basic_string::npos, and basic_string::size(). |
|
Find position of a character not in string.
Definition at line 1713 of file basic_string.h. |
|
Find position of a character.
Note: equivalent to find(c, pos). Definition at line 1638 of file basic_string.h. |
|
Find position of a character of C string.
Definition at line 1619 of file basic_string.h. |
|
Find position of a character of C substring.
Definition at line 760 of file basic_string.tcc. References basic_string::npos, and basic_string::size(). |
|
Find position of a character of string.
Definition at line 1591 of file basic_string.h. |
|
Find last position of a different character.
Definition at line 840 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 1801 of file basic_string.h. |
|
Find last position of a character not in C substring.
Definition at line 819 of file basic_string.tcc. References basic_string::npos, and basic_string::size(). |
|
Find last position of a character not in string.
Definition at line 1772 of file basic_string.h. |
|
Find last position of a character.
Note: equivalent to rfind(c, pos). Definition at line 1699 of file basic_string.h. |
|
Find last position of a character of C string.
Definition at line 1680 of file basic_string.h. |
|
Find last position of a character of C substring.
Definition at line 775 of file basic_string.tcc. References basic_string::npos, and basic_string::size(). |
|
Find last position of a character of string.
Definition at line 1652 of file basic_string.h. |
|
Return copy of allocator used to construct this string.
Definition at line 1462 of file basic_string.h. Referenced by basic_string::assign(), basic_string::reserve(), and basic_string::swap(). |
|
Insert one character.
Definition at line 1006 of file basic_string.h. |
|
Insert multiple characters.
Definition at line 989 of file basic_string.h. |
|
Insert a C string.
Definition at line 966 of file basic_string.h. |
|
Insert a C substring.
Definition at line 287 of file basic_string.tcc. References basic_string::max_size(), and basic_string::size(). |
|
Insert a substring.
Definition at line 925 of file basic_string.h. |
|
Insert value of a string.
Definition at line 903 of file basic_string.h. |
|
Insert a range of characters.
Definition at line 888 of file basic_string.h. |
|
Insert multiple characters.
Definition at line 873 of file basic_string.h. |
|
Returns the number of characters in the string, not including any null-termination.
Definition at line 532 of file basic_string.h. Referenced by collate::do_transform(), and locale::operator()(). |
|
Returns the size() of the largest possible string.
Definition at line 536 of file basic_string.h. Referenced by basic_string::assign(), std::getline(), basic_string::insert(), std::operator>>(), basic_string::replace(), basic_string::reserve(), and basic_string::resize(). |
|
Append a character.
Definition at line 700 of file basic_string.h. |
|
Append a C string.
Definition at line 692 of file basic_string.h. |
|
Append a string to this string.
Definition at line 684 of file basic_string.h. |
|
Set value to string of length 1.
Definition at line 441 of file basic_string.h. |
|
Copy contents of s into this string.
Definition at line 430 of file basic_string.h. |
|
Assign the value of str to this string.
Definition at line 422 of file basic_string.h. |
|
Subscript access to the data contained in the string.
Definition at line 632 of file basic_string.h. |
|
Subscript access to the data contained in the string.
Definition at line 615 of file basic_string.h. |
|
Append a single character.
Definition at line 776 of file basic_string.h. Referenced by collate::do_transform(). |
|
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 501 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 492 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 519 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 510 of file basic_string.h. |
|
Replace range of characters with range.
Definition at line 1279 of file basic_string.h. |
|
Replace range of characters with multiple characters.
Definition at line 1256 of file basic_string.h. |
|
Replace range of characters with C string.
Definition at line 1235 of file basic_string.h. |
|
Replace range of characters with C substring.
Definition at line 1214 of file basic_string.h. |
|
Replace range of characters with string.
Definition at line 1196 of file basic_string.h. |
|
Replace characters with multiple characters.
Definition at line 1178 of file basic_string.h. |
|
Replace characters with value of a C string.
Definition at line 1155 of file basic_string.h. |
|
Replace characters with value of a C substring.
Definition at line 322 of file basic_string.tcc. References basic_string::max_size(), and basic_string::size(). |
|
Replace characters with value from another string.
Definition at line 1112 of file basic_string.h. |
|
Replace characters with value from another string.
Definition at line 1090 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 418 of file basic_string.tcc. References basic_string::capacity(), basic_string::get_allocator(), basic_string::max_size(), and basic_string::size(). Referenced by basic_string::append(), and std::operator+(). |
|
Resizes the string to the specified number of characters.
Definition at line 562 of file basic_string.h. |
|
Resizes the string to the specified number of characters.
Definition at line 566 of file basic_string.tcc. References basic_string::append(), basic_string::erase(), basic_string::max_size(), and basic_string::size(). |
|
Find last position of a character.
Definition at line 743 of file basic_string.tcc. References basic_string::npos, and basic_string::size(). |
|
Find last position of a C string.
Definition at line 1561 of file basic_string.h. |
|
Find last position of a C substring.
Definition at line 722 of file basic_string.tcc. References std::min(), basic_string::npos, and basic_string::size(). |
|
Find last position of a string.
Definition at line 1533 of file basic_string.h. |
|
|
Get a substring.
Definition at line 1833 of file basic_string.h. |
|
Swap contents with another string.
Definition at line 435 of file basic_string.tcc. References basic_string::get_allocator(). |
|
Value returned by various member functions when they fail.
Definition at line 70 of file basic_string.tcc. Referenced by 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(), and basic_string::rfind(). |