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 2041 of file basic_string.h. Referenced by basic_string< char >::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 471 of file basic_string.h. |
|
Append a range of characters.
Definition at line 837 of file basic_string.h. |
|
Append multiple characters.
Definition at line 285 of file basic_string.tcc. References basic_string::reserve(), and basic_string::size(). |
|
Append a C string.
Definition at line 810 of file basic_string.h. |
|
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::reserve(), and basic_string::size(). |
|
Append a string to this string.
Definition at line 329 of file basic_string.tcc. References basic_string::reserve(), and basic_string::size(). Referenced by basic_string< char >::append(), collate::do_transform(), std::operator+(), basic_string< char >::operator+=(), std::operator>>(), and basic_string::resize(). |
|
Set value to a range of characters.
Definition at line 932 of file basic_string.h. |
|
Set value to multiple characters.
Definition at line 919 of file basic_string.h. |
|
Set value to contents of a C string.
Definition at line 903 of file basic_string.h. |
|
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 875 of file basic_string.h. |
|
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 basic_string< char >::assign(), money_get::do_get(), basic_string< char >::operator=(), basic_stringbuf::overflow(), basic_stringbuf::setbuf(), and basic_stringbuf::str(). |
|
Provides access to the data contained in the string.
Definition at line 733 of file basic_string.h. |
|
Provides access to the data contained in the string.
Definition at line 714 of file basic_string.h. |
|
Returns a read-only (constant) iterator that points to the first character in the string. Definition at line 521 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 510 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 1508 of file basic_string.h. Referenced by collate::do_compare(), 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 630 of file basic_string.h. Referenced by basic_stringbuf::overflow(). |
|
Erases the string, making it empty. Definition at line 657 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. References std::min(). |
|
Compare substring to a C string.
Definition at line 933 of file basic_string.tcc. References std::min(). |
|
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 1915 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 696 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 1518 of file basic_string.h. Referenced by basic_string::compare(), basic_string< char >::compare(), collate::do_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()(), basic_stringbuf::overflow(), basic_string< char >::rfind(), and basic_stringbuf::str(). |
|
Returns true if the string is empty. Equivalent to *this == "". Definition at line 664 of file basic_string.h. Referenced by std::operator>>(). |
|
Returns a read-only (constant) iterator that points one past the last character in the string. Definition at line 540 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 529 of file basic_string.h. |
|
Remove a range of characters.
Definition at line 1142 of file basic_string.h. |
|
Remove one character.
Definition at line 1122 of file basic_string.h. |
|
Remove characters.
Definition at line 1106 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 basic_string::npos, and basic_string::size(). |
|
Find position of a C string.
Definition at line 1567 of file basic_string.h. |
|
Find position of a string.
Definition at line 1553 of file basic_string.h. |
|
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< char >::find(), and basic_string< char >::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 1806 of file basic_string.h. |
|
Find position of a character not in C substring.
Definition at line 821 of file basic_string.tcc. References basic_string::npos, and basic_string::size(). |
|
Find position of a character not in string.
Definition at line 1777 of file basic_string.h. Referenced by basic_string< char >::find_first_not_of(). |
|
Find position of a character.
Note: equivalent to find(c, pos). Definition at line 1702 of file basic_string.h. |
|
Find position of a character of C string.
Definition at line 1683 of file basic_string.h. |
|
Find position of a character of C substring.
Definition at line 785 of file basic_string.tcc. References basic_string::npos, and basic_string::size(). |
|
Find position of a character of string.
Definition at line 1655 of file basic_string.h. Referenced by basic_string< char >::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 1865 of file basic_string.h. |
|
Find last position of a character not in C substring.
Definition at line 844 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 1836 of file basic_string.h. Referenced by basic_string< char >::find_last_not_of(). |
|
Find last position of a character.
Note: equivalent to rfind(c, pos). Definition at line 1763 of file basic_string.h. |
|
Find last position of a character of C string.
Definition at line 1744 of file basic_string.h. |
|
Find last position of a character of C substring.
Definition at line 800 of file basic_string.tcc. References basic_string::npos, and basic_string::size(). |
|
Find last position of a character of string.
Definition at line 1716 of file basic_string.h. Referenced by basic_string< char >::find_last_of(). |
|
Return copy of allocator used to construct this string.
Definition at line 1525 of file basic_string.h. Referenced by basic_string::assign(), basic_string::reserve(), and basic_string::swap(). |
|
Insert one character.
Definition at line 1082 of file basic_string.h. |
|
Insert multiple characters.
Definition at line 1065 of file basic_string.h. |
|
Insert a C string.
Definition at line 1042 of file basic_string.h. |
|
Insert a C substring.
Definition at line 364 of file basic_string.tcc. |
|
Insert a substring.
Definition at line 1001 of file basic_string.h. |
|
Insert value of a string.
Definition at line 979 of file basic_string.h. |
|
Insert a range of characters.
Definition at line 964 of file basic_string.h. |
|
Insert multiple characters.
Definition at line 948 of file basic_string.h. Referenced by basic_string< char >::insert(). |
|
null-termination.
Definition at line 590 of file basic_string.h. Referenced by collate::do_compare(), collate::do_transform(), and locale::operator()(). |
|
Returns the size() of the largest possible string.
Definition at line 595 of file basic_string.h. Referenced by std::getline(), std::operator>>(), and basic_stringbuf::overflow(). |
|
Append a character.
Definition at line 766 of file basic_string.h. |
|
Append a C string.
Definition at line 757 of file basic_string.h. |
|
Append a string to this string.
Definition at line 748 of file basic_string.h. |
|
Set value to string of length 1.
Definition at line 498 of file basic_string.h. |
|
Copy contents of s into this string.
Definition at line 487 of file basic_string.h. |
|
Assign the value of str to this string.
Definition at line 479 of file basic_string.h. |
|
Subscript access to the data contained in the string.
Definition at line 696 of file basic_string.h. |
|
Subscript access to the data contained in the string.
Definition at line 679 of file basic_string.h. |
|
Append a single character.
Definition at line 845 of file basic_string.h. Referenced by collate::do_transform(), basic_string< char >::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 558 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 549 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 576 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 567 of file basic_string.h. |
|
Replace range of characters with range.
Definition at line 1358 of file basic_string.h. |
|
Replace range of characters with multiple characters.
Definition at line 1335 of file basic_string.h. |
|
Replace range of characters with C string.
Definition at line 1314 of file basic_string.h. |
|
Replace range of characters with C substring.
Definition at line 1293 of file basic_string.h. |
|
Replace range of characters with string.
Definition at line 1275 of file basic_string.h. |
|
Replace characters with multiple characters.
Definition at line 1257 of file basic_string.h. |
|
Replace characters with value of a C string.
Definition at line 1234 of file basic_string.h. |
|
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 1191 of file basic_string.h. |
|
Replace characters with value from another string.
Definition at line 1169 of file basic_string.h. Referenced by basic_string< char >::append(), basic_string< char >::assign(), basic_string< char >::insert(), and basic_string< char >::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 basic_string::append(), std::operator>>(), basic_stringbuf::overflow(), and basic_string< char >::push_back(). |
|
Resizes the string to the specified number of characters.
Definition at line 622 of file basic_string.h. |
|
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< char >::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 1625 of file basic_string.h. |
|
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 1597 of file basic_string.h. Referenced by basic_string< char >::find_last_of(), and basic_string< char >::rfind(). |
|
|
Get a substring.
Definition at line 1897 of file basic_string.h. |
|
Swap contents with another string.
Definition at line 500 of file basic_string.tcc. References basic_string::_M_data(), basic_string::_M_ibegin(), basic_string::_M_iend(), basic_string::_M_rep(), and basic_string::get_allocator(). Referenced by basic_stringbuf::overflow(). |
|
Value returned by various member functions when they fail.
Definition at line 72 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(). |