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

Definition

Contains mutable and immutable texts as a sequence of UTF-8, UTF-16 and TD-32 code units.

Classes

class  xtd::basic_string< char_t, traits_t, allocator_t >
 Represents text as a sequence of character units. More...
 
class  xtd::text::basic_string_builder< char_t, traits_t, allocator_t >
 Represents a mutable string of characters. This class cannot be inherited. More...
 

Typedefs

using xtd::string = xtd::basic_string< char >
 Represents text as a sequence of UTF-8 code units.
 
using xtd::u16string = xtd::basic_string< xtd::char16 >
 Represents text as a sequence of UTF-16 code units.
 
using xtd::u32string = xtd::basic_string< xtd::char32 >
 Represents text as a sequence of UTF-32 code units.
 
using xtd::u8string = xtd::basic_string< xtd::char8 >
 Represents text as a sequence of UTF-8 code units.
 
using xtd::wstring = xtd::basic_string< xtd::wchar >
 Represents text as a sequence of UTF-16 code unit on Windows or UTF-32 code unit on non-Windows systems.
 
using xtd::text::string_builder = xtd::text::basic_string_builder< char >
 Represents text as a sequence of UTF-8 code units.
 
using xtd::text::u16string_builder = xtd::text::basic_string_builder< xtd::char16 >
 Represents text as a sequence of UTF-16 code units.
 
using xtd::text::u32string_builder = xtd::text::basic_string_builder< xtd::char32 >
 Represents text as a sequence of UTF-32 code units.
 
using xtd::text::u8string_builder = xtd::text::basic_string_builder< xtd::char8 >
 Represents text as a sequence of UTF-8 code units.
 
using xtd::text::wstring_builder = xtd::text::basic_string_builder< xtd::wchar >
 Represents text as a sequence of UTF-16 code unit on Windows or UTF-32 code unit on non-Windows systems.
 

Typedef Documentation

◆ string

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

#include <xtd.core/include/xtd/internal/__string_definitions.h>

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.

◆ u16string

#include <xtd.core/include/xtd/internal/__string_definitions.h>

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

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

◆ u32string

#include <xtd.core/include/xtd/internal/__string_definitions.h>

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

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

◆ u8string

#include <xtd.core/include/xtd/internal/__string_definitions.h>

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::u8string object is a sequential collection of xtd::char8 that represent a string; a xtd::char8 corresponds to a UTF-8 code unit. The value of the xtd::u8string object is the content of the sequential collection of xtd::char8, and unlike std::basic_string<char8_t> that value is immutable (that is, it is read-only).
If you want the same mutable string class, you can use xtd::text::u8string_builder class.
xtd::u8string implements xtd::basic_string and therefore offers the full (immutable) API of std::u8string.

◆ wstring

#include <xtd.core/include/xtd/internal/__string_definitions.h>

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.

◆ string_builder

#include <xtd.core/include/xtd/text/string_builder.h>

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::u32string object is a sequential collection of xtd::char32 that represent a string; a xtd::char32 corresponds to a UTF-32 code unit. The value of the xtd::u32string object is the content of the sequential collection of xtd::char32, and unlike std::basic_string<char16_t> 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::u32string implements xtd::basic_string and therefore offers the full (immutable) API of std::u32string.

◆ u16string_builder

#include <xtd.core/include/xtd/text/u16string_builder.h>

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

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

◆ u32string_builder

#include <xtd.core/include/xtd/text/u32string_builder.h>

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

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

◆ u8string_builder

#include <xtd.core/include/xtd/text/u8string_builder.h>

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::u32string object is a sequential collection of xtd::char32 that represent a string; a xtd::char32 corresponds to a UTF-32 code unit. The value of the xtd::u32string object is the content of the sequential collection of xtd::char32, and unlike std::basic_string<char16_t> that value is immutable (that is, it is read-only).
If you want the same mutable string class, you can use xtd::text::u8string_builder class.
xtd::u32string implements xtd::basic_string and therefore offers the full (immutable) API of std::u32string.

◆ wstring_builder

#include <xtd.core/include/xtd/text/wstring_builder.h>

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::u32string object is a sequential collection of xtd::char32 that represent a string; a xtd::char32 corresponds to a UTF-32 code unit. The value of the xtd::u32string object is the content of the sequential collection of xtd::char32, and unlike std::basic_string<char16_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::u32string implements xtd::basic_string and therefore offers the full (immutable) API of std::u32string.