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

◆ string

using xtd::string = typedef xtd::basic_string<char>

Represents text as a sequence of UTF-8 code units.

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