|
Compares two character sequences. /
/
/ / - Parameters
-
str | The other string to compare to. / |
- Returns
- / * Negative value if
*this appears before the character sequence specified by the arguments, in lexicographical order. / * Zero if both character sequences compare equivalent. / * Positive value if *this appears after the character sequence specified by the arguments, in lexicographical order. /
- Parameters
-
pos1 | The position of the first character in this string to compare. / |
count1 | The number of characters of this string to compare. / |
str | The other string to compare to. / |
- Returns
- / * Negative value if
*this appears before the character sequence specified by the arguments, in lexicographical order. / * Zero if both character sequences compare equivalent. / * Positive value if *this appears after the character sequence specified by the arguments, in lexicographical order. /
- Parameters
-
pos1 | The position of the first character in this string to compare. / |
count1 | The number of characters of this string to compare. / |
str | The other string to compare to. / |
pos2 | The position of the first character of the given string to compare. / |
- Returns
- / * Negative value if
*this appears before the character sequence specified by the arguments, in lexicographical order. / * Zero if both character sequences compare equivalent. / * Positive value if *this appears after the character sequence specified by the arguments, in lexicographical order. /
- Parameters
-
pos1 | The position of the first character in this string to compare. / |
count1 | The number of characters of this string to compare. / |
str | The other string to compare to. / |
pos2 | The position of the first character of the given string to compare. / |
count2 | The number of characters of the given string to compare. / |
- Returns
- A 32-bit signed integer that indicates whether this instance precedes, follows, or appears in the same position in the sort order as the value parameter: / * Negative value if
*this appears before the character sequence specified by the arguments, in lexicographical order. / * Zero if both character sequences compare equivalent. / * Positive value if *this appears after the character sequence specified by the arguments, in lexicographical order. /
- Parameters
-
s | pointer to the character string to compare to. / |
- Returns
- / * Negative value if
*this appears before the character sequence specified by the arguments, in lexicographical order. / * Zero if both character sequences compare equivalent. / * Positive value if *this appears after the character sequence specified by the arguments, in lexicographical order. /
- Parameters
-
pos1 | The position of the first character in this string to compare. / |
count1 | The number of characters of this string to compare. / |
s | pointer to the character string to compare to. / |
- Returns
- / * Negative value if
*this appears before the character sequence specified by the arguments, in lexicographical order. / * Zero if both character sequences compare equivalent. / * Positive value if *this appears after the character sequence specified by the arguments, in lexicographical order. /
|
int32 | compare (size_type pos1, size_type count1, const_pointer s) const |
|
int32 | compare (size_type pos1, size_type count1, const_pointer s, size_type count2) const |
| Compares two character sequences.
|
|
int32 | compare_to (const object &value) const |
| Compares this instance with a specified xtd::object and indicates whether this instance precedes, follows, or appears in the same position in the sort order as the specified xtd::object.
|
|
int32 | compare_to (const basic_string &value) const noexcept override |
| Compares this instance with a specified xtd::basic_string object and indicates whether this instance precedes, follows, or appears in the same position in the sort order as the specified string.
|
|
virtual bool | contains (value_type value) const noexcept |
| Returns a value indicating whether a specified char occurs within this basic_string.
|
|
virtual bool | contains (const basic_string &value) const noexcept |
| Returns a value indicating whether a specified substring occurs within this basic_string.
|
|
bool | equals (const object &obj) const noexcept override |
| Determines whether this instance and a specified object, which must also be a xtd::basic_string object, have the same value.
|
|
bool | equals (const basic_string &value) const noexcept override |
| Determines whether this instance and another specified xtd::basic_string object have the same value.
|
|
bool | equals (const basic_string &value, bool ignore_case) const noexcept |
| Determines whether this instance and another specified xtd::basic_string object have the same value, ignoring or honoring their case.
|
|
bool | ends_with (value_type value) const noexcept |
| Determines whether the end of this basic_string matches the specified character.
|
|
bool | ends_with (value_type value, bool ignore_case) const noexcept |
| Determines whether the end of this basic_string matches the specified character, ignoring or honoring their case.
|
|
bool | ends_with (const basic_string &value) const noexcept |
| Determines whether the end of this basic_string matches the specified basic_string.
|
|
bool | ends_with (const basic_string &value, bool ignore_case) const noexcept |
| Determines whether the end of this basic_string instance matches the specified basic_string, ignoring or honoring their case.
|
|
bool | ends_with (const basic_string &value, xtd::string_comparison comparison_type) const noexcept |
| Determines whether the end of this basic_string matches the specified basic_string when compared using the specified comparison option.
|
|
size_type | find (const basic_string &str) const |
| Finds the first substring equal to the given character sequence. Search begins at 0 , i.e. the found substring must not begin in a position preceding 0 .
|
|
size_type | find (const basic_string &str, size_type pos) const |
| Finds the first substring equal to the given character sequence. Search begins at pos , i.e. the found substring must not begin in a position preceding pos .
|
|
size_type | find (const_pointer s, size_type pos, size_type count) const |
| Finds the first substring equal to the given character sequence. Search begins at pos , i.e. the found substring must not begin in a position preceding pos .
|
|
size_type | find (const_pointer s) const |
| Finds the first substring equal to the given character sequence. Search begins at 0 , i.e. the found substring must not begin in a position preceding 0 .
|
|
size_type | find (const_pointer s, size_type pos) const |
| Finds the first substring equal to the given character sequence. Search begins at pos , i.e. the found substring must not begin in a position preceding pos .
|
|
size_type | find (value_type ch) const |
| Finds the first substring equal to the given character sequence. Search begins at 0 , i.e. the found substring must not begin in a position preceding 0 .
|
|
size_type | find (value_type ch, size_type pos) const |
| Finds the first substring equal to the given character sequence. Search begins at pos , i.e. the found substring must not begin in a position preceding pos .
|
|
size_type | find_first_of (const basic_string &str) const |
| Finds the first character equal to one of the characters in the given character sequence. The search considers only the range [pos , size()). If none of the characters in the given character sequence is present in the range, xtd::basic_string::npos will be returned. @parzm str The string identifying characters to search for.
|
|
size_type | find_first_of (const basic_string &str, size_type pos) const |
| Finds the first character equal to one of the characters in the given character sequence. The search considers only the range [pos , size()). If none of the characters in the given character sequence is present in the range, xtd::basic_string::npos will be returned.
|
|
size_type | find_first_of (const_pointer s, size_type pos, size_type count) const |
| Finds the first character equal to one of the characters in the given character sequence. The search considers only the range [pos , size()). If none of the characters in the given character sequence is present in the range, xtd::basic_string::npos will be returned.
|
|
size_type | find_first_of (const_pointer s) const |
| Finds the first character equal to one of the characters in the given character sequence. The search considers only the range [pos , size()). If none of the characters in the given character sequence is present in the range, xtd::basic_string::npos will be returned.
|
|
size_type | find_first_of (const_pointer s, size_type pos) const |
| Finds the first character equal to one of the characters in the given character sequence. The search considers only the range [pos , size()). If none of the characters in the given character sequence is present in the range, xtd::basic_string::npos will be returned.
|
|
size_type | find_first_of (char_t ch) const |
| Finds the first character equal to one of the characters in the given character sequence. The search considers only the range [pos , size()). If none of the characters in the given character sequence is present in the range, xtd::basic_string::npos will be returned.
|
|
size_type | find_first_of (char_t ch, size_type pos) const |
| Finds the first character equal to one of the characters in the given character sequence. The search considers only the range [pos , size()). If none of the characters in the given character sequence is present in the range, xtd::basic_string::npos will be returned.
|
|
size_type | find_first_not_of (const basic_string &str) const |
| Finds the first character equal to none of the characters in the given character sequence. The search considers only the range [pos , size()). If all characters in the range can be found in the given character sequence, xtd::basic_string::npos will be returned. @parzm str The string identifying characters to search for.
|
|
size_type | find_first_not_of (const basic_string &str, size_type pos) const |
| Finds the first character equal to none of the characters in the given character sequence. The search considers only the range [pos , size()). If all characters in the range can be found in the given character sequence, xtd::basic_string::npos will be returned.
|
|
size_type | find_first_not_of (const_pointer s, size_type pos, size_type count) const |
| Finds the first character equal to none of the characters in the given character sequence. The search considers only the range [pos , size()). If all characters in the range can be found in the given character sequence, xtd::basic_string::npos will be returned.
|
|
size_type | find_first_not_of (const_pointer s) const |
| Finds the first character equal to none of the characters in the given character sequence. The search considers only the range [pos , size()). If all characters in the range can be found in the given character sequence, xtd::basic_string::npos will be returned.
|
|
size_type | find_first_not_of (const_pointer s, size_type pos) const |
| Finds the first character equal to none of the characters in the given character sequence. The search considers only the range [pos , size()). If all characters in the range can be found in the given character sequence, xtd::basic_string::npos will be returned.
|
|
size_type | find_first_not_of (char_t ch) const |
| Finds the first character equal to none of the characters in the given character sequence. The search considers only the range [pos , size()). If all characters in the range can be found in the given character sequence, xtd::basic_string::npos will be returned.
|
|
size_type | find_first_not_of (char_t ch, size_type pos) const |
| Finds the first character equal to none of the characters in the given character sequence. The search considers only the range [pos , size()). If all characters in the range can be found in the given character sequence, xtd::basic_string::npos will be returned.
|
|
size_type | find_last_of (const basic_string &str) const |
| Finds the last character equal to one of characters in the given character sequence. The exact search algorithm is not specified. The search considers only the range [0 , pos ]. If none of the characters in the given character sequence is present in the range, xtd::basic_string::npos will be returned. @parzm str The string identifying characters to search for.
|
|
size_type | find_last_of (const basic_string &str, size_type pos) const |
| Finds the last character equal to one of characters in the given character sequence. The exact search algorithm is not specified. The search considers only the range [0 , pos ]. If none of the characters in the given character sequence is present in the range, xtd::basic_string::npos will be returned.
|
|
size_type | find_last_of (const_pointer s, size_type pos, size_type count) const |
| Finds the last character equal to one of characters in the given character sequence. The exact search algorithm is not specified. The search considers only the range [0 , pos ]. If none of the characters in the given character sequence is present in the range, xtd::basic_string::npos will be returned.
|
|
size_type | find_last_of (const_pointer s) const |
| Finds the last character equal to one of characters in the given character sequence. The exact search algorithm is not specified. The search considers only the range [0 , pos ]. If none of the characters in the given character sequence is present in the range, xtd::basic_string::npos will be returned.
|
|
size_type | find_last_of (const_pointer s, size_type pos) const |
| Finds the last character equal to one of characters in the given character sequence. The exact search algorithm is not specified. The search considers only the range [0 , pos ]. If none of the characters in the given character sequence is present in the range, xtd::basic_string::npos will be returned.
|
|
size_type | find_last_of (char_t ch) const |
| Finds the last character equal to one of characters in the given character sequence. The exact search algorithm is not specified. The search considers only the range [0 , pos ]. If none of the characters in the given character sequence is present in the range, xtd::basic_string::npos will be returned.
|
|
size_type | find_last_of (char_t ch, size_type pos) const |
| Finds the last character equal to one of characters in the given character sequence. The exact search algorithm is not specified. The search considers only the range [0 , pos ]. If none of the characters in the given character sequence is present in the range, xtd::basic_string::npos will be returned.
|
|
size_type | find_last_not_of (const basic_string &str) const |
| Finds the last character equal to none of the characters in the given character sequence. The search considers only the range [0 , pos ]. If all characters in the range can be found in the given character sequence,xtd::basic_string::npos will be returned. @parzm str The string identifying characters to search for.
|
|
size_type | find_last_not_of (const basic_string &str, size_type pos) const |
| Finds the last character equal to none of the characters in the given character sequence. The search considers only the range [0 , pos ]. If all characters in the range can be found in the given character sequence,xtd::basic_string::npos will be returned.
|
|
size_type | find_last_not_of (const_pointer s, size_type pos, size_type count) const |
| Finds the last character equal to none of the characters in the given character sequence. The search considers only the range [0 , pos ]. If all characters in the range can be found in the given character sequence,xtd::basic_string::npos will be returned.
|
|
size_type | find_last_not_of (const_pointer s) const |
| Finds the last character equal to none of the characters in the given character sequence. The search considers only the range [0 , pos ]. If all characters in the range can be found in the given character sequence,xtd::basic_string::npos will be returned.
|
|
size_type | find_last_not_of (const_pointer s, size_type pos) const |
| Finds the last character equal to none of the characters in the given character sequence. The search considers only the range [0 , pos ]. If all characters in the range can be found in the given character sequence,xtd::basic_string::npos will be returned.
|
|
size_type | find_last_not_of (char_t ch) const |
| Finds the last character equal to none of the characters in the given character sequence. The search considers only the range [0 , pos ]. If all characters in the range can be found in the given character sequence,xtd::basic_string::npos will be returned.
|
|
size_type | find_last_not_of (char_t ch, size_type pos) const |
| Finds the last character equal to none of the characters in the given character sequence. The search considers only the range [0 , pos ]. If all characters in the range can be found in the given character sequence,xtd::basic_string::npos will be returned.
|
|
allocator_type | get_allocator () const |
| Returns the allocator associated with the string.
|
|
virtual const base_type & | get_base_type () const noexcept |
| Returns the underlying base type.
|
|
xtd::size | get_hash_code () const noexcept override |
| Returns the hash code for this basic_string.
|
|
enumerator_type | get_enumerator () const noexcept override |
| Returns an enumerator that iterates through a collection.
|
|
xtd::size | index_of (const basic_string &value) const noexcept |
| Reports the index of the first occurrence of the specified basic_string in this basic_string.
|
|
xtd::size | index_of (const basic_string &value, xtd::size start_index) const |
| Reports the index of the first occurrence of the specified character in this basic_string. The search starts at a specified character position.
|
|
xtd::size | index_of (const basic_string &value, xtd::size start_index, xtd::size count) const |
| Reports the index of the first occurrence of the specified character in this basic_string. The search starts at a specified character position and examines a specified number of character positions.
|
|
xtd::size | index_of (value_type value) const noexcept |
| Reports the index of the first occurrence of the specified character in this basic_string.
|
|
xtd::size | index_of (value_type value, xtd::size start_index) const |
| Reports the index of the first occurrence of the specified character in this basic_string. The search starts at a specified character position.
|
|
xtd::size | index_of (value_type value, xtd::size start_index, xtd::size count) const |
| Reports the index of the first occurrence of the specified character in this basic_string. The search starts at a specified character position and examines a specified number of character positions.
|
|
xtd::size | index_of_any (const xtd::array< value_type > &values) const noexcept |
| Reports the index of the first occurrence in this instance of any character in a specified array of characters.
|
|
xtd::size | index_of_any (const xtd::array< value_type > &values, xtd::size start_index) const |
| Reports the index of the first occurrence in this instance of any character in a specified array of characters. The search starts at a specified character position.
|
|
xtd::size | index_of_any (const xtd::array< value_type > &values, xtd::size start_index, xtd::size count) const |
| Reports the index of the first occurrence in this instance of any character in a specified array of characters. The search starts at a specified character position.
|
|
basic_string | insert (xtd::size start_index, const basic_string &value) const |
| Inserts a specified instance of basic_string at a specified index position in this instance.
|
|
xtd::size | last_index_of (const basic_string &value) const noexcept |
| Reports the index of the last occurrence of the specified basic_string in this basic_string.
|
|
xtd::size | last_index_of (const basic_string &value, xtd::size start_index) const |
| Reports the index of the last occurrence of the specified character in this basic_string. The search starts at a specified character position.
|
|
xtd::size | last_index_of (const basic_string &value, xtd::size start_index, xtd::size count) const |
| Reports the index of the last occurrence of the specified character in this basic_string. The search starts at a specified character position and examines a specified number of character positions.
|
|
xtd::size | last_index_of (value_type value) const noexcept |
| Reports the index of the last occurrence of the specified character in this tring.
|
|
xtd::size | last_index_of (value_type value, xtd::size start_index) const |
| Reports the index of the last occurrence of the specified character in this basic_string. The search starts at a specified character position.
|
|
xtd::size | last_index_of (value_type value, xtd::size start_index, xtd::size count) const |
| Reports the index of the last occurrence of the specified character in this basic_string. The search starts at a specified character position and examines a specified number of character positions.
|
|
xtd::size | last_index_of_any (const xtd::array< value_type > &values) const noexcept |
| Reports the index of the last occurrence in this instance of any character in a specified array of characters.
|
|
xtd::size | last_index_of_any (const xtd::array< value_type > &values, xtd::size start_index) const |
| Reports the index of the last occurrence in this instance of any character in a specified array of characters. The search starts at a specified character position.
|
|
xtd::size | last_index_of_any (const xtd::array< value_type > &values, xtd::size start_index, xtd::size count) const |
| Reports the index of the last occurrence in this instance of any character in a specified array of characters. The search starts at a specified character position.
|
|
basic_string | pad_left (xtd::size total_width) const noexcept |
| Right-aligns the characters in this basic_string, padding with spaces on the left for a specified total length.
|
|
basic_string | pad_left (xtd::size total_width, char32 padding_char) const noexcept |
| Right-aligns the characters in this basic_string, padding with spaces on the left for a specified total length.
|
|
basic_string | pad_right (xtd::size total_width) const noexcept |
| Left-aligns the characters in this basic_string, padding with spaces on the right for a specified total length.
|
|
basic_string | pad_right (xtd::size total_width, char32 padding_char) const noexcept |
| Left-aligns the characters in this basic_string, padding with spaces on the right for a specified total length.
|
|
basic_string | quoted () const |
| Allows insertion and extraction of quoted strings, such as the ones found in CSV or XML.
|
|
basic_string | quoted (value_type delimiter) const |
| Allows insertion and extraction of quoted strings, such as the ones found in CSV or XML ith specified delimiter.
|
|
basic_string | quoted (value_type delimiter, value_type escape) const |
| Allows insertion and extraction of quoted strings, such as the ones found in CSV or XML ith specified delimiter and escape.
|
|
basic_string | remove (xtd::size start_index) const |
| Deletes all the characters from this basic_string beginning at a specified position and continuing through the last position.
|
|
basic_string | remove (xtd::size start_index, xtd::size count) const |
| Deletes all the characters from this basic_string beginning at a specified position and continuing through the last position.
|
|
basic_string | replace (value_type old_char, value_type new_char) const noexcept |
| Replaces all occurrences of a specified char_t in this basic_string with another specified char_t.
|
|
basic_string | replace (const basic_string &old_string, const basic_string &new_string) const noexcept |
| Replaces all occurrences of a specified basic_string in this basic_string with another specified basic_string.
|
|
size_type | rfind (const_pointer s) const |
| Finds the last substring that is equal to the given character sequence. The search begins at xtd::basic_string::nposand proceeds from right to left (thus, the found substring, if any, cannot begin in a position following xtd::basic_string::npos). If xtd::basic_string::npos or any value not smaller than xtd::basic_string::size() - 1 is passed as xtd::basic_string::npos, the whole string will be searched. / @return Position of the first character of the found substring or xtd::basic_string::npos if no such substring is found. / @remarks Finds the first substring equal to str. size_type rfind(const basic_string & str) const {return chars_.rfind(str);} / @brief Finds the last substring that is equal to the given character sequence. The search begins at posand proceeds from right to left (thus, the found substring, if any, cannot begin in a position following pos). If xtd::basic_string::npos or any value not smaller than xtd::basic_string::size() - 1 is passed as pos, the whole string will be searched. / @param str The string to search for. / @param pos The position at which to start the search / @return Position of the first character of the found substring or xtd::basic_string::npos if no such substring is found. / @remarks Finds the first substring equal to str. size_type rfind(const basic_string & str, size_type pos) const {return chars_.rfind(str, pos);} / @brief Finds the last substring that is equal to the given character sequence. The search begins at posand proceeds from right to left (thus, the found substring, if any, cannot begin in a position following pos). If xtd::basic_string::npos or any value not smaller than xtd::basic_string::size() - 1 is passed as pos, the whole string will be searched. / @param str The string to search for. / @param pos The position at which to start the search / @param count The length of substring to search for. / @return Position of the first character of the found substring or xtd::basic_string::npos if no such substring is found. / @remarks Finds the first substring equal to the range [s, s + count). / @remarks This range may contain null characters. If [ s, s + count) is not a valid range, the behavior is undefined. size_type rfind(const_pointer s, size_type pos, size_type count) const {return chars_.rfind(s, pos, count);} / @brief Finds the last substring that is equal to the given character sequence. The search begins at xtd::basic_string::npos and proceeds from right to left (thus, the found substring, if any, cannot begin in a position following xtd::basic_string::npos). If xtd::basic_string::npos or any value not smaller than xtd::basic_string::size() - 1 is passed as xtd::basic_string::npos, the whole string will be searched.
|
|
size_type | rfind (const_pointer s, size_type pos) const |
| Finds the last substring that is equal to the given character sequence. The search begins at pos and proceeds from right to left (thus, the found substring, if any, cannot begin in a position following pos ). If xtd::basic_string::npos or any value not smaller than xtd::basic_string::size() - 1 is passed as pos , the whole string will be searched.
|
|
Returns a reference to the character at specified location index. /
/
/ / - Parameters
-
index | The position of the character to return. / |
- Returns
- Reference to the requested character. /
- Exceptions
-
xtd::index_out_of_range_exception | If `index` is not within the range of the string. const_reference operator [](xtd::size index) const { if (index >= length() && index != epos) xtd::helpers::throw_helper::throws(xtd::helpers::exception_case::index_out_of_range); return chars_[index == epos ? length() - 1 : index]; } |
/ Returns a reference to the underlying base type. / - Returns
- Reference to the underlying base type. operator const base_type & () const noexcept {return chars_;}
/ Copy assignment operator. Replaces the contents with a copy of the contents of str. / - Parameters
-
str | String to use as data source. / |
- Returns
- This current instance. basic_string& operator =(const basic_string<char>& str) noexcept { if constexpr(std::is_same<char_t, char>::value) chars_ = str.chars_; else chars_ = __xtd_convert_to_string<value_type>(str.chars()); return self_; } / Copy assignment operator. Replaces the contents with a copy of the contents of str. /
- Parameters
-
str | String to use as data source. / |
- Returns
- This current instance. basic_string& operator =(const basic_string<xtd::char16>& str) noexcept { if constexpr(std::is_same<char_t, xtd::char16>::value) chars_ = str.chars_; else chars_ = __xtd_convert_to_string<value_type>(str.chars()); return self_; } / Copy assignment operator. Replaces the contents with a copy of the contents of str. /
- Parameters
-
str | String to use as data source. / |
- Returns
- This current instance. basic_string& operator =(const basic_string<xtd::char32>& str) noexcept { if constexpr(std::is_same<char_t, xtd::char32>::value) chars_ = str.chars_; else chars_ = __xtd_convert_to_string<value_type>(str.chars()); return self_; } / Copy assignment operator. Replaces the contents with a copy of the contents of str. /
- Parameters
-
str | String to use as data source. / |
- Returns
- This current instance. basic_string& operator =(const basic_string<xtd::char8>& str) noexcept { if constexpr(std::is_same<char_t, xtd::char8>::value) chars_ = str.chars_; else chars_ = __xtd_convert_to_string<value_type>(str.chars()); return self_; } / Copy assignment operator. Replaces the contents with a copy of the contents of str. /
- Parameters
-
str | String to use as data source. / |
- Returns
- This current instance. basic_string& operator =(const basic_string<xtd::wchar>& str) noexcept { if constexpr(std::is_same<char_t, xtd::wchar>::value) chars_ = str.chars_; else chars_ = __xtd_convert_to_string<value_type>(str.chars()); return self_; }
/ Move assignment operator. Replaces the contents with those of other using move semantics (i.e. the data in str is moved from str into this string). str is in a valid but unspecified state afterwards. / - Parameters
-
str | String to use as data source. / |
- Returns
- This current instance. basic_string& operator =(basic_string<char>&& str) noexcept { if constexpr(std::is_same<char_t, char>::value) chars_ = std::move(str.chars_); else chars_ = std::move(__xtd_convert_to_string<value_type>(std::move(str.chars_))); return self_; } / Move assignment operator. Replaces the contents with those of other using move semantics (i.e. the data in
str is moved from str into this string). str is in a valid but unspecified state afterwards. /
- Parameters
-
str | String to use as data source. / |
- Returns
- This current instance. basic_string& operator =(basic_string<xtd::char16>&& str) noexcept { if constexpr(std::is_same<char_t, xtd::char16>::value) chars_ = std::move(str.chars_); else chars_ = std::move(__xtd_convert_to_string<value_type>(std::move(str.chars_))); return self_; } / Move assignment operator. Replaces the contents with those of other using move semantics (i.e. the data in
str is moved from str into this string). str is in a valid but unspecified state afterwards. /
- Parameters
-
str | String to use as data source. / |
- Returns
- This current instance. basic_string& operator =(basic_string<xtd::char32>&& str) noexcept { if constexpr(std::is_same<char_t, xtd::char32>::value) chars_ = std::move(str.chars_); else chars_ = std::move(__xtd_convert_to_string<value_type>(std::move(str.chars_))); return self_; } / Move assignment operator. Replaces the contents with those of other using move semantics (i.e. the data in
str is moved from str into this string). str is in a valid but unspecified state afterwards. /
- Parameters
-
str | String to use as data source. / |
- Returns
- This current instance. basic_string& operator =(basic_string<xtd::char8>&& str) noexcept { if constexpr(std::is_same<char_t, xtd::char8>::value) chars_ = std::move(str.chars_); else chars_ = std::move(__xtd_convert_to_string<value_type>(std::move(str.chars_))); return self_; } / Move assignment operator. Replaces the contents with those of other using move semantics (i.e. the data in
str is moved from str into this string). str is in a valid but unspecified state afterwards. /
- Parameters
-
str | String to use as data source. / |
- Returns
- This current instance. basic_string& operator =(basic_string<xtd::wchar>&& str) noexcept { if constexpr(std::is_same<char_t, xtd::wchar>::value) chars_ = std::move(str.chars_); else chars_ = std::move(__xtd_convert_to_string<value_type>(std::move(str.chars_))); return self_; }
/ Copy assignment operator. Replaces the contents with a copy of the contents of str . / - Parameters
-
str | String to use as data source. / |
- Returns
- This current instance. basic_string& operator =(const std::basic_string<char>& str) noexcept { if constexpr(std::is_same<char_t, char>::value) chars_ = str; else chars_ = __xtd_convert_to_string<value_type>(str); return self_; } / Copy assignment operator. Replaces the contents with a copy of the contents of
str . /
- Parameters
-
str | String to use as data source. / |
- Returns
- This current instance. basic_string& operator =(const std::basic_string<xtd::char16>& str) noexcept { if constexpr(std::is_same<char_t, xtd::char16>::value) chars_ = str; else chars_ = __xtd_convert_to_string<value_type>(str); return self_; } / Copy assignment operator. Replaces the contents with a copy of the contents of
str . /
- Parameters
-
str | String to use as data source. / |
- Returns
- This current instance. basic_string& operator =(const std::basic_string<xtd::char32>& str) noexcept { if constexpr(std::is_same<char_t, xtd::char32>::value) chars_ = str; else chars_ = __xtd_convert_to_string<value_type>(str); return self_; } / Copy assignment operator. Replaces the contents with a copy of the contents of
str . /
- Parameters
-
str | String to use as data source. / |
- Returns
- This current instance. basic_string& operator =(const std::basic_string<xtd::char8>& str) noexcept { if constexpr(std::is_same<char_t, xtd::char8>::value) chars_ = str; else chars_ = __xtd_convert_to_string<value_type>(str); return self_; } / Copy assignment operator. Replaces the contents with a copy of the contents of
str . /
- Parameters
-
str | String to use as data source. / |
- Returns
- This current instance. basic_string& operator =(const std::basic_string<xtd::wchar>& str) noexcept { if constexpr(std::is_same<char_t, xtd::wchar>::value) chars_ = str; else chars_ = __xtd_convert_to_string<value_type>(str); return self_; }
/ Copy assignment operator. Replaces the contents with a copy of the contents of str . / - Parameters
-
str | String to use as data source. / |
- Returns
- This current instance. basic_string& operator =(std::basic_string<char>&& str) noexcept { if constexpr(std::is_same<char_t, char>::value) chars_ = std::move(str); else chars_ = std::move(__xtd_convert_to_string<value_type>(std::move(str))); return self_; } / Copy assignment operator. Replaces the contents with a copy of the contents of
str . /
- Parameters
-
str | String to use as data source. / |
- Returns
- This current instance. basic_string& operator =(std::basic_string<xtd::char16>&& str) noexcept { if constexpr(std::is_same<char_t, xtd::char16>::value) chars_ = std::move(str); else chars_ = std::move(__xtd_convert_to_string<value_type>(std::move(str))); return self_; } / Copy assignment operator. Replaces the contents with a copy of the contents of
str . /
- Parameters
-
str | String to use as data source. / |
- Returns
- This current instance. basic_string& operator =(std::basic_string<xtd::char32>&& str) noexcept { if constexpr(std::is_same<char_t, xtd::char32>::value) chars_ = std::move(str); else chars_ = std::move(__xtd_convert_to_string<value_type>(std::move(str))); return self_; } / Copy assignment operator. Replaces the contents with a copy of the contents of
str . /
- Parameters
-
str | String to use as data source. / |
- Returns
- This current instance. basic_string& operator =(std::basic_string<xtd::char8>&& str) noexcept { if constexpr(std::is_same<char_t, xtd::char8>::value) chars_ = std::move(str); else chars_ = std::move(__xtd_convert_to_string<value_type>(std::move(str))); return self_; } / Copy assignment operator. Replaces the contents with a copy of the contents of
str . /
- Parameters
-
str | String to use as data source. / |
- Returns
- This current instance. basic_string& operator =(std::basic_string<xtd::wchar>&& str) noexcept { if constexpr(std::is_same<char_t, xtd::wchar>::value) chars_ = std::move(str); else chars_ = std::move(__xtd_convert_to_string<value_type>(std::move(str))); return self_; }
/ Copy assignment operator. Replaces the contents with a copy of the contents of str . / - Parameters
-
str | String litteral pointer to use as data source. / |
- Exceptions
-
xtd::tring_null_pointer_exception | The `str` is null. / |
- Returns
- This current instance. basic_string& operator =(const char* str) { if (str == null) xtd::helpers::throw_helper::throws(xtd::helpers::exception_case::null_pointer); if constexpr(std::is_same_v<char, char_t>) chars_ = std::basic_string<char>(str); else chars_ = __xtd_convert_to_string<value_type>(std::basic_string<char>(str)); return self_; } / Copy assignment operator. Replaces the contents with a copy of the contents of
str . /
- Parameters
-
str | String litteral pointer to use as data source. / |
- Exceptions
-
xtd::tring_null_pointer_exception | The `str` is null. / |
- Returns
- This current instance. basic_string& operator =(const xtd::char16 * str) { if (str == null) xtd::helpers::throw_helper::throws(xtd::helpers::exception_case::null_pointer); if constexpr(std::is_same_v<xtd::char16, char_t>) chars_ = std::basic_string<xtd::char16>(str); else chars_ = __xtd_convert_to_string<value_type>(std::basic_string<xtd::char16>(str)); return self_; } / Copy assignment operator. Replaces the contents with a copy of the contents of
str . /
- Parameters
-
str | String litteral pointer to use as data source. / |
- Exceptions
-
xtd::tring_null_pointer_exception | The `str` is null. / |
- Returns
- This current instance. basic_string& operator =(const xtd::char32 * str) { if (str == null) xtd::helpers::throw_helper::throws(xtd::helpers::exception_case::null_pointer); if constexpr(std::is_same_v<xtd::char32, char_t>) chars_ = std::basic_string<xtd::char32>(str); else chars_ = __xtd_convert_to_string<value_type>(std::basic_string<xtd::char32>(str)); return self_; } / Copy assignment operator. Replaces the contents with a copy of the contents of
str . /
- Parameters
-
str | String litteral pointer to use as data source. / |
- Exceptions
-
xtd::tring_null_pointer_exception | The `str` is null. / |
- Returns
- This current instance. basic_string& operator =(const xtd::char8 * str) { if (str == null) xtd::helpers::throw_helper::throws(xtd::helpers::exception_case::null_pointer); if constexpr(std::is_same_v<xtd::char8, char_t>) chars_ = std::basic_string<xtd::char8>(str); else chars_ = __xtd_convert_to_string<value_type>(std::basic_string<xtd::char8>(str)); return self_; } / Copy assignment operator. Replaces the contents with a copy of the contents of
str . /
- Parameters
-
str | String litteral pointer to use as data source. / |
- Exceptions
-
xtd::tring_null_pointer_exception | The `str` is null. / |
- Returns
- This current instance. basic_string& operator =(const xtd::wchar * str) { if (str == null) xtd::helpers::throw_helper::throws(xtd::helpers::exception_case::null_pointer); if constexpr(std::is_same_v<xtd::wchar, char_t>) chars_ = std::basic_string<xtd::wchar>(str); else chars_ = __xtd_convert_to_string<value_type>(std::basic_string<xtd::wchar>(str)); return self_; }
/ Copy assignment operator. Replaces the contents with the specified character. / - Parameters
-
character | The character to use as data source. / |
- Returns
- This current instance. basic_string& operator =(char character) { self_ = basic_string(1, character); return self_; } / Copy assignment operator. Replaces the contents with the specified character. /
- Parameters
-
character | The character to use as data source. / |
- Returns
- This current instance. basic_string& operator =(xtd::char16 character) { self_ = basic_string(1, character); return self_; } / Copy assignment operator. Replaces the contents with the specified character. /
- Parameters
-
character | The character to use as data source. / |
- Returns
- This current instance. basic_string& operator =(xtd::char32 character) { self_ = basic_string(1, character); return self_; } / Copy assignment operator. Replaces the contents with the specified character. /
- Parameters
-
character | The character to use as data source. / |
- Returns
- This current instance. basic_string& operator =(xtd::char8 character) { self_ = basic_string(1, character); return self_; } / Copy assignment operator. Replaces the contents with the specified character. /
- Parameters
-
character | The character to use as data source. / |
- Returns
- This current instance. basic_string& operator =(xtd::wchar character) { self_ = basic_string(1, character); return self_; }
/ Copy assignment operator. Replaces the contents with a copy of the contents of the specified initializer list. / - Parameters
-
il | The initialiazer list to use as data source. / |
- Returns
- This current instance. basic_string& operator =(const std::initializer_list<char>& il) { self_ = basic_string(il); return self_; } / Copy assignment operator. Replaces the contents with a copy of the contents of the specified initializer list. /
- Parameters
-
il | The initialiazer list to use as data source. / |
- Returns
- This current instance. basic_string& operator =(const std::initializer_list<xtd::char16>& il) { self_ = basic_string(il); return self_; } / Copy assignment operator. Replaces the contents with a copy of the contents of the specified initializer list. /
- Parameters
-
il | The initialiazer list to use as data source. / |
- Returns
- This current instance. basic_string& operator =(const std::initializer_list<xtd::char32>& il) { self_ = basic_string(il); return self_; } / Copy assignment operator. Replaces the contents with a copy of the contents of the specified initializer list. /
- Parameters
-
il | The initialiazer list to use as data source. / |
- Returns
- This current instance. basic_string& operator =(const std::initializer_list<xtd::char8>& il) { self_ = basic_string(il); return self_; } / Copy assignment operator. Replaces the contents with a copy of the contents of the specified initializer list. /
- Parameters
-
il | The initialiazer list to use as data source. / |
- Returns
- This current instance. basic_string& operator =(const std::initializer_list<xtd::wchar>& il) { self_ = basic_string(il); return self_; }
/ Addition assignment operator. Appends additional characters to the string. / - Parameters
-
- Returns
- This current instance with characters added. basic_string & operator +=(const basic_string<char>& str) { if constexpr(std::is_same_v<char, char_t>) chars_ += str.chars_; else chars_ += __xtd_convert_to_string<value_type>(str.chars_); return self_; } / Addition assignment operator. Appends additional characters to the string. /
- Parameters
-
- Returns
- This current instance with characters added. basic_string & operator +=(const basic_string<xtd::char16>& str) { if constexpr(std::is_same_v<xtd::char16, char_t>) chars_ += str.chars_; else chars_ += __xtd_convert_to_string<value_type>(str.chars_); return self_; } / Addition assignment operator. Appends additional characters to the string. /
- Parameters
-
- Returns
- This current instance with characters added. basic_string & operator +=(const basic_string<xtd::char32>& str) { if constexpr(std::is_same_v<xtd::char32, char_t>) chars_ += str.chars_; else chars_ += __xtd_convert_to_string<value_type>(str.chars_); return self_; } / Addition assignment operator. Appends additional characters to the string. /
- Parameters
-
- Returns
- This current instance with characters added. basic_string & operator +=(const basic_string<xtd::char8>& str) { if constexpr(std::is_same_v<xtd::char8, char_t>) chars_ += str.chars_; else chars_ += __xtd_convert_to_string<value_type>(str.chars_); return self_; } / Addition assignment operator. Appends additional characters to the string. /
- Parameters
-
- Returns
- This current instance with characters added. basic_string & operator +=(const basic_string<xtd::wchar>& str) { if constexpr(std::is_same_v<xtd::wchar, char_t>) chars_ += str.chars_; else chars_ += __xtd_convert_to_string<value_type>(str.chars_); return self_; }
/ Addition assignment operator. Appends additional characters to the string. / - Parameters
-
- Returns
- This current instance with characters added. basic_string & operator +=(basic_string<char>&& str) { if constexpr(std::is_same_v<char, char_t>) chars_ += std::move(str.chars_); else chars_ += __xtd_convert_to_string<value_type>(std::move(str.chars_)); return self_; } / Addition assignment operator. Appends additional characters to the string. /
- Parameters
-
- Returns
- This current instance with characters added. basic_string & operator +=(basic_string<xtd::char16>&& str) { if constexpr(std::is_same_v<xtd::char16, char_t>) chars_ += std::move(str.chars_); else chars_ += __xtd_convert_to_string<value_type>(std::move(str.chars_)); return self_; } / Addition assignment operator. Appends additional characters to the string. /
- Parameters
-
- Returns
- This current instance with characters added. basic_string & operator +=(basic_string<xtd::char32>&& str) { if constexpr(std::is_same_v<xtd::char32, char_t>) chars_ += std::move(str.chars_); else chars_ += __xtd_convert_to_string<value_type>(std::move(str.chars_)); return self_; } / Addition assignment operator. Appends additional characters to the string. /
- Parameters
-
- Returns
- This current instance with characters added. basic_string & operator +=(basic_string<xtd::char8>&& str) { if constexpr(std::is_same_v<xtd::char8, char_t>) chars_ += std::move(str.chars_); else chars_ += __xtd_convert_to_string<value_type>(std::move(str.chars_)); return self_; } / Addition assignment operator. Appends additional characters to the string. /
- Parameters
-
- Returns
- This current instance with characters added. basic_string & operator +=(basic_string<xtd::wchar>&& str) { if constexpr(std::is_same_v<xtd::wchar, char_t>) chars_ += std::move(str.chars_); else chars_ += __xtd_convert_to_string<value_type>(std::move(str.chars_)); return self_; }
/ Addition assignment operator. Appends additional characters to the string. / - Parameters
-
- Returns
- This current instance with characters added. basic_string & operator +=(const std::basic_string<char>& str) { if constexpr(std::is_same_v<char, char_t>) chars_ += str; else chars_ += __xtd_convert_to_string<value_type>(str); return self_; } / Addition assignment operator. Appends additional characters to the string. /
- Parameters
-
- Returns
- This current instance with characters added. basic_string & operator +=(const std::basic_string<xtd::char16>& str) { if constexpr(std::is_same_v<xtd::char16, char_t>) chars_ += str; else chars_ += __xtd_convert_to_string<value_type>(str); return self_; } / Addition assignment operator. Appends additional characters to the string. /
- Parameters
-
- Returns
- This current instance with characters added. basic_string & operator +=(const std::basic_string<xtd::char32>& str) { if constexpr(std::is_same_v<xtd::char32, char_t>) chars_ += str; else chars_ += __xtd_convert_to_string<value_type>(str); return self_; } / Addition assignment operator. Appends additional characters to the string. /
- Parameters
-
- Returns
- This current instance with characters added. basic_string & operator +=(const std::basic_string<xtd::char8>& str) { if constexpr(std::is_same_v<xtd::char8, char_t>) chars_ += str; else chars_ += __xtd_convert_to_string<value_type>(str); return self_; } / Addition assignment operator. Appends additional characters to the string. /
- Parameters
-
- Returns
- This current instance with characters added. basic_string & operator +=(const std::basic_string<xtd::wchar>& str) { if constexpr(std::is_same_v<xtd::wchar, char_t>) chars_ += str; else chars_ += __xtd_convert_to_string<value_type>(str); return self_; }
/ Addition assignment operator. Appends additional characters to the string. / - Parameters
-
- Returns
- This current instance with characters added. basic_string & operator +=(const char* str) { chars_ += basic_string(str).chars_; return self_; } / Addition assignment operator. Appends additional characters to the string. /
- Parameters
-
- Returns
- This current instance with characters added. basic_string & operator +=(const xtd::char16 * str) { chars_.append(basic_string(str).chars_); return self_; } / Addition assignment operator. Appends additional characters to the string. /
- Parameters
-
- Returns
- This current instance with characters added. basic_string & operator +=(const xtd::char32 * str) { chars_ += basic_string(str).chars_; return self_; } / Addition assignment operator. Appends additional characters to the string. /
- Parameters
-
- Returns
- This current instance with characters added. basic_string & operator +=(const xtd::char8 * str) { chars_ += basic_string(str).chars_; return self_; } / Addition assignment operator. Appends additional characters to the string. /
- Parameters
-
- Returns
- This current instance with characters added. basic_string & operator +=(const xtd::wchar * str) { chars_ += basic_string(str).chars_; return self_; } / Addition assignment operator. Appends additional characters to the string. /
- Parameters
-
ch | Character value to append. / |
- Returns
- This current instance with characters added. basic_string & operator +=(char ch) { chars_ += basic_string(1, ch).chars_; return self_; } / Addition assignment operator. Appends additional characters to the string. /
- Parameters
-
ch | Character value to append. / |
- Returns
- This current instance with characters added. basic_string & operator +=(xtd::char16 ch) { chars_ += basic_string(1, ch).chars_; return self_; } / Addition assignment operator. Appends additional characters to the string. /
- Parameters
-
ch | Character value to append. / |
- Returns
- This current instance with characters added. basic_string & operator +=(xtd::char32 ch) { chars_ += basic_string(1, ch).chars_; return self_; } / Addition assignment operator. Appends additional characters to the string. /
- Parameters
-
ch | Character value to append. / |
- Returns
- This current instance with characters added. basic_string & operator +=(xtd::char8 ch) { chars_ += basic_string(1, ch).chars_; return self_; } / Addition assignment operator. Appends additional characters to the string. /
- Parameters
-
ch | Character value to append. / |
- Returns
- This current instance with characters added. basic_string & operator +=(xtd::wchar ch) { chars_ += basic_string(1, ch).chars_; return self_; }
/ Addition operator. Returns a string containing characters from lhs followed by the characters from rhs . / - Parameters
-
lhs | The string characters who will precede the rhs . / |
rhs | The string characters who will follow the lhs . / |
- Returns
- A string containing characters from
lhs followed by the characters from rhs . friend basic_string operator +(const basic_string & lhs, const basic_string<char>& rhs) { auto result = lhs; result += rhs; return result; } / Addition operator. Returns a string containing characters from lhs followed by the characters from rhs . /
- Parameters
-
lhs | The string characters who will precede the rhs . / |
rhs | The string characters who will follow the lhs . / |
- Returns
- A string containing characters from
lhs followed by the characters from rhs . friend basic_string operator +(const basic_string & lhs, const basic_string<xtd::char16>& rhs) { auto result = lhs; result += rhs; return result; } / Addition operator. Returns a string containing characters from lhs followed by the characters from rhs . /
- Parameters
-
lhs | The string characters who will precede the rhs . / |
rhs | The string characters who will follow the lhs . / |
- Returns
- A string containing characters from
lhs followed by the characters from rhs . friend basic_string operator +(const basic_string & lhs, const basic_string<xtd::char32>& rhs) { auto result = lhs; result += rhs; return result; } / Addition operator. Returns a string containing characters from lhs followed by the characters from rhs . /
- Parameters
-
lhs | The string characters who will precede the rhs . / |
rhs | The string characters who will follow the lhs . / |
- Returns
- A string containing characters from
lhs followed by the characters from rhs . friend basic_string operator +(const basic_string & lhs, const basic_string<xtd::char8>& rhs) { auto result = lhs; result += rhs; return result; } / Addition operator. Returns a string containing characters from lhs followed by the characters from rhs . /
- Parameters
-
lhs | The string characters who will precede the rhs . / |
rhs | The string characters who will follow the lhs . / |
- Returns
- A string containing characters from
lhs followed by the characters from rhs . friend basic_string operator +(const basic_string & lhs, const basic_string<xtd::wchar>& rhs) { auto result = lhs; result += rhs; return result; }
/ Addition operator. Returns a string containing characters from lhs followed by the characters from rhs . / - Parameters
-
lhs | The string characters who will precede the rhs . / |
rhs | The string characters who will follow the lhs . / |
- Returns
- A string containing characters from
lhs followed by the characters from rhs . friend basic_string operator +(basic_string&& lhs, basic_string<char>&& rhs) { auto result = std::move(lhs); result += std::move(rhs); return result; } / Addition operator. Returns a string containing characters from lhs followed by the characters from rhs . /
- Parameters
-
lhs | The string characters who will precede the rhs . / |
rhs | The string characters who will follow the lhs . / |
- Returns
- A string containing characters from
lhs followed by the characters from rhs . friend basic_string operator +(basic_string&& lhs, basic_string<xtd::char16>&& rhs) { auto result = std::move(lhs); result += std::move(rhs); return result; } / Addition operator. Returns a string containing characters from lhs followed by the characters from rhs . /
- Parameters
-
lhs | The string characters who will precede the rhs . / |
rhs | The string characters who will follow the lhs . / |
- Returns
- A string containing characters from
lhs followed by the characters from rhs . friend basic_string operator +(basic_string&& lhs, basic_string<xtd::char32>&& rhs) { auto result = std::move(lhs); result += std::move(rhs); return result; } / Addition operator. Returns a string containing characters from lhs followed by the characters from rhs . /
- Parameters
-
lhs | The string characters who will precede the rhs . / |
rhs | The string characters who will follow the lhs . / |
- Returns
- A string containing characters from
lhs followed by the characters from rhs . friend basic_string operator +(basic_string&& lhs, basic_string<xtd::char8>&& rhs) { auto result = std::move(lhs); result += std::move(rhs); return result; } / Addition operator. Returns a string containing characters from lhs followed by the characters from rhs . /
- Parameters
-
lhs | The string characters who will precede the rhs . / |
rhs | The string characters who will follow the lhs . / |
- Returns
- A string containing characters from
lhs followed by the characters from rhs . friend basic_string operator +(basic_string&& lhs, basic_string<xtd::wchar>&& rhs) { auto result = std::move(lhs); result += std::move(rhs); return result; }
/ Addition operator. Returns a string containing characters from lhs followed by the characters from rhs . / - Parameters
-
lhs | The string characters who will precede the rhs . / |
rhs | The string characters who will follow the lhs . / |
- Returns
- A string containing characters from
lhs followed by the characters from rhs . friend basic_string operator +(basic_string&& lhs, const basic_string<char>& rhs) { auto result = std::move(lhs); result += rhs; return result; } / Addition operator. Returns a string containing characters from lhs followed by the characters from rhs . /
- Parameters
-
lhs | The string characters who will precede the rhs . / |
rhs | The string characters who will follow the lhs . / |
- Returns
- A string containing characters from
lhs followed by the characters from rhs . friend basic_string operator +(basic_string&& lhs, const basic_string<xtd::char16>& rhs) { auto result = std::move(lhs); result += rhs; return result; } / Addition operator. Returns a string containing characters from lhs followed by the characters from rhs . /
- Parameters
-
lhs | The string characters who will precede the rhs . / |
rhs | The string characters who will follow the lhs . / |
- Returns
- A string containing characters from
lhs followed by the characters from rhs . friend basic_string operator +(basic_string&& lhs, const basic_string<xtd::char32>& rhs) { auto result = std::move(lhs); result += rhs; return result; } / Addition operator. Returns a string containing characters from lhs followed by the characters from rhs . /
- Parameters
-
lhs | The string characters who will precede the rhs . / |
rhs | The string characters who will follow the lhs . / |
- Returns
- A string containing characters from
lhs followed by the characters from rhs . friend basic_string operator +(basic_string&& lhs, const basic_string<xtd::char8>& rhs) { auto result = std::move(lhs); result += rhs; return result; } / Addition operator. Returns a string containing characters from lhs followed by the characters from rhs . /
- Parameters
-
lhs | The string characters who will precede the rhs . / |
rhs | The string characters who will follow the lhs . / |
- Returns
- A string containing characters from
lhs followed by the characters from rhs . friend basic_string operator +(basic_string&& lhs, const basic_string<xtd::wchar>& rhs) { auto result = std::move(lhs); result += rhs; return result; }
/ Addition operator. Returns a string containing characters from lhs followed by the characters from rhs . / - Parameters
-
lhs | The string characters who will precede the rhs . / |
rhs | The string characters who will follow the lhs . / |
- Returns
- A string containing characters from
lhs followed by the characters from rhs . friend basic_string operator +(const basic_string & lhs, basic_string<char>&& rhs) { auto result = lhs; result += std::move(rhs); return result; } / Addition operator. Returns a string containing characters from lhs followed by the characters from rhs . /
- Parameters
-
lhs | The string characters who will precede the rhs . / |
rhs | The string characters who will follow the lhs . / |
- Returns
- A string containing characters from
lhs followed by the characters from rhs . friend basic_string operator +(const basic_string & lhs, basic_string<xtd::char16>&& rhs) { auto result = lhs; result += std::move(rhs); return result; } / Addition operator. Returns a string containing characters from lhs followed by the characters from rhs . /
- Parameters
-
lhs | The string characters who will precede the rhs . / |
rhs | The string characters who will follow the lhs . / |
- Returns
- A string containing characters from
lhs followed by the characters from rhs . friend basic_string operator +(const basic_string & lhs, basic_string<xtd::char32>&& rhs) { auto result = lhs; result += std::move(rhs); return result; } / Addition operator. Returns a string containing characters from lhs followed by the characters from rhs . /
- Parameters
-
lhs | The string characters who will precede the rhs . / |
rhs | The string characters who will follow the lhs . / |
- Returns
- A string containing characters from
lhs followed by the characters from rhs . friend basic_string operator +(const basic_string & lhs, basic_string<xtd::char8>&& rhs) { auto result = lhs; result += std::move(rhs); return result; } / Addition operator. Returns a string containing characters from lhs followed by the characters from rhs . /
- Parameters
-
lhs | The string characters who will precede the rhs . / |
rhs | The string characters who will follow the lhs . / |
- Returns
- A string containing characters from
lhs followed by the characters from rhs . friend basic_string operator +(const basic_string & lhs, basic_string<xtd::wchar>&& rhs) { auto result = lhs; result += std::move(rhs); return result; }
/ Addition operator. Returns a string containing characters from lhs followed by the characters from rhs . / - Parameters
-
lhs | The string characters who will precede the rhs . / |
rhs | The string characters who will follow the lhs . / |
- Returns
- A string containing characters from
lhs followed by the characters from rhs . friend basic_string operator +(const basic_string & lhs, const std::basic_string<char>& rhs) { auto result = lhs; result += rhs; return result; } / Addition operator. Returns a string containing characters from lhs followed by the characters from rhs . /
- Parameters
-
lhs | The string characters who will precede the rhs . / |
rhs | The string characters who will follow the lhs . / |
- Returns
- A string containing characters from
lhs followed by the characters from rhs . friend basic_string operator +(const basic_string & lhs, const std::basic_string<xtd::char16>& rhs) { auto result = lhs; result += rhs; return result; } / Addition operator. Returns a string containing characters from lhs followed by the characters from rhs . /
- Parameters
-
lhs | The string characters who will precede the rhs . / |
rhs | The string characters who will follow the lhs . / |
- Returns
- A string containing characters from
lhs followed by the characters from rhs . friend basic_string operator +(const basic_string & lhs, const std::basic_string<xtd::char32>& rhs) { auto result = lhs; result += rhs; return result; } / Addition operator. Returns a string containing characters from lhs followed by the characters from rhs . /
- Parameters
-
lhs | The string characters who will precede the rhs . / |
rhs | The string characters who will follow the lhs . / |
- Returns
- A string containing characters from
lhs followed by the characters from rhs . friend basic_string operator +(const basic_string & lhs, const std::basic_string<xtd::char8>& rhs) { auto result = lhs; result += rhs; return result; } / Addition operator. Returns a string containing characters from lhs followed by the characters from rhs . /
- Parameters
-
lhs | The string characters who will precede the rhs . / |
rhs | The string characters who will follow the lhs . / |
- Returns
- A string containing characters from
lhs followed by the characters from rhs . friend basic_string operator +(const basic_string & lhs, const std::basic_string<xtd::wchar>& rhs) { auto result = lhs; result += rhs; return result; }
/ Addition operator. Returns a string containing characters from lhs followed by the characters from rhs . / - Parameters
-
lhs | The string characters who will precede the rhs . / |
rhs | The string characters who will follow the lhs . / |
- Returns
- A string containing characters from
lhs followed by the characters from rhs . friend basic_string operator +(const std::basic_string<char>& lhs, const basic_string & rhs) { auto result = lhs; if constexpr(std::is_same_v<char, char_t>) result += rhs.chars(); else result += __xtd_convert_to_string<char>(rhs.chars()); return result; } / Addition operator. Returns a string containing characters from lhs followed by the characters from rhs . /
- Parameters
-
lhs | The string characters who will precede the rhs . / |
rhs | The string characters who will follow the lhs . / |
- Returns
- A string containing characters from
lhs followed by the characters from rhs . friend basic_string operator +(const std::basic_string<xtd::char16>& lhs, const basic_string & rhs) { auto result = lhs; if constexpr(std::is_same_v<xtd::char16, char_t>) result += rhs.chars(); else result += __xtd_convert_to_string<xtd::char16>(rhs.chars()); return result; } / Addition operator. Returns a string containing characters from lhs followed by the characters from rhs . /
- Parameters
-
lhs | The string characters who will precede the rhs . / |
rhs | The string characters who will follow the lhs . / |
- Returns
- A string containing characters from
lhs followed by the characters from rhs . friend basic_string operator +(const std::basic_string<xtd::char32>& lhs, const basic_string & rhs) { auto result = lhs; if constexpr(std::is_same_v<xtd::char32, char_t>) result += rhs.chars(); else result += __xtd_convert_to_string<xtd::char32>(rhs.chars()); return result; } / Addition operator. Returns a string containing characters from lhs followed by the characters from rhs . /
- Parameters
-
lhs | The string characters who will precede the rhs . / |
rhs | The string characters who will follow the lhs . / |
- Returns
- A string containing characters from
lhs followed by the characters from rhs . friend basic_string operator +(const std::basic_string<xtd::char8>& lhs, const basic_string & rhs) { auto result = lhs; if constexpr(std::is_same_v<xtd::char8, char_t>) result += rhs.chars(); else result += __xtd_convert_to_string<xtd::char8>(rhs.chars()); return result; } / Addition operator. Returns a string containing characters from lhs followed by the characters from rhs . /
- Parameters
-
lhs | The string characters who will precede the rhs . / |
rhs | The string characters who will follow the lhs . / |
- Returns
- A string containing characters from
lhs followed by the characters from rhs . friend basic_string operator +(const std::basic_string<xtd::wchar>& lhs, const basic_string & rhs) { auto result = lhs; if constexpr(std::is_same_v<xtd::wchar, char_t>) result += rhs.chars(); else result += __xtd_convert_to_string<xtd::wchar>(rhs.chars()); return result; }
/ Addition operator. Returns a string containing characters from lhs followed by the characters from rhs . / - Parameters
-
lhs | The string characters who will precede the rhs . / |
rhs | The string characters who will follow the lhs . / |
- Returns
- A string containing characters from
lhs followed by the characters from rhs . friend basic_string operator +(const basic_string & lhs, const char* rhs) { auto result = lhs; result += rhs; return result; } / Addition operator. Returns a string containing characters from lhs followed by the characters from rhs . /
- Parameters
-
lhs | The string characters who will precede the rhs . / |
rhs | The string characters who will follow the lhs . / |
- Returns
- A string containing characters from
lhs followed by the characters from rhs . friend basic_string operator +(const basic_string & lhs, const xtd::char16 * rhs) { auto result = lhs; result += rhs; return result; } / Addition operator. Returns a string containing characters from lhs followed by the characters from rhs . /
- Parameters
-
lhs | The string characters who will precede the rhs . / |
rhs | The string characters who will follow the lhs . / |
- Returns
- A string containing characters from
lhs followed by the characters from rhs . friend basic_string operator +(const basic_string & lhs, const xtd::char32 * rhs) { auto result = lhs; result += rhs; return result; } / Addition operator. Returns a string containing characters from lhs followed by the characters from rhs . /
- Parameters
-
lhs | The string characters who will precede the rhs . / |
rhs | The string characters who will follow the lhs . / |
- Returns
- A string containing characters from
lhs followed by the characters from rhs . friend basic_string operator +(const basic_string & lhs, const xtd::char8 * rhs) { auto result = lhs; result += rhs; return result; } / Addition operator. Returns a string containing characters from lhs followed by the characters from rhs . /
- Parameters
-
lhs | The string characters who will precede the rhs . / |
rhs | The string characters who will follow the lhs . / |
- Returns
- A string containing characters from
lhs followed by the characters from rhs . friend basic_string operator +(const basic_string & lhs, const xtd::wchar * rhs) { auto result = lhs; result += rhs; return result; }
/ Addition operator. Returns a string containing characters from lhs followed by the characters from rhs . / - Parameters
-
lhs | The string characters who will precede the rhs . / |
rhs | The string characters who will follow the lhs . / |
- Returns
- A string containing characters from
lhs followed by the characters from rhs . friend basic_string operator +(basic_string&& lhs, const char* rhs) { auto result = std::move(lhs); result += rhs; return result; } / Addition operator. Returns a string containing characters from lhs followed by the characters from rhs . /
- Parameters
-
lhs | The string characters who will precede the rhs . / |
rhs | The string characters who will follow the lhs . / |
- Returns
- A string containing characters from
lhs followed by the characters from rhs . friend basic_string operator +(basic_string&& lhs, const xtd::char16 * rhs) { auto result = std::move(lhs); result += rhs; return result; } / Addition operator. Returns a string containing characters from lhs followed by the characters from rhs . /
- Parameters
-
lhs | The string characters who will precede the rhs . / |
rhs | The string characters who will follow the lhs . / |
- Returns
- A string containing characters from
lhs followed by the characters from rhs . friend basic_string operator +(basic_string&& lhs, const xtd::char32 * rhs) { auto result = std::move(lhs); result += rhs; return result; } / Addition operator. Returns a string containing characters from lhs followed by the characters from rhs . /
- Parameters
-
lhs | The string characters who will precede the rhs . / |
rhs | The string characters who will follow the lhs . / |
- Returns
- A string containing characters from
lhs followed by the characters from rhs . friend basic_string operator +(basic_string&& lhs, const xtd::char8 * rhs) { auto result = std::move(lhs); result += rhs; return result; } / Addition operator. Returns a string containing characters from lhs followed by the characters from rhs . /
- Parameters
-
lhs | The string characters who will precede the rhs . / |
rhs | The string characters who will follow the lhs . / |
- Returns
- A string containing characters from
lhs followed by the characters from rhs . friend basic_string operator +(basic_string&& lhs, const xtd::wchar * rhs) { auto result = std::move(lhs); result += rhs; return result; }
/ Addition operator. Returns a string containing characters from lhs followed by the characters from rhs . / - Parameters
-
lhs | The string characters who will precede the rhs . / |
rhs | The string characters who will follow the lhs . / |
- Returns
- A string containing characters from
lhs followed by the characters from rhs . friend basic_string operator +(const char* lhs, const basic_string & rhs) { auto result = basic_string(lhs); result += rhs; return result; } / Addition operator. Returns a string containing characters from lhs followed by the characters from rhs . /
- Parameters
-
lhs | The string characters who will precede the rhs . / |
rhs | The string characters who will follow the lhs . / |
- Returns
- A string containing characters from
lhs followed by the characters from rhs . friend basic_string operator +(const xtd::char16 * lhs, const basic_string & rhs) { auto result = basic_string(lhs); result += rhs; return result; } / Addition operator. Returns a string containing characters from lhs followed by the characters from rhs . /
- Parameters
-
lhs | The string characters who will precede the rhs . / |
rhs | The string characters who will follow the lhs . / |
- Returns
- A string containing characters from
lhs followed by the characters from rhs . friend basic_string operator +(const xtd::char32 * lhs, const basic_string & rhs) { auto result = basic_string(lhs); result += rhs; return result; } / Addition operator. Returns a string containing characters from lhs followed by the characters from rhs . /
- Parameters
-
lhs | The string characters who will precede the rhs . / |
rhs | The string characters who will follow the lhs . / |
- Returns
- A string containing characters from
lhs followed by the characters from rhs . friend basic_string operator +(const xtd::char8 * lhs, const basic_string & rhs) { auto result = basic_string(lhs); result += rhs; return result; } / Addition operator. Returns a string containing characters from lhs followed by the characters from rhs . /
- Parameters
-
lhs | The string characters who will precede the rhs . / |
rhs | The string characters who will follow the lhs . / |
- Returns
- A string containing characters from
lhs followed by the characters from rhs . friend basic_string operator +(const xtd::wchar * lhs, const basic_string & rhs) { auto result = basic_string(lhs); result += rhs; return result; }
/ Addition operator. Returns a string containing characters from lhs followed by the characters from rhs . / - Parameters
-
lhs | The string characters who will precede the rhs . / |
rhs | The string characters who will follow the lhs . / |
- Returns
- A string containing characters from
lhs followed by the characters from rhs . friend basic_string operator +(const char* lhs, basic_string&& rhs) { auto result = basic_string(lhs); result += std::move(rhs); return result; } / Addition operator. Returns a string containing characters from lhs followed by the characters from rhs . /
- Parameters
-
lhs | The string characters who will precede the rhs . / |
rhs | The string characters who will follow the lhs . / |
- Returns
- A string containing characters from
lhs followed by the characters from rhs . friend basic_string operator +(const xtd::char16 * lhs, basic_string&& rhs) { auto result = basic_string(lhs); result += std::move(rhs); return result; } / Addition operator. Returns a string containing characters from lhs followed by the characters from rhs . /
- Parameters
-
lhs | The string characters who will precede the rhs . / |
rhs | The string characters who will follow the lhs . / |
- Returns
- A string containing characters from
lhs followed by the characters from rhs . friend basic_string operator +(const xtd::char32 * lhs, basic_string&& rhs) { auto result = basic_string(lhs); result += std::move(rhs); return result; } / Addition operator. Returns a string containing characters from lhs followed by the characters from rhs . /
- Parameters
-
lhs | The string characters who will precede the rhs . / |
rhs | The string characters who will follow the lhs . / |
- Returns
- A string containing characters from
lhs followed by the characters from rhs . friend basic_string operator +(const xtd::char8 * lhs, basic_string&& rhs) { auto result = basic_string(lhs); result += std::move(rhs); return result; } / Addition operator. Returns a string containing characters from lhs followed by the characters from rhs . /
- Parameters
-
lhs | The string characters who will precede the rhs . / |
rhs | The string characters who will follow the lhs . / |
- Returns
- A string containing characters from
lhs followed by the characters from rhs . friend basic_string operator +(const xtd::wchar * lhs, basic_string&& rhs) { auto result = basic_string(lhs); result += std::move(rhs); return result; }
/ Addition operator. Returns a string containing characters from lhs followed by the characters from rhs . / - Parameters
-
lhs | The string characters who will precede the rhs . / |
rhs | The character who will follow the lhs . / |
- Returns
- A string containing characters from
lhs followed by the characters from rhs . friend basic_string operator +(const basic_string & lhs, const char rhs) { auto result = lhs; result += rhs; return result; } / Addition operator. Returns a string containing characters from lhs followed by the characters from rhs . /
- Parameters
-
lhs | The string characters who will precede the rhs . / |
rhs | The character who will follow the lhs . / |
- Returns
- A string containing characters from
lhs followed by the characters from rhs . friend basic_string operator +(const basic_string & lhs, const xtd::char16 rhs) { auto result = lhs; result += rhs; return result; } / Addition operator. Returns a string containing characters from lhs followed by the characters from rhs . /
- Parameters
-
lhs | The string characters who will precede the rhs . / |
rhs | The character who will follow the lhs . / |
- Returns
- A string containing characters from
lhs followed by the characters from rhs . friend basic_string operator +(const basic_string & lhs, const xtd::char32 rhs) { auto result = lhs; result += rhs; return result; } / Addition operator. Returns a string containing characters from lhs followed by the characters from rhs . /
- Parameters
-
lhs | The string characters who will precede the rhs . / |
rhs | The character who will follow the lhs . / |
- Returns
- A string containing characters from
lhs followed by the characters from rhs . friend basic_string operator +(const basic_string & lhs, const xtd::char8 rhs) { auto result = lhs; result += rhs; return result; } / Addition operator. Returns a string containing characters from lhs followed by the characters from rhs . /
- Parameters
-
lhs | The string characters who will precede the rhs . / |
rhs | The character who will follow the lhs . / |
- Returns
- A string containing characters from
lhs followed by the characters from rhs . friend basic_string operator +(const basic_string & lhs, const xtd::wchar rhs) { auto result = lhs; result += rhs; return result; }
/ Addition operator. Returns a string containing characters from lhs followed by the characters from rhs . / - Parameters
-
lhs | The string characters who will precede the rhs . / |
rhs | The character who will follow the lhs . / |
- Returns
- A string containing characters from
lhs followed by the characters from rhs . friend basic_string operator +(basic_string&& lhs, const char rhs) { auto result = std::move(lhs); result += rhs; return result; } / Addition operator. Returns a string containing characters from lhs followed by the characters from rhs . /
- Parameters
-
lhs | The string characters who will precede the rhs . / |
rhs | The character who will follow the lhs . / |
- Returns
- A string containing characters from
lhs followed by the characters from rhs . friend basic_string operator +(basic_string&& lhs, const xtd::char16 rhs) { auto result = std::move(lhs); result += rhs; return result; } / Addition operator. Returns a string containing characters from lhs followed by the characters from rhs . /
- Parameters
-
lhs | The string characters who will precede the rhs . / |
rhs | The character who will follow the lhs . / |
- Returns
- A string containing characters from
lhs followed by the characters from rhs . friend basic_string operator +(basic_string&& lhs, const xtd::char32 rhs) { auto result = std::move(lhs); result += rhs; return result; } / Addition operator. Returns a string containing characters from lhs followed by the characters from rhs . /
- Parameters
-
lhs | The string characters who will precede the rhs . / |
rhs | The character who will follow the lhs . / |
- Returns
- A string containing characters from
lhs followed by the characters from rhs . friend basic_string operator +(basic_string&& lhs, const xtd::char8 rhs) { auto result = std::move(lhs); result += rhs; return result; } / Addition operator. Returns a string containing characters from lhs followed by the characters from rhs . /
- Parameters
-
lhs | The string characters who will precede the rhs . / |
rhs | The character who will follow the lhs . / |
- Returns
- A string containing characters from
lhs followed by the characters from rhs . friend basic_string operator +(basic_string&& lhs, const xtd::wchar rhs) { auto result = std::move(lhs); result += rhs; return result; }
/ Addition operator. Returns a string containing characters from lhs followed by the characters from rhs . / - Parameters
-
lhs | The character who will precede the rhs . / |
rhs | The string characters who will follow the lhs . / |
- Returns
- A string containing characters from
lhs followed by the characters from rhs . friend basic_string operator +(char lhs, const basic_string & rhs) { auto result = basic_string(1, lhs); result += rhs; return result; } / Addition operator. Returns a string containing characters from lhs followed by the characters from rhs . /
- Parameters
-
lhs | The character who will precede the rhs . / |
rhs | The string characters who will follow the lhs . / |
- Returns
- A string containing characters from
lhs followed by the characters from rhs . friend basic_string operator +(xtd::char16 lhs, const basic_string & rhs) { auto result = basic_string(1, lhs); result += rhs; return result; } / Addition operator. Returns a string containing characters from lhs followed by the characters from rhs . /
- Parameters
-
lhs | The character who will precede the rhs . / |
rhs | The string characters who will follow the lhs . / |
- Returns
- A string containing characters from
lhs followed by the characters from rhs . friend basic_string operator +(xtd::char32 lhs, const basic_string & rhs) { auto result = basic_string(1, lhs); result += rhs; return result; } / Addition operator. Returns a string containing characters from lhs followed by the characters from rhs . /
- Parameters
-
lhs | The character who will precede the rhs . / |
rhs | The string characters who will follow the lhs . / |
- Returns
- A string containing characters from
lhs followed by the characters from rhs . friend basic_string operator +(xtd::char8 lhs, const basic_string & rhs) { auto result = basic_string(1, lhs); result += rhs; return result; } / Addition operator. Returns a string containing characters from lhs followed by the characters from rhs . /
- Parameters
-
lhs | The character who will precede the rhs . / |
rhs | The string characters who will follow the lhs . / |
- Returns
- A string containing characters from
lhs followed by the characters from rhs . friend basic_string operator +(xtd::wchar lhs, const basic_string & rhs) { auto result = basic_string(1, lhs); result += rhs; return result; }
/ Addition operator. Returns a string containing characters from lhs followed by the characters from rhs . / - Parameters
-
lhs | The character who will precede the rhs . / |
rhs | The string characters who will follow the lhs . / |
- Returns
- A string containing characters from
lhs followed by the characters from rhs . friend basic_string operator +(char lhs, basic_string&& rhs) { auto result = basic_string(1, lhs); result += std::move(rhs); return result; } / Addition operator. Returns a string containing characters from lhs followed by the characters from rhs . /
- Parameters
-
lhs | The character who will precede the rhs . / |
rhs | The string characters who will follow the lhs . / |
- Returns
- A string containing characters from
lhs followed by the characters from rhs . friend basic_string operator +(xtd::char16 lhs, basic_string&& rhs) { auto result = basic_string(1, lhs); result += std::move(rhs); return result; } / Addition operator. Returns a string containing characters from lhs followed by the characters from rhs . /
- Parameters
-
lhs | The character who will precede the rhs . / |
rhs | The string characters who will follow the lhs . / |
- Returns
- A string containing characters from
lhs followed by the characters from rhs . friend basic_string operator +(xtd::char32 lhs, basic_string&& rhs) { auto result = basic_string(1, lhs); result += std::move(rhs); return result; } / Addition operator. Returns a string containing characters from lhs followed by the characters from rhs . /
- Parameters
-
lhs | The character who will precede the rhs . / |
rhs | The string characters who will follow the lhs . / |
- Returns
- A string containing characters from
lhs followed by the characters from rhs . friend basic_string operator +(xtd::char8 lhs, basic_string&& rhs) { auto result = basic_string(1, lhs); result += std::move(rhs); return result; } / Addition operator. Returns a string containing characters from lhs followed by the characters from rhs . /
- Parameters
-
lhs | The character who will precede the rhs . / |
rhs | The string characters who will follow the lhs . / |
- Returns
- A string containing characters from
lhs followed by the characters from rhs . friend basic_string operator +(xtd::wchar lhs, basic_string&& rhs) { auto result = basic_string(1, lhs); result += std::move(rhs); return result; }
/ - Todo
- uncomment following operators /
Output stream operator. Behaves as a FormattedOutputFunction. After constructing and checking the sentry object, determines the output format padding. / - Parameters
-
os | The character output stream. / |
str | The string to be inserted. / |
- Todo
- uncomment following line and remove the next. friend std::basic_ostream<char>& operator <<(std::basic_ostream<char>& stream, const basic_string& str) {return stream << str.to_string().chars_;} friend std::basic_ostream<char>& operator <<(std::basic_ostream<char>& stream, const basic_string & str) { if constexpr(std::is_same_v<char, char_t>) return stream << str.chars(); else return stream << __xtd_convert_to_string<char>(str.chars()); } /
Output stream operator. Behaves as a FormattedOutputFunction. After constructing and checking the sentry object, determines the output format padding. / - Parameters
-
os | The character output stream. / |
str | The string to be inserted. / |
/ Input stream operator. Behaves as a FormattedInputFunction. After constructing and checking the sentry object, which may skip leading whitespace, first clears str with str.erase() , then reads characters from is and appends them to str as if by str.append(1, c) , until one of the following conditions becomes true : / * N characters are read, where N is is.width() if is.width() > 0 , otherwise N is str.max_size() , / * the end-of-file condition occurs in the stream is, or / * std::isspace(c, is.getloc()) is true for the next character c in is (this whitespace character remains in the input stream). / - Parameters
-
is | The character input stream. / |
str | The string to be extracted. / |
- Parameters
-
is | The character input stream. / |
str | The string to be extracted. / |
|
bool | is_empty () const noexcept |
| Indicates whether this basic_string is an empty basic_string (""). /.
|
|
|
using | value_type |
| Represents the xtd::collections::generic::ienumerable value type.
|
|
using | iterator |
| Represents the iterator of xtd::collections::generic::ienumerable value type.
|
|
using | const_iterator |
| Represents the const iterator of xtd::collections::generic::ienumerable value type.
|
|
using | iterator |
| Represents the iterator of enumerable value type.
|
|
using | const_iterator |
| Represents the const iterator of enumerable value type.
|
|
using | enumerable_type |
| Represents the ienumerable enumerable type.
|
|
using | source_type |
| Represents the ienumerable source type.
|
|
using | ienumerable |
| Represents the ienumerable value type.
|
|
using | list |
| Represents the list value type.
|
|
| object ()=default |
| Create a new instance of the ultimate base class object.
|
|
virtual type_object | get_type () const noexcept |
| Gets the type of the current instance.
|
|
template<class object_t> |
xtd::unique_ptr_object< object_t > | memberwise_clone () const |
| Creates a shallow copy of the current object.
|
|
virtual xtd::string | to_string () const noexcept |
| Returns a xtd::string that represents the current object.
|
|
virtual const_iterator | begin () const |
| Returns an iterator to the first element of the enumerable.
|
|
virtual iterator | begin () |
| Returns an iterator to the first element of the enumerable.
|
|
virtual const_iterator | cbegin () const |
| Returns an iterator to the first element of the enumerable.
|
|
virtual const_iterator | cend () const |
| Returns an iterator to the element following the last element of the enumerable.
|
|
virtual const_iterator | end () const |
| Returns an iterator to the element following the last element of the enumerable.
|
|
virtual iterator | end () |
| Returns an iterator to the element following the last element of the enumerable.
|
|
char_t | aggregate (const std::function< char_t(const char_t &, const char_t &)> &func) const |
| Applies an accumulator function over a sequence.
|
|
char_t | aggregate (const char_t &seed, const std::function< char_t(const char_t &, const char_t &)> &func) const |
| Applies an accumulator function over a sequence. The specified seed value is used as the initial accumulator value.
|
|
accumulate_t | aggregate (const accumulate_t &seed, const std::function< accumulate_t(const char_t &, const accumulate_t &)> &func) const |
| Applies an accumulator function over a sequence. The specified seed value is used as the initial accumulator value.
|
|
char_t | aggregate (const char_t &seed, const std::function< char_t(const char_t &, const char_t &)> &func, const std::function< char_t(const char_t &)> &result_selector) const |
| Applies an accumulator function over a sequence. The specified seed value is used as the initial accumulator value, and the specified function is used to select the result value.
|
|
result_t | aggregate (const accumulate_t &seed, const std::function< accumulate_t(const char_t &, const accumulate_t &)> &func, const std::function< result_t(const accumulate_t &)> &result_selector) const |
| Applies an accumulator function over a sequence. The specified seed value is used as the initial accumulator value, and the specified function is used to select the result value.
|
|
bool | all (const std::function< bool(const char_t &)> &predicate) const |
| Determines whether all elements of a sequence satisfy a condition.
|
|
bool | any () const noexcept |
| Determines whether a sequence contains any elements.
|
|
bool | any (const std::function< bool(const char_t &)> &predicate) const |
| Determines whether any element of a sequence satisfies a condition.
|
|
auto | append (const char_t &element) const noexcept |
| Appends a value to the end of the sequence.
|
|
auto | as_enumerable () const noexcept |
| Returns the input typed as xtd::collections::generic::ienumerable <type_t>.
|
|
auto | average () const noexcept |
| Computes the average of a sequence of source_t values.
|
|
auto | cast () const noexcept |
| Casts the elements of an xtd::collections::generic::ienumerable to the specified type.
|
|
auto | chunk (size_t size) const |
| Splits the elements of a sequence into chunks of size at most size.
|
|
auto | concat (const ienumerable< char_t > &second) const noexcept |
| Concatenates two sequences.
|
|
bool | contains (const char_t &value) const noexcept |
| Determines whether a sequence contains a specified element by using the default equality comparer.
|
|
bool | contains (const char_t &value, const xtd::collections::generic::iequality_comparer< char_t > &comparer) const noexcept |
| Determines whether a sequence contains a specified element by using a specified equality comparer.
|
|
size_t | count () const noexcept |
| Returns the number of elements in current sequence.
|
|
size_t | count (const std::function< bool(const char_t &)> &predicate) const noexcept |
| Returns a number that represents how many elements in the specified sequence satisfy a condition.
|
|
xtd::size | count (const char_t &value) const noexcept |
| Returns the number of elements with the specified value.
|
|
auto | count_by (const std::function< key_t(const char_t &)> &key_selector) const noexcept |
| Returns the count of elements in the current sequence grouped by key.
|
|
auto | count_by (const std::function< key_t(const char_t &)> &key_selector, const iequality_comparer< key_t > &key_comparer) const noexcept |
| Returns the count of elements in the current sequence grouped by key.
|
|
auto | default_if_empty () const noexcept |
| Returns the elements of the specified sequence or the type parameter's default value in a singleton collection if the current sequence is empty.
|
|
auto | default_if_empty (const char_t &default_value) const noexcept |
| Returns the elements of the specified sequence or the specified value in a singleton collection if the current sequence is empty.
|
|
auto | distinct () const noexcept |
| Returns distinct elements from a sequence by using the default equality comparer to compare values.
|
|
auto | distinct (const xtd::collections::generic::iequality_comparer< char_t > &comparer) const noexcept |
| Returns distinct elements from a sequence by using a specified xtd::collections::generic::iequality_comparer <type_t> to compare values.
|
|
char_t | first_or_default (const std::function< bool(const char_t &)> &predicate, const char_t &default_value) const noexcept |
| Returns the first element of the sequence that satisfies a condition, or a specified default value if no such element is found.
|
|
char_t | first_or_default (const std::function< bool(const char_t &)> &predicate) const noexcept |
| Returns the first element of the sequence that satisfies a condition or a default value if no such element is found.
|
|
char_t | first_or_default (const char_t default_value) const noexcept |
| Returns the first element of the sequence that satisfies a condition or a default value if no such element is found.
|
|
char_t | first_or_default () const noexcept |
| Returns the first element of the sequence that satisfies a condition or a default value if no such element is found.
|
|
auto | order_by (const std::function< char_t(const char_t &)> &key_selector) const |
| Sorts the elements of a sequence in ascending order according to a key.
|
|
auto | order_by (const std::function< key_t(const char_t &)> &key_selector) const |
| Sorts the elements of a sequence in ascending order according to a key.
|
|
auto | order_by_descending (const std::function< key_t(const char_t &)> &key_selector) const |
| Sorts the elements of a sequence in descending order according to a key.
|
|
auto | order_by_descending (const std::function< char_t(const char_t &)> &key_selector) const |
| Sorts the elements of a sequence in descending order according to a key.
|
|
auto | select (const std::function< result_t(const char_t &)> &selector) const |
| Projects each element of a sequence into a new form.
|
|
auto | select (const std::function< char_t(const char_t &)> &selector) const |
| Projects each element of a sequence into a new form.
|
|
auto | select (const std::function< result_t(const char_t &, size_t index)> &selector) const |
| Projects each element of a sequence into a new form by incorporating the element's index.
|
|
auto | select (const std::function< char_t(const char_t &, size_t index)> &selector) const |
| Projects each element of a sequence into a new form by incorporating the element's index.
|
|
list< char_t > | to_list () const noexcept |
| Creates a xtd::collections::generic::list <type_t> from an xtd::collections::generic::ienumerable <type_t>.
|
|
auto | where (const std::function< bool(const char_t &)> &predicate) const |
| Filters a sequence of values based on a predicate.
|
|
auto | where (const std::function< bool(const char_t &, size_t)> &predicate) const |
| Filters a sequence of values based on a predicate. Each element's index is used in the logic of the predicate function.
|
|