xtd 0.2.0
Loading...
Searching...
No Matches

◆ wstring

Represents text as a sequence of UTF-16 code unit on Windows or UTF-32 code unit on non-Windows systems.

Namespace
xtd
Library
xtd.core
Remarks
A string is a sequential collection of characters that's used to represent text. A xtd::wstring object is a sequential collection of xtd::wchar that represent a string; a xtd::wchar corresponds to a UTF-16 code unit on Windows or UTF-32 code unit on non-Windows systems. The value of the xtd::wstring object is the content of the sequential collection of xtd::wchar, and unlike std::basic_string<wchar_t> that value is immutable (that is, it is read-only).
If you want the same mutable string class, you can use xtd::text::wstring_builder class.
xtd::wstring implements xtd::basic_string and therefore offers the full (immutable) API of std::wstring.
Namespace
xtd
Library
xtd.core
Remarks
A string is a sequential collection of characters that's used to represent text. A xtd::wstring object is a sequential collection of xtd::wchar that represent a string; a xtd::wchar corresponds to a UTF-16 code unit on Windows or UTF-32 code unit on non-Windows systems. The value of the xtd::wstring object is the content of the sequential collection of xtd::wchar, and unlike std::basic_string<wchar_t> that value is immutable (that is, it is read-only).
If you want the same mutable string class, you can use xtd::text::wstring_builder class.
xtd::string implements std::basic_string<char> and therefore offers the full (immutable) API of std::string.