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
-
/ 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(character, 1); 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(character, 1); 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(character, 1); 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(character, 1); 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(character, 1); 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(ch, 1).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(ch, 1).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(ch, 1).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(ch, 1).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(ch, 1).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(lhs, 1); 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(lhs, 1); 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(lhs, 1); 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(lhs, 1); 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(lhs, 1); 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(lhs, 1); 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(lhs, 1); 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(lhs, 1); 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(lhs, 1); 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(lhs, 1); 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. / |
|