Definition at line 53 of file vstring.h.
|
Default constructor creates an empty string.
|
|
Construct an empty string using allocator a.
|
|
Construct string with copy of value of str.
|
|
Construct string as copy of a substring.
|
|
Construct string as copy of a substring.
|
|
Construct string initialized by a character array.
|
|
Construct string as copy of a C string.
|
|
Construct string as multiple characters.
|
|
Construct string as copy of a range.
|
|
Destroy the string instance.
|
|
Append a range of characters.
Definition at line 604 of file vstring.h. References std::replace(). |
|
Append multiple characters.
|
|
Append a C string.
Definition at line 574 of file vstring.h. References __glibcxx_requires_string. |
|
Append a C substring.
Definition at line 561 of file vstring.h. References __glibcxx_requires_string_len. |
|
Append a substring.
Definition at line 549 of file vstring.h. References __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::_M_check(), and __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::_M_limit(). |
|
Append a string to this string.
Definition at line 533 of file vstring.h. References __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::size(). Referenced by std::getline(), and __gnu_cxx::operator+(). |
|
Set value to a range of characters.
Definition at line 708 of file vstring.h. References std::replace(). |
|
Set value to multiple characters.
|
|
Set value to contents of a C string.
Definition at line 678 of file vstring.h. References __glibcxx_requires_string. |
|
Set value to a C substring.
Definition at line 662 of file vstring.h. References __glibcxx_requires_string_len. |
|
Set value to a substring of a string.
Definition at line 646 of file vstring.h. References __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::_M_check(), and __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::_M_limit(). |
|
Set value to contents of another string.
|
|
Provides access to the data contained in the string.
Definition at line 488 of file vstring.h. References __N. |
|
Provides access to the data contained in the string.
Definition at line 469 of file vstring.h. References __N. |
|
Returns a read-only (constant) iterator that points to the first character in the string. |
|
Returns a read/write iterator that points to the first character in the string. Unshares the string. |
|
Return const pointer to null-terminated contents. This is a handle to internal data. Do not modify or dire things may happen. |
|
Returns the total number of characters that the string can hold before needing to allocate more memory. |
|
Erases the string, making it empty. |
|
Compare substring against a character array.
NB: s must have at least n2 characters, '' has no special meaning. Definition at line 530 of file vstring.tcc. |
|
Compare substring to a C string.
Definition at line 513 of file vstring.tcc. |
|
Compare to a C string.
Definition at line 497 of file vstring.tcc. References __glibcxx_requires_string, std::min(), and __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::size(). |
|
Compare substring to a substring.
Definition at line 478 of file vstring.tcc. References __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::_M_check(), __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::_M_limit(), __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::data(), and std::min(). |
|
Compare substring to a string.
Definition at line 461 of file vstring.tcc. References __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::data(), std::min(), and __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::size(). |
|
Compare to a string.
Definition at line 1667 of file vstring.h. References __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::data(), std::min(), and __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::size(). Referenced by __gnu_cxx::operator!=(), __gnu_cxx::operator<(), __gnu_cxx::operator<=(), __gnu_cxx::operator==(), __gnu_cxx::operator>(), and __gnu_cxx::operator>=(). |
|
Copy substring into C string.
Definition at line 256 of file vstring.tcc. References __glibcxx_requires_string_len. |
|
Return const pointer to contents. This is a handle to internal data. Do not modify or dire things may happen. Definition at line 1267 of file vstring.h. Referenced by __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::compare(), __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::find(), __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::find_first_not_of(), __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::find_first_of(), __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::find_last_not_of(), __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::find_last_of(), and __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::rfind(). |
|
Returns true if the string is empty. Equivalent to *this == "". |
|
Returns a read-only (constant) iterator that points one past the last character in the string. |
|
Returns a read/write iterator that points one past the last character in the string. Unshares the string. |
|
Remove a range of characters.
Definition at line 921 of file vstring.h. References _GLIBCXX_DEBUG_PEDASSERT. |
|
Remove one character.
Definition at line 901 of file vstring.h. References _GLIBCXX_DEBUG_PEDASSERT. |
|
Remove characters.
Definition at line 885 of file vstring.h. Referenced by std::getline(). |
|
Find position of a character.
Definition at line 295 of file vstring.tcc. References std::find(), __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::npos, and __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::size(). |
|
Find position of a C string.
Definition at line 1316 of file vstring.h. References __glibcxx_requires_string, and std::find(). |
|
Find position of a string.
Definition at line 1302 of file vstring.h. References __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::data(), std::find(), and __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::size(). |
|
Find position of a C substring.
Definition at line 271 of file vstring.tcc. References __glibcxx_requires_string_len, __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::npos, and __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::size(). |
|
Find position of a different character.
Definition at line 406 of file vstring.tcc. References __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::npos, and __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::size(). |
|
Find position of a character not in C string.
Definition at line 1555 of file vstring.h. References __glibcxx_requires_string. |
|
Find position of a character not in C substring.
Definition at line 393 of file vstring.tcc. References __glibcxx_requires_string_len, std::find(), __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::npos, and __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::size(). |
|
Find position of a character not in string.
Definition at line 1526 of file vstring.h. References __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::data(), and __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::size(). |
|
Find position of a character.
Note: equivalent to find(c, pos). Definition at line 1451 of file vstring.h. References std::find(). |
|
Find position of a character of C string.
Definition at line 1432 of file vstring.h. References __glibcxx_requires_string, and std::find_first_of(). |
|
Find position of a character of C substring.
Definition at line 354 of file vstring.tcc. References __glibcxx_requires_string_len, std::find(), and __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::size(). |
|
Find position of a character of string.
Definition at line 1404 of file vstring.h. References __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::data(), std::find_first_of(), and __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::size(). |
|
Find last position of a different character.
Definition at line 440 of file vstring.tcc. References __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::npos, and __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::size(). |
|
Find last position of a character not in C string.
Definition at line 1615 of file vstring.h. References __glibcxx_requires_string. |
|
Find last position of a character not in C substring.
Definition at line 418 of file vstring.tcc. References __glibcxx_requires_string_len, std::find(), __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::npos, and __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::size(). |
|
Find last position of a character not in string.
Definition at line 1585 of file vstring.h. References __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::data(), and __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::size(). |
|
Find last position of a character.
Note: equivalent to rfind(c, pos). |
|
Find last position of a character of C string.
Definition at line 1493 of file vstring.h. References __glibcxx_requires_string. |
|
Find last position of a character of C substring.
Definition at line 371 of file vstring.tcc. References __glibcxx_requires_string_len, std::find(), __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::npos, and __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::size(). |
|
Find last position of a character of string.
Definition at line 1465 of file vstring.h. References __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::data(), and __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::size(). |
|
Return copy of allocator used to construct this string.
Reimplemented from std::_Vector_base< _Tp, _Alloc >. |
|
Insert one character.
Definition at line 861 of file vstring.h. References _GLIBCXX_DEBUG_PEDASSERT. |
|
Insert multiple characters.
|
|
Insert a C string.
Definition at line 820 of file vstring.h. References __glibcxx_requires_string, and std::replace(). |
|
Insert a C substring.
Definition at line 801 of file vstring.h. References std::replace(). |
|
Insert a substring.
Definition at line 778 of file vstring.h. References __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::_M_check(), __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::_M_limit(), and std::replace(). |
|
Insert value of a string.
Definition at line 755 of file vstring.h. References std::replace(), and __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::size(). |
|
Insert a range of characters.
Definition at line 740 of file vstring.h. References std::replace(). |
|
Insert multiple characters.
Definition at line 724 of file vstring.h. References std::replace(). |
|
null-termination.
|
|
Returns the size() of the largest possible string.
Definition at line 346 of file vstring.h. Referenced by std::getline(). |
|
Append a character.
|
|
Append a C string.
|
|
Append a string to this string.
|
|
Set value to string of length 1.
|
|
Copy contents of s into this string.
|
|
Assign the value of str to this string.
|
|
Subscript access to the data contained in the string.
Definition at line 448 of file vstring.h. References _GLIBCXX_DEBUG_ASSERT, and _GLIBCXX_DEBUG_PEDASSERT. |
|
Subscript access to the data contained in the string.
Definition at line 431 of file vstring.h. References _GLIBCXX_DEBUG_ASSERT. |
|
Append a single character.
Definition at line 612 of file vstring.h. Referenced by __gnu_cxx::operator+(). |
|
Returns a read-only (constant) reverse iterator that points to the last character in the string. Iteration is done in reverse element order. |
|
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. |
|
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. |
|
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. |
|
Replace range of characters with range.
Definition at line 1145 of file vstring.h. References __glibcxx_requires_valid_range, and _GLIBCXX_DEBUG_PEDASSERT. |
|
Replace range of characters with multiple characters.
Definition at line 1122 of file vstring.h. References _GLIBCXX_DEBUG_PEDASSERT. |
|
Replace range of characters with C string.
Definition at line 1101 of file vstring.h. References __glibcxx_requires_string, and std::replace(). |
|
Replace range of characters with C substring.
Definition at line 1080 of file vstring.h. References _GLIBCXX_DEBUG_PEDASSERT, and std::replace(). |
|
Replace range of characters with string.
Definition at line 1062 of file vstring.h. References std::replace(), and __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::size(). |
|
Replace characters with multiple characters.
|
|
Replace characters with value of a C string.
Definition at line 1021 of file vstring.h. References __glibcxx_requires_string, and std::replace(). |
|
Replace characters with value of a C substring.
Definition at line 997 of file vstring.h. References __glibcxx_requires_string_len. |
|
Replace characters with value from another string.
Definition at line 970 of file vstring.h. References __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::_M_check(), __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::_M_limit(), and std::replace(). |
|
Replace characters with value from another string.
Definition at line 948 of file vstring.h. References std::replace(), and __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::size(). |
|
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 402 of file vstring.h. Referenced by __gnu_cxx::operator+(). |
|
Resizes the string to the specified number of characters.
|
|
Resizes the string to the specified number of characters.
Definition at line 52 of file vstring.tcc. |
|
Find last position of a character.
Definition at line 336 of file vstring.tcc. References __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::npos, and __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::size(). |
|
Find last position of a C string.
Definition at line 1374 of file vstring.h. References __glibcxx_requires_string. |
|
Find last position of a C substring.
Definition at line 314 of file vstring.tcc. References __glibcxx_requires_string_len, std::min(), __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::npos, and __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::size(). |
|
Find last position of a string.
Definition at line 1346 of file vstring.h. References __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::data(), and __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::size(). |
|
|
Get a substring.
|
|
Swap contents with another string.
Definition at line 1246 of file vstring.h. Referenced by __gnu_cxx::swap(). |
|
Value returned by various member functions when they fail.
Definition at line 78 of file vstring.h. Referenced by __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::find(), __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::find_first_not_of(), __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::find_last_not_of(), __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::find_last_of(), and __gnu_cxx::__versa_string< _CharT, _Traits, _Alloc, _Base >::rfind(). |