#include <bits/atomicity.h>
#include <debug/debug.h>
Include dependency graph for basic_string.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Namespaces | |
namespace | std |
Classes | |
class | std::basic_string< CharT, Traits, Alloc > |
Managing sequences of characters and character-like objects. More... | |
Functions | |
template<typename CharT, typename Traits, typename Alloc> basic_string< CharT, Traits, Alloc > | operator+ (const basic_string< CharT, Traits, Alloc > &__lhs, const basic_string< CharT, Traits, Alloc > &__rhs) |
Concatenate two strings. | |
template<typename CharT, typename Traits, typename Alloc> basic_string< CharT, Traits, Alloc > | operator+ (const CharT *__lhs, const basic_string< CharT, Traits, Alloc > &__rhs) |
Concatenate C string and string. | |
template<typename CharT, typename Traits, typename Alloc> basic_string< CharT, Traits, Alloc > | operator+ (CharT __lhs, const basic_string< CharT, Traits, Alloc > &__rhs) |
Concatenate character and string. | |
template<typename CharT, typename Traits, typename Alloc> basic_string< CharT, Traits, Alloc > | operator+ (const basic_string< CharT, Traits, Alloc > &__lhs, const CharT *__rhs) |
Concatenate string and C string. | |
template<typename CharT, typename Traits, typename Alloc> basic_string< CharT, Traits, Alloc > | operator+ (const basic_string< CharT, Traits, Alloc > &__lhs, CharT __rhs) |
Concatenate string and character. | |
template<typename CharT, typename Traits, typename Alloc> bool | operator== (const basic_string< CharT, Traits, Alloc > &__lhs, const basic_string< CharT, Traits, Alloc > &__rhs) |
Test equivalence of two strings. | |
template<typename CharT, typename Traits, typename Alloc> bool | operator== (const CharT *__lhs, const basic_string< CharT, Traits, Alloc > &__rhs) |
Test equivalence of C string and string. | |
template<typename CharT, typename Traits, typename Alloc> bool | operator== (const basic_string< CharT, Traits, Alloc > &__lhs, const CharT *__rhs) |
Test equivalence of string and C string. | |
template<typename CharT, typename Traits, typename Alloc> bool | operator!= (const basic_string< CharT, Traits, Alloc > &__lhs, const basic_string< CharT, Traits, Alloc > &__rhs) |
Test difference of two strings. | |
template<typename CharT, typename Traits, typename Alloc> bool | operator!= (const CharT *__lhs, const basic_string< CharT, Traits, Alloc > &__rhs) |
Test difference of C string and string. | |
template<typename CharT, typename Traits, typename Alloc> bool | operator!= (const basic_string< CharT, Traits, Alloc > &__lhs, const CharT *__rhs) |
Test difference of string and C string. | |
template<typename CharT, typename Traits, typename Alloc> bool | operator< (const basic_string< CharT, Traits, Alloc > &__lhs, const basic_string< CharT, Traits, Alloc > &__rhs) |
Test if string precedes string. | |
template<typename CharT, typename Traits, typename Alloc> bool | operator< (const basic_string< CharT, Traits, Alloc > &__lhs, const CharT *__rhs) |
Test if string precedes C string. | |
template<typename CharT, typename Traits, typename Alloc> bool | operator< (const CharT *__lhs, const basic_string< CharT, Traits, Alloc > &__rhs) |
Test if C string precedes string. | |
template<typename CharT, typename Traits, typename Alloc> bool | operator> (const basic_string< CharT, Traits, Alloc > &__lhs, const basic_string< CharT, Traits, Alloc > &__rhs) |
Test if string follows string. | |
template<typename CharT, typename Traits, typename Alloc> bool | operator> (const basic_string< CharT, Traits, Alloc > &__lhs, const CharT *__rhs) |
Test if string follows C string. | |
template<typename CharT, typename Traits, typename Alloc> bool | operator> (const CharT *__lhs, const basic_string< CharT, Traits, Alloc > &__rhs) |
Test if C string follows string. | |
template<typename CharT, typename Traits, typename Alloc> bool | operator<= (const basic_string< CharT, Traits, Alloc > &__lhs, const basic_string< CharT, Traits, Alloc > &__rhs) |
Test if string doesn't follow string. | |
template<typename CharT, typename Traits, typename Alloc> bool | operator<= (const basic_string< CharT, Traits, Alloc > &__lhs, const CharT *__rhs) |
Test if string doesn't follow C string. | |
template<typename CharT, typename Traits, typename Alloc> bool | operator<= (const CharT *__lhs, const basic_string< CharT, Traits, Alloc > &__rhs) |
Test if C string doesn't follow string. | |
template<typename CharT, typename Traits, typename Alloc> bool | operator>= (const basic_string< CharT, Traits, Alloc > &__lhs, const basic_string< CharT, Traits, Alloc > &__rhs) |
Test if string doesn't precede string. | |
template<typename CharT, typename Traits, typename Alloc> bool | operator>= (const basic_string< CharT, Traits, Alloc > &__lhs, const CharT *__rhs) |
Test if string doesn't precede C string. | |
template<typename CharT, typename Traits, typename Alloc> bool | operator>= (const CharT *__lhs, const basic_string< CharT, Traits, Alloc > &__rhs) |
Test if C string doesn't precede string. | |
template<typename CharT, typename Traits, typename Alloc> void | swap (basic_string< CharT, Traits, Alloc > &__lhs, basic_string< CharT, Traits, Alloc > &__rhs) |
Swap contents of two strings. | |
template<typename CharT, typename Traits, typename Alloc> basic_istream< CharT, Traits > & | operator>> (basic_istream< CharT, Traits > &__is, basic_string< CharT, Traits, Alloc > &str) |
Read stream into a string. | |
template<typename CharT, typename Traits, typename Alloc> basic_ostream< CharT, Traits > & | operator<< (basic_ostream< CharT, Traits > &__os, const basic_string< CharT, Traits, Alloc > &str) |
Write string to a stream. | |
template<typename CharT, typename Traits, typename Alloc> basic_istream< CharT, Traits > & | getline (basic_istream< CharT, Traits > &__is, basic_string< CharT, Traits, Alloc > &str, CharT __delim) |
Read a line from stream into a string. | |
template<typename CharT, typename Traits, typename Alloc> basic_istream< CharT, Traits > & | getline (basic_istream< CharT, Traits > &__is, basic_string< CharT, Traits, Alloc > &str) |
Read a line from stream into a string. |
Definition in file basic_string.h.
|
Read a line from stream into a string.
' is found, the end of the stream is encountered, or str.max_size() is reached. If is.width() is non-zero, that is the limit on the number of characters stored into str. Any previous contents of str are erased. If end of line was encountered, it is extracted but not stored into str. Definition at line 1162 of file istream.tcc. References std::getline(), and std::basic_ios< CharT, Traits >::widen(). |
|
Read a line from stream into a string.
References std::basic_string< CharT, Traits, Alloc >::append(), std::basic_string< CharT, Traits, Alloc >::erase(), std::ios_base::iostate, std::basic_string< CharT, Traits, Alloc >::max_size(), std::basic_ios< CharT, Traits >::rdbuf(), and std::basic_ios< CharT, Traits >::setstate(). Referenced by std::getline(). |
|
Test difference of string and C string.
|
|
Test difference of C string and string.
References std::basic_string< CharT, Traits, Alloc >::compare(). |
|
Test difference of two strings.
References std::basic_string< CharT, Traits, Alloc >::compare(). |
|
Concatenate string and character.
|
|
Concatenate string and C string.
References std::basic_string< CharT, Traits, Alloc >::append(). |
|
Concatenate character and string.
References std::basic_string< CharT, Traits, Alloc >::size(). |
|
Concatenate C string and string.
References std::basic_string< CharT, Traits, Alloc >::reserve(), and std::basic_string< CharT, Traits, Alloc >::size(). |
|
Concatenate two strings.
References std::basic_string< CharT, Traits, Alloc >::append(). |
|
Test if C string precedes string.
References std::basic_string< CharT, Traits, Alloc >::compare(). |
|
Test if string precedes C string.
|
|
Test if string precedes string.
|
|
Write string to a stream.
References std::streamsize. |
|
Test if C string doesn't follow string.
References std::basic_string< CharT, Traits, Alloc >::compare(). |
|
Test if string doesn't follow C string.
|
|
Test if string doesn't follow string.
|
|
Test equivalence of string and C string.
|
|
Test equivalence of C string and string.
References std::basic_string< CharT, Traits, Alloc >::compare(). |
|
Test equivalence of two strings.
|
|
Test if C string follows string.
References std::basic_string< CharT, Traits, Alloc >::compare(). |
|
Test if string follows C string.
|
|
Test if string follows string.
Referenced by std::operator>(). |
|
Test if C string doesn't precede string.
References std::basic_string< CharT, Traits, Alloc >::compare(). |
|
Test if string doesn't precede C string.
|
|
Test if string doesn't precede string.
Referenced by std::operator>=(). |
|
Read stream into a string.
References std::basic_string< CharT, Traits, Alloc >::append(), std::basic_string< CharT, Traits, Alloc >::erase(), std::ios_base::getloc(), std::ios_base::iostate, std::basic_string< CharT, Traits, Alloc >::max_size(), std::basic_ios< CharT, Traits >::rdbuf(), std::basic_ios< CharT, Traits >::setstate(), std::streamsize, and std::ios_base::width(). |
|
Swap contents of two strings.
Referenced by __gnu_debug::Safe_sequence_base::M_swap(), std::vector< qual, qualAllocator >::swap(), std::set< Key, Compare, Allocator >::swap(), std::multiset< Key, Compare, Allocator >::swap(), std::multimap< Key, Type, Compare, Allocator >::swap(), std::map< Key, Type, Compare, Allocator >::swap(), std::swap(), std::list< Type, Allocator >::swap(), and std::deque< Type, Allocator >::swap(). |