xtd 0.2.0
Loading...
Searching...
No Matches
xtd::convert_string Class Reference
Inheritance diagram for xtd::convert_string:
xtd::static_object

Definition

Represents API to convert string containers.

Header
#include <xtd/convert_string>
Namespace
xtd
Library
xtd.core
Remarks
This class cannot be inherited.
This class is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
Remarks
To change the encoded format use xtd::text::encoding with xtd::string class.

Public Static Methods

static auto to_string (const xtd::string &str) noexcept -> const xtd::string &
 Converts xtd::string to xtd::string.
static auto to_string (const std::string &str) noexcept -> xtd::string
 Converts std::string to xtd::string.
static auto to_string (const char *str) noexcept -> xtd::string
 Converts const char* to xtd::string.
static auto to_string (char *str) noexcept -> xtd::string
 Converts char* to xtd::string.
static auto to_string (const xtd::u8string &str) noexcept -> xtd::string
 Converts xtd::u8string to xtd::string.
static auto to_string (const std::u8string &str) noexcept -> xtd::string
 Converts std::u8string to xtd::string.
static auto to_string (const char8 *str) noexcept -> xtd::string
 Converts const char8* to xtd::string.
static auto to_string (char8 *str) noexcept -> xtd::string
 Converts char8* to xtd::string.
static auto to_string (const xtd::u16string &str) noexcept -> xtd::string
 Converts xtd::u16string to xtd::string.
static auto to_string (const std::u16string &str) noexcept -> xtd::string
 Converts std::u16string to xtd::string.
static auto to_string (const char16 *str) noexcept -> xtd::string
 Converts const char16* to xtd::string.
static auto to_string (char16 *str) noexcept -> xtd::string
 Converts char16* to xtd::string.
static auto to_string (const xtd::u32string &str) noexcept -> xtd::string
 Converts xtd::u32string to xtd::string.
static auto to_string (const std::u32string &str) noexcept -> xtd::string
 Converts std::u32string to xtd::string.
static auto to_string (const char32 *str) noexcept -> xtd::string
 Converts const char32* to xtd::string.
static auto to_string (char32 *str) noexcept -> xtd::string
 Converts char32* to xtd::string.
static auto to_string (const xtd::wstring &str) noexcept -> xtd::string
 Converts xtd::wstring to xtd::string.
static auto to_string (const std::wstring &str) noexcept -> xtd::string
 Converts std::wstring to xtd::string.
static auto to_string (const wchar *str) noexcept -> xtd::string
 Converts const wchar* to xtd::string.
static auto to_string (wchar *str) noexcept -> xtd::string
 Converts wchar* to xtd::string.
static auto to_u8string (const xtd::string &str) noexcept -> xtd::u8string
 Converts xtd::string to xtd::u8string.
static auto to_u8string (const std::string &str) noexcept -> xtd::u8string
 Converts std::string to xtd::u8string.
static auto to_u8string (const char *str) noexcept -> xtd::u8string
 Converts const char* to xtd::u8string.
static auto to_u8string (char *str) noexcept -> xtd::u8string
 Converts char* to xtd::u8string.
static auto to_u8string (const xtd::u8string &str) noexcept -> const xtd::u8string &
 Converts std::u8string to xtd::u8string.
static auto to_u8string (const std::u8string &str) noexcept -> xtd::u8string
 Converts std::u8string to xtd::u8string.
static auto to_u8string (const char8 *str) noexcept -> xtd::u8string
 Converts const char8* to xtd::u8string.
static auto to_u8string (char8 *str) noexcept -> xtd::u8string
 Converts char8* to xtd::u8string.
static auto to_u8string (const xtd::u16string &str) noexcept -> xtd::u8string
 Converts std::u16string to xtd::u8string.
static auto to_u8string (const std::u16string &str) noexcept -> xtd::u8string
 Converts std::u16string to xtd::u8string.
static auto to_u8string (const char16 *str) noexcept -> xtd::u8string
 Converts const char16* to xtd::u8string.
static auto to_u8string (char16 *str) noexcept -> xtd::u8string
 Converts char16* to xtd::u8string.
static auto to_u8string (const xtd::u32string &str) noexcept -> xtd::u8string
 Converts std::u32string to xtd::u8string.
static auto to_u8string (const std::u32string &str) noexcept -> xtd::u8string
 Converts std::u32string to xtd::u8string.
static auto to_u8string (const char32 *str) noexcept -> xtd::u8string
 Converts const char32* to xtd::u8string.
static auto to_u8string (char32 *str) noexcept -> xtd::u8string
 Converts char32* to xtd::u8string.
static auto to_u8string (const xtd::wstring &str) noexcept -> xtd::u8string
 Converts std::wstring to xtd::u8string.
static auto to_u8string (const std::wstring &str) noexcept -> xtd::u8string
 Converts std::wstring to xtd::u8string.
static auto to_u8string (const wchar *str) noexcept -> xtd::u8string
 Converts const wchar* to xtd::u8string.
static auto to_u8string (wchar *str) noexcept -> xtd::u8string
 Converts wchar* to xtd::u8string.
static auto to_u16string (const xtd::string &str) noexcept -> xtd::u16string
 Converts xtd::string to xtd::u16string.
static auto to_u16string (const std::string &str) noexcept -> xtd::u16string
 Converts std::string to xtd::u16string.
static auto to_u16string (const char *str) noexcept -> xtd::u16string
 Converts const char* to xtd::u16string.
static auto to_u16string (char *str) noexcept -> xtd::u16string
 Converts char* to xtd::u16string.
static auto to_u16string (const xtd::u8string &str) noexcept -> xtd::u16string
 Converts std::u8string to xtd::u16string.
static auto to_u16string (const std::u8string &str) noexcept -> xtd::u16string
 Converts std::u8string to xtd::u16string.
static auto to_u16string (const char8 *str) noexcept -> xtd::u16string
 Converts const char8* to xtd::u16string.
static auto to_u16string (char8 *str) noexcept -> xtd::u16string
 Converts char8* to xtd::u16string.
static auto to_u16string (const xtd::u16string &str) noexcept -> const xtd::u16string &
 Converts std::u16string to xtd::u16string.
static auto to_u16string (const std::u16string &str) noexcept -> xtd::u16string
 Converts std::u16string to xtd::u16string.
static auto to_u16string (const char16 *str) noexcept -> xtd::u16string
 Converts const char16* to xtd::u16string.
static auto to_u16string (char16 *str) noexcept -> xtd::u16string
 Converts char16* to xtd::u16string.
static auto to_u16string (const xtd::u32string &str) noexcept -> xtd::u16string
 Converts std::u32string to xtd::u16string.
static auto to_u16string (const std::u32string &str) noexcept -> xtd::u16string
 Converts std::u32string to xtd::u16string.
static auto to_u16string (const char32 *str) noexcept -> xtd::u16string
 Converts const char32* to xtd::u16string.
static auto to_u16string (char32 *str) noexcept -> xtd::u16string
 Converts char32* to xtd::u16string.
static auto to_u16string (const xtd::wstring &str) noexcept -> xtd::u16string
 Converts std::wstring to xtd::u16string.
static auto to_u16string (const std::wstring &str) noexcept -> xtd::u16string
 Converts std::wstring to xtd::u16string.
static auto to_u16string (const wchar *str) noexcept -> xtd::u16string
 Converts const wchar* to xtd::u16string.
static auto to_u16string (wchar *str) noexcept -> xtd::u16string
 Converts wchar* to xtd::u16string.
static auto to_u32string (const xtd::string &str) noexcept -> xtd::u32string
 Converts xtd::string to xtd::u32string.
static auto to_u32string (const std::string &str) noexcept -> xtd::u32string
 Converts std::string to xtd::u32string.
static auto to_u32string (const char *str) noexcept -> xtd::u32string
 Converts const char* to xtd::u32string.
static auto to_u32string (char *str) noexcept -> xtd::u32string
 Converts char* to xtd::u32string.
static auto to_u32string (const xtd::u8string &str) noexcept -> xtd::u32string
 Converts std::u8string to xtd::u32string.
static auto to_u32string (const std::u8string &str) noexcept -> xtd::u32string
 Converts std::u8string to xtd::u32string.
static auto to_u32string (const char8 *str) noexcept -> xtd::u32string
 Converts const char8* to xtd::u32string.
static auto to_u32string (char8 *str) noexcept -> xtd::u32string
 Converts char8* to xtd::u32string.
static auto to_u32string (const xtd::u16string &str) noexcept -> xtd::u32string
 Converts std::u16string to xtd::u32string.
static auto to_u32string (const std::u16string &str) noexcept -> xtd::u32string
 Converts std::u16string to xtd::u32string.
static auto to_u32string (const char16 *str) noexcept -> xtd::u32string
 Converts const char16* to xtd::u32string.
static auto to_u32string (char16 *str) noexcept -> xtd::u32string
 Converts char16* to xtd::u32string.
static auto to_u32string (const xtd::u32string &str) noexcept -> const xtd::u32string &
 Converts std::u32string to xtd::u32string.
static auto to_u32string (const std::u32string &str) noexcept -> xtd::u32string
 Converts std::u32string to xtd::u32string.
static auto to_u32string (const char32 *str) noexcept -> xtd::u32string
 Converts const char32* to xtd::u32string.
static auto to_u32string (char32 *str) noexcept -> xtd::u32string
 Converts char32* to xtd::u32string.
static auto to_u32string (const xtd::wstring &str) noexcept -> xtd::u32string
 Converts std::wstring to xtd::u32string.
static auto to_u32string (const std::wstring &str) noexcept -> xtd::u32string
 Converts std::wstring to xtd::u32string.
static auto to_u32string (const wchar *str) noexcept -> xtd::u32string
 Converts const wchar* to xtd::u32string.
static auto to_u32string (wchar *str) noexcept -> xtd::u32string
 Converts wchar* to xtd::u32string.
static auto to_wstring (const xtd::string &str) noexcept -> xtd::wstring
 Converts xtd::string to xtd::wstring.
static auto to_wstring (const std::string &str) noexcept -> xtd::wstring
 Converts std::string to xtd::wstring.
static auto to_wstring (const char *str) noexcept -> xtd::wstring
 Converts const char* to xtd::wstring.
static auto to_wstring (char *str) noexcept -> xtd::wstring
 Converts char* to xtd::wstring.
static auto to_wstring (const xtd::u8string &str) noexcept -> xtd::wstring
 Converts std::u8string to xtd::wstring.
static auto to_wstring (const std::u8string &str) noexcept -> xtd::wstring
 Converts std::u8string to xtd::wstring.
static auto to_wstring (const char8 *str) noexcept -> xtd::wstring
 Converts const char8* to xtd::wstring.
static auto to_wstring (char8 *str) noexcept -> xtd::wstring
 Converts char8* to xtd::wstring.
static auto to_wstring (const xtd::u16string &str) noexcept -> xtd::wstring
 Converts std::u16string to xtd::wstring.
static auto to_wstring (const std::u16string &str) noexcept -> xtd::wstring
 Converts std::u16string to xtd::wstring.
static auto to_wstring (const char16 *str) noexcept -> xtd::wstring
 Converts const char16* to xtd::wstring.
static auto to_wstring (char16 *str) noexcept -> xtd::wstring
 Converts char16* to xtd::wstring.
static auto to_wstring (const xtd::u32string &str) noexcept -> xtd::wstring
 Converts std::u32string to xtd::wstring.
static auto to_wstring (const std::u32string &str) noexcept -> xtd::wstring
 Converts std::u32string to xtd::wstring.
static auto to_wstring (const char32 *str) noexcept -> xtd::wstring
 Converts const char32* to xtd::wstring.
static auto to_wstring (char32 *str) noexcept -> xtd::wstring
 Converts char32* to xtd::wstring.
static auto to_wstring (const xtd::wstring &str) noexcept -> const xtd::wstring &
 Converts std::wstring to xtd::wstring.
static auto to_wstring (const std::wstring &str) noexcept -> xtd::wstring
 Converts std::wstring to xtd::wstring.
static auto to_wstring (const wchar *str) noexcept -> xtd::wstring
 Converts const wchar* to xtd::wstring.
static auto to_wstring (wchar *str) noexcept -> xtd::wstring
 Converts wchar* to xtd::wstring.

Public Deprecated Static Methods

template<typename string_t>
static auto to_ustring (const string_t &str) noexcept -> const xtd::string &
 Converts string_t to xtd::string.
template<typename char_t>
static auto to_ustring (const char_t *str) noexcept -> const xtd::string &
 Converts string_t to xtd::string.
template<typename char_t>
static auto to_ustring (char_t *str) noexcept -> const xtd::string &
 Converts string_t to xtd::string.

Member Function Documentation

◆ to_string() [1/20]

auto xtd::convert_string::to_string ( const xtd::string & str) -> const xtd::string &
staticnodiscardnoexcept

Converts xtd::string to xtd::string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
Examples
string s1 = "Gammasoft";
string s2 = string_converter::to_string(s1);

◆ to_string() [2/20]

auto xtd::convert_string::to_string ( const std::string & str) -> xtd::string
staticnodiscardnoexcept

Converts std::string to xtd::string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
Examples
string s1 = "Gammasoft";
string s2 = string_converter::to_string(s1);

◆ to_string() [3/20]

auto xtd::convert_string::to_string ( const char * str) -> xtd::string
staticnodiscardnoexcept

Converts const char* to xtd::string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
Examples
const char* c1 = "Gammasoft";
string s1 = string_converter::to_string(c1);

◆ to_string() [4/20]

auto xtd::convert_string::to_string ( char * str) -> xtd::string
staticnodiscardnoexcept

Converts char* to xtd::string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
Examples
char* c1 = "Gammasoft";
string s1 = string_converter::to_string(c1);

◆ to_string() [5/20]

auto xtd::convert_string::to_string ( const xtd::u8string & str) -> xtd::string
staticnodiscardnoexcept

Converts xtd::u8string to xtd::string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
Examples
u8string s1 = u8"Gammasoft";
string s2 = string_converter::to_string(s1);
xtd::basic_string< xtd::char8 > u8string
Represents text as a sequence of UTF-8 code units.
Definition __string_definitions.hpp:76

◆ to_string() [6/20]

auto xtd::convert_string::to_string ( const std::u8string & str) -> xtd::string
staticnodiscardnoexcept

Converts std::u8string to xtd::string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
Examples
std::u8string s1 = u8"Gammasoft";
string s2 = string_converter::to_string(s1);

◆ to_string() [7/20]

auto xtd::convert_string::to_string ( const char8 * str) -> xtd::string
staticnodiscardnoexcept

Converts const char8* to xtd::string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
Examples
const char8* c1 = u8"Gammasoft";
string s1 = string_converter::to_string(c1);
char8_t char8
Represents a 8-bit unicode character.
Definition char8.hpp:26

◆ to_string() [8/20]

auto xtd::convert_string::to_string ( char8 * str) -> xtd::string
staticnodiscardnoexcept

Converts char8* to xtd::string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
Examples
char8* c1 = u8"Gammasoft";
string s1 = string_converter::to_string(c1);

◆ to_string() [9/20]

auto xtd::convert_string::to_string ( const xtd::u16string & str) -> xtd::string
staticnodiscardnoexcept

Converts xtd::u16string to xtd::string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
Examples
u16string s1 = u"Gammasoft";
string s2 = string_converter::to_string(s1);
xtd::basic_string< xtd::char16 > u16string
Represents text as a sequence of UTF-16 code units.
Definition __string_definitions.hpp:54
@ u
The U key.
Definition console_key.hpp:128

◆ to_string() [10/20]

auto xtd::convert_string::to_string ( const std::u16string & str) -> xtd::string
staticnodiscardnoexcept

Converts std::u16string to xtd::string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
Examples
std::u16string s1 = u"Gammasoft";
string s2 = string_converter::to_string(s1);

◆ to_string() [11/20]

auto xtd::convert_string::to_string ( const char16 * str) -> xtd::string
staticnodiscardnoexcept

Converts const char16* to xtd::string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
Examples
const char16* c1 = u"Gammasoft";
string s1 = string_converter::to_string(c1);
char16_t char16
Represents a 16-bit unicode character.
Definition char16.hpp:26

◆ to_string() [12/20]

auto xtd::convert_string::to_string ( char16 * str) -> xtd::string
staticnodiscardnoexcept

Converts char16* to xtd::string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
Examples
char16* c1 = u"Gammasoft";
string s1 = string_converter::to_string(c1);

◆ to_string() [13/20]

auto xtd::convert_string::to_string ( const xtd::u32string & str) -> xtd::string
staticnodiscardnoexcept

Converts xtd::u32string to xtd::string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
Examples
u32string s1 = U"Gammasoft";
string s2 = string_converter::to_string(s1);
xtd::basic_string< xtd::char32 > u32string
Represents text as a sequence of UTF-32 code units.
Definition __string_definitions.hpp:65

◆ to_string() [14/20]

auto xtd::convert_string::to_string ( const std::u32string & str) -> xtd::string
staticnodiscardnoexcept

Converts std::u32string to xtd::string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
Examples
std::u32string s1 = U"Gammasoft";
string s2 = string_converter::to_string(s1);

◆ to_string() [15/20]

auto xtd::convert_string::to_string ( const char32 * str) -> xtd::string
staticnodiscardnoexcept

Converts const char32* to xtd::string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
Examples
const char32* c1 = U"Gammasoft";
string s1 = string_converter::to_string(c1);
char32_t char32
Represents a 32-bit unicode character.
Definition char32.hpp:23

◆ to_string() [16/20]

auto xtd::convert_string::to_string ( char32 * str) -> xtd::string
staticnodiscardnoexcept

Converts char32* to xtd::string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
Examples
char32* c1 = U"Gammasoft";
string s1 = string_converter::to_string(c1);

◆ to_string() [17/20]

auto xtd::convert_string::to_string ( const xtd::wstring & str) -> xtd::string
staticnodiscardnoexcept

Converts xtd::wstring to xtd::string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
Examples
wstring s1 = L"Gammasoft";
string s2 = string_converter::to_string(s1);
xtd::basic_string< xtd::wchar > wstring
Represents text as a sequence of UTF-16 code unit on Windows or UTF-32 code unit on non-Windows syste...
Definition __string_definitions.hpp:87

◆ to_string() [18/20]

auto xtd::convert_string::to_string ( const std::wstring & str) -> xtd::string
staticnodiscardnoexcept

Converts std::wstring to xtd::string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
Examples
std::wstring s1 = L"Gammasoft";
string s2 = string_converter::to_string(s1);

◆ to_string() [19/20]

auto xtd::convert_string::to_string ( const wchar * str) -> xtd::string
staticnodiscardnoexcept

Converts const wchar* to xtd::string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
Examples
const wchar* c1 = L"Gammasoft";
string s1 = string_converter::to_string(c1);
wchar_t wchar
Represents a wide character.
Definition wchar.hpp:24

◆ to_string() [20/20]

auto xtd::convert_string::to_string ( wchar * str) -> xtd::string
staticnodiscardnoexcept

Converts wchar* to xtd::string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
Examples
wchar* c1 = L"Gammasoft";
string s1 = string_converter::to_string(c1);

◆ to_u8string() [1/20]

auto xtd::convert_string::to_u8string ( const xtd::string & str) -> xtd::u8string
staticnodiscardnoexcept

Converts xtd::string to xtd::u8string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
Examples
string s1 = "Gammasoft";
u8string s2 = string_converter::to_u8string(s1);

◆ to_u8string() [2/20]

auto xtd::convert_string::to_u8string ( const std::string & str) -> xtd::u8string
staticnodiscardnoexcept

Converts std::string to xtd::u8string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
Examples
string s1 = "Gammasoft";
u8string s2 = string_converter::to_u8string(s1);

◆ to_u8string() [3/20]

auto xtd::convert_string::to_u8string ( const char * str) -> xtd::u8string
staticnodiscardnoexcept

Converts const char* to xtd::u8string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
const char* c1 = "Gammasoft";
u8string s1 = string_converter::to_u8string(c1);

◆ to_u8string() [4/20]

auto xtd::convert_string::to_u8string ( char * str) -> xtd::u8string
staticnodiscardnoexcept

Converts char* to xtd::u8string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
char* c1 = "Gammasoft";
u8string s1 = string_converter::to_u8string(c1);

◆ to_u8string() [5/20]

auto xtd::convert_string::to_u8string ( const xtd::u8string & str) -> const xtd::u8string &
staticnodiscardnoexcept

Converts std::u8string to xtd::u8string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
Examples
u8string s1 = u8"Gammasoft";
u8string s2 = string_converter::to_u8string(s1);

◆ to_u8string() [6/20]

auto xtd::convert_string::to_u8string ( const std::u8string & str) -> xtd::u8string
staticnodiscardnoexcept

Converts std::u8string to xtd::u8string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
Examples
std::u8string s1 = u8"Gammasoft";
u8string s2 = string_converter::to_u8string(s1);

◆ to_u8string() [7/20]

auto xtd::convert_string::to_u8string ( const char8 * str) -> xtd::u8string
staticnodiscardnoexcept

Converts const char8* to xtd::u8string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
const char8* c1 = u8"Gammasoft";
u8string s1 = string_converter::to_u8string(c1);

◆ to_u8string() [8/20]

auto xtd::convert_string::to_u8string ( char8 * str) -> xtd::u8string
staticnodiscardnoexcept

Converts char8* to xtd::u8string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.

◆ to_u8string() [9/20]

auto xtd::convert_string::to_u8string ( const xtd::u16string & str) -> xtd::u8string
staticnodiscardnoexcept

Converts std::u16string to xtd::u8string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
Examples
u16string s1 = u"Gammasoft";
u8string s2 = string_converter::to_u8string(s1);

◆ to_u8string() [10/20]

auto xtd::convert_string::to_u8string ( const std::u16string & str) -> xtd::u8string
staticnodiscardnoexcept

Converts std::u16string to xtd::u8string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
Examples
std::u16string s1 = u"Gammasoft";
u8string s2 = string_converter::to_u8string(s1);

◆ to_u8string() [11/20]

auto xtd::convert_string::to_u8string ( const char16 * str) -> xtd::u8string
staticnodiscardnoexcept

Converts const char16* to xtd::u8string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
const char16* c1 = u"Gammasoft";
u8string s1 = string_converter::to_u8string(c1);

◆ to_u8string() [12/20]

auto xtd::convert_string::to_u8string ( char16 * str) -> xtd::u8string
staticnodiscardnoexcept

Converts char16* to xtd::u8string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
char16* c1 = u"Gammasoft";
u8string s1 = string_converter::to_u8string(c1);

◆ to_u8string() [13/20]

auto xtd::convert_string::to_u8string ( const xtd::u32string & str) -> xtd::u8string
staticnodiscardnoexcept

Converts std::u32string to xtd::u8string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
Examples
u32string s1 = U"Gammasoft";
u8string s2 = string_converter::to_u8string(s1);

◆ to_u8string() [14/20]

auto xtd::convert_string::to_u8string ( const std::u32string & str) -> xtd::u8string
staticnodiscardnoexcept

Converts std::u32string to xtd::u8string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
Examples
std::u32string s1 = U"Gammasoft";
u8string s2 = string_converter::to_u8string(s1);

◆ to_u8string() [15/20]

auto xtd::convert_string::to_u8string ( const char32 * str) -> xtd::u8string
staticnodiscardnoexcept

Converts const char32* to xtd::u8string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
const char32* c1 = U"Gammasoft";
u8string s1 = string_converter::to_u8string(c1);

◆ to_u8string() [16/20]

auto xtd::convert_string::to_u8string ( char32 * str) -> xtd::u8string
staticnodiscardnoexcept

Converts char32* to xtd::u8string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
char32* c1 = U"Gammasoft";
u8string s1 = string_converter::to_u8string(c1);

◆ to_u8string() [17/20]

auto xtd::convert_string::to_u8string ( const xtd::wstring & str) -> xtd::u8string
staticnodiscardnoexcept

Converts std::wstring to xtd::u8string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
Examples
wstring s1 = L"Gammasoft";
u8string s2 = string_converter::to_u8string(s1);

◆ to_u8string() [18/20]

auto xtd::convert_string::to_u8string ( const std::wstring & str) -> xtd::u8string
staticnodiscardnoexcept

Converts std::wstring to xtd::u8string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
Examples
std::wstring s1 = L"Gammasoft";
u8string s2 = string_converter::to_u8string(s1);

◆ to_u8string() [19/20]

auto xtd::convert_string::to_u8string ( const wchar * str) -> xtd::u8string
staticnodiscardnoexcept

Converts const wchar* to xtd::u8string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
const wchar* c1 = L"Gammasoft";
u8string s1 = string_converter::to_u8string(c1);

◆ to_u8string() [20/20]

auto xtd::convert_string::to_u8string ( wchar * str) -> xtd::u8string
staticnodiscardnoexcept

Converts wchar* to xtd::u8string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
wchar* c1 = L"Gammasoft";
u8string s1 = string_converter::to_u8string(c1);

◆ to_u16string() [1/20]

auto xtd::convert_string::to_u16string ( const xtd::string & str) -> xtd::u16string
staticnodiscardnoexcept

Converts xtd::string to xtd::u16string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
Examples
string s1 = "Gammasoft";
u16string s2 = string_converter::to_u16string(s1);

◆ to_u16string() [2/20]

auto xtd::convert_string::to_u16string ( const std::string & str) -> xtd::u16string
staticnodiscardnoexcept

Converts std::string to xtd::u16string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
Examples
string s1 = "Gammasoft";
u16string s2 = string_converter::to_u16string(s1);

◆ to_u16string() [3/20]

auto xtd::convert_string::to_u16string ( const char * str) -> xtd::u16string
staticnodiscardnoexcept

Converts const char* to xtd::u16string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
const char* c1 = "Gammasoft";
u16string s1 = string_converter::to_u16string(c1);

◆ to_u16string() [4/20]

auto xtd::convert_string::to_u16string ( char * str) -> xtd::u16string
staticnodiscardnoexcept

Converts char* to xtd::u16string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
char* c1 = "Gammasoft";
u16string s1 = string_converter::to_u16string(c1);

◆ to_u16string() [5/20]

auto xtd::convert_string::to_u16string ( const xtd::u8string & str) -> xtd::u16string
staticnodiscardnoexcept

Converts std::u8string to xtd::u16string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
Examples
u8string s1 = u8"Gammasoft";
u16string s2 = string_converter::to_u16string(s1);

◆ to_u16string() [6/20]

auto xtd::convert_string::to_u16string ( const std::u8string & str) -> xtd::u16string
staticnodiscardnoexcept

Converts std::u8string to xtd::u16string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
Examples
std::u8string s1 = u8"Gammasoft";
u16string s2 = string_converter::to_u16string(s1);

◆ to_u16string() [7/20]

auto xtd::convert_string::to_u16string ( const char8 * str) -> xtd::u16string
staticnodiscardnoexcept

Converts const char8* to xtd::u16string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
const char8* c1 = u8"Gammasoft";
u16string s1 = string_converter::to_u16string(c1);

◆ to_u16string() [8/20]

auto xtd::convert_string::to_u16string ( char8 * str) -> xtd::u16string
staticnodiscardnoexcept

Converts char8* to xtd::u16string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
char8* c1 = u8"Gammasoft";
u16string s1 = string_converter::to_u16string(c1);

◆ to_u16string() [9/20]

auto xtd::convert_string::to_u16string ( const xtd::u16string & str) -> const xtd::u16string &
staticnodiscardnoexcept

Converts std::u16string to xtd::u16string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
Examples
u16string s1 = u"Gammasoft";
u16string s2 = string_converter::to_u16string(s1);

◆ to_u16string() [10/20]

auto xtd::convert_string::to_u16string ( const std::u16string & str) -> xtd::u16string
staticnodiscardnoexcept

Converts std::u16string to xtd::u16string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
Examples
std::u16string s1 = u"Gammasoft";
u16string s2 = string_converter::to_u16string(s1);

◆ to_u16string() [11/20]

auto xtd::convert_string::to_u16string ( const char16 * str) -> xtd::u16string
staticnodiscardnoexcept

Converts const char16* to xtd::u16string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
const char16* c1 = u"Gammasoft";
u16string s1 = string_converter::to_u16string(c1);

◆ to_u16string() [12/20]

auto xtd::convert_string::to_u16string ( char16 * str) -> xtd::u16string
staticnodiscardnoexcept

Converts char16* to xtd::u16string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
char16* c1 = u"Gammasoft";
u16string s1 = string_converter::to_u16string(c1);

◆ to_u16string() [13/20]

auto xtd::convert_string::to_u16string ( const xtd::u32string & str) -> xtd::u16string
staticnodiscardnoexcept

Converts std::u32string to xtd::u16string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
Examples
u32string s1 = U"Gammasoft";
u16string s2 = string_converter::to_u16string(s1);

◆ to_u16string() [14/20]

auto xtd::convert_string::to_u16string ( const std::u32string & str) -> xtd::u16string
staticnodiscardnoexcept

Converts std::u32string to xtd::u16string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
Examples
std::u32string s1 = U"Gammasoft";
u16string s2 = string_converter::to_u16string(s1);

◆ to_u16string() [15/20]

auto xtd::convert_string::to_u16string ( const char32 * str) -> xtd::u16string
staticnodiscardnoexcept

Converts const char32* to xtd::u16string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
const char32* c1 = U"Gammasoft";
u16string s1 = string_converter::to_u16string(c1);

◆ to_u16string() [16/20]

auto xtd::convert_string::to_u16string ( char32 * str) -> xtd::u16string
staticnodiscardnoexcept

Converts char32* to xtd::u16string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
char32* c1 = "Gammasoft";
u16string s1 = string_converter::to_u16string(c1);

◆ to_u16string() [17/20]

auto xtd::convert_string::to_u16string ( const xtd::wstring & str) -> xtd::u16string
staticnodiscardnoexcept

Converts std::wstring to xtd::u16string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
Examples
wstring s1 = L"Gammasoft";
u16string s2 = string_converter::to_u16string(s1);

◆ to_u16string() [18/20]

auto xtd::convert_string::to_u16string ( const std::wstring & str) -> xtd::u16string
staticnodiscardnoexcept

Converts std::wstring to xtd::u16string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
Examples
std::wstring s1 = L"Gammasoft";
u16string s2 = string_converter::to_u16string(s1);

◆ to_u16string() [19/20]

auto xtd::convert_string::to_u16string ( const wchar * str) -> xtd::u16string
staticnodiscardnoexcept

Converts const wchar* to xtd::u16string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
const wchar* c1 = L"Gammasoft";
u16string s1 = string_converter::to_u16string(c1);

◆ to_u16string() [20/20]

auto xtd::convert_string::to_u16string ( wchar * str) -> xtd::u16string
staticnodiscardnoexcept

Converts wchar* to xtd::u16string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
wchar* c1 = L"Gammasoft";
u16string s1 = string_converter::to_u16string(c1);

◆ to_u32string() [1/20]

auto xtd::convert_string::to_u32string ( const xtd::string & str) -> xtd::u32string
staticnodiscardnoexcept

Converts xtd::string to xtd::u32string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
Examples
string s1 = "Gammasoft";
u32string s2 = string_converter::to_u32string(s1);

◆ to_u32string() [2/20]

auto xtd::convert_string::to_u32string ( const std::string & str) -> xtd::u32string
staticnodiscardnoexcept

Converts std::string to xtd::u32string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
Examples
string s1 = "Gammasoft";
u32string s2 = string_converter::to_u32string(s1);

◆ to_u32string() [3/20]

auto xtd::convert_string::to_u32string ( const char * str) -> xtd::u32string
staticnodiscardnoexcept

Converts const char* to xtd::u32string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
const char* c1 = "Gammasoft";
u32string s1 = string_converter::to_u32string(c1);

◆ to_u32string() [4/20]

auto xtd::convert_string::to_u32string ( char * str) -> xtd::u32string
staticnodiscardnoexcept

Converts char* to xtd::u32string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
char* c1 = "Gammasoft";
u32string s1 = string_converter::to_u32string(c1);

◆ to_u32string() [5/20]

auto xtd::convert_string::to_u32string ( const xtd::u8string & str) -> xtd::u32string
staticnodiscardnoexcept

Converts std::u8string to xtd::u32string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
Examples
u8string s1 = u8"Gammasoft";
u32string s2 = string_converter::to_u32string(s1);

◆ to_u32string() [6/20]

auto xtd::convert_string::to_u32string ( const std::u8string & str) -> xtd::u32string
staticnodiscardnoexcept

Converts std::u8string to xtd::u32string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
Examples
std::u8string s1 = u8"Gammasoft";
u32string s2 = string_converter::to_u32string(s1);

◆ to_u32string() [7/20]

auto xtd::convert_string::to_u32string ( const char8 * str) -> xtd::u32string
staticnodiscardnoexcept

Converts const char8* to xtd::u32string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
const char8* c1 = u8"Gammasoft";
u32string s1 = string_converter::to_u32string(c1);

◆ to_u32string() [8/20]

auto xtd::convert_string::to_u32string ( char8 * str) -> xtd::u32string
staticnodiscardnoexcept

Converts char8* to xtd::u32string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
char8* c1 = u8"Gammasoft";
u32string s1 = string_converter::to_u32string(c1);

◆ to_u32string() [9/20]

auto xtd::convert_string::to_u32string ( const xtd::u16string & str) -> xtd::u32string
staticnodiscardnoexcept

Converts std::u16string to xtd::u32string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
Examples
u16string s1 = u"Gammasoft";
u32string s2 = string_converter::to_u32string(s1);

◆ to_u32string() [10/20]

auto xtd::convert_string::to_u32string ( const std::u16string & str) -> xtd::u32string
staticnodiscardnoexcept

Converts std::u16string to xtd::u32string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
Examples
std::u16string s1 = u"Gammasoft";
u32string s2 = string_converter::to_u32string(s1);

◆ to_u32string() [11/20]

auto xtd::convert_string::to_u32string ( const char16 * str) -> xtd::u32string
staticnodiscardnoexcept

Converts const char16* to xtd::u32string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
const char16* c1 = u"Gammasoft";
u32string s1 = string_converter::to_u32string(c1);

◆ to_u32string() [12/20]

auto xtd::convert_string::to_u32string ( char16 * str) -> xtd::u32string
staticnodiscardnoexcept

Converts char16* to xtd::u32string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
char16* c1 = u"Gammasoft";
u32string s1 = string_converter::to_u32string(c1);

◆ to_u32string() [13/20]

auto xtd::convert_string::to_u32string ( const xtd::u32string & str) -> const xtd::u32string &
staticnodiscardnoexcept

Converts std::u32string to xtd::u32string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
Examples
u32string s1 = U"Gammasoft";
u32string s2 = string_converter::to_u32string(s1);

◆ to_u32string() [14/20]

auto xtd::convert_string::to_u32string ( const std::u32string & str) -> xtd::u32string
staticnodiscardnoexcept

Converts std::u32string to xtd::u32string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
Examples
u32string s1 = U"Gammasoft";
u32string s2 = string_converter::to_u32string(s1);

◆ to_u32string() [15/20]

auto xtd::convert_string::to_u32string ( const char32 * str) -> xtd::u32string
staticnodiscardnoexcept

Converts const char32* to xtd::u32string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
const char32* c1 = U"Gammasoft";
u32string s1 = string_converter::to_u32string(c1);

◆ to_u32string() [16/20]

auto xtd::convert_string::to_u32string ( char32 * str) -> xtd::u32string
staticnodiscardnoexcept

Converts char32* to xtd::u32string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
char32* c1 = U"Gammasoft";
u32string s1 = string_converter::to_u32string(c1);

◆ to_u32string() [17/20]

auto xtd::convert_string::to_u32string ( const xtd::wstring & str) -> xtd::u32string
staticnodiscardnoexcept

Converts std::wstring to xtd::u32string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
Examples
wstring s1 = L"Gammasoft";
u32string s2 = string_converter::to_u32string(s1);

◆ to_u32string() [18/20]

auto xtd::convert_string::to_u32string ( const std::wstring & str) -> xtd::u32string
staticnodiscardnoexcept

Converts std::wstring to xtd::u32string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
Examples
std::wstring s1 = L"Gammasoft";
u32string s2 = string_converter::to_u32string(s1);

◆ to_u32string() [19/20]

auto xtd::convert_string::to_u32string ( const wchar * str) -> xtd::u32string
staticnodiscardnoexcept

Converts const wchar* to xtd::u32string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
const wchar* c1 = L"Gammasoft";
u32string s1 = string_converter::to_u32string(c1);

◆ to_u32string() [20/20]

auto xtd::convert_string::to_u32string ( wchar * str) -> xtd::u32string
staticnodiscardnoexcept

Converts wchar* to xtd::u32string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
wchar* c1 = L"Gammasoft";
u32string s1 = string_converter::to_u32string(c1);

◆ to_wstring() [1/20]

auto xtd::convert_string::to_wstring ( const xtd::string & str) -> xtd::wstring
staticnodiscardnoexcept

Converts xtd::string to xtd::wstring.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
Examples
string s1 = "Gammasoft";
wstring s2 = string_converter::to_wstring(s1);

◆ to_wstring() [2/20]

auto xtd::convert_string::to_wstring ( const std::string & str) -> xtd::wstring
staticnodiscardnoexcept

Converts std::string to xtd::wstring.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
Examples
std::string s1 = "Gammasoft";
wstring s2 = string_converter::to_wstring(s1);

◆ to_wstring() [3/20]

auto xtd::convert_string::to_wstring ( const char * str) -> xtd::wstring
staticnodiscardnoexcept

Converts const char* to xtd::wstring.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
const char* c1 = "Gammasoft";
wstring s1 = string_converter::to_wstring(c1);

◆ to_wstring() [4/20]

auto xtd::convert_string::to_wstring ( char * str) -> xtd::wstring
staticnodiscardnoexcept

Converts char* to xtd::wstring.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
char* c1 = "Gammasoft";
wstring s1 = string_converter::to_wstring(c1);

◆ to_wstring() [5/20]

auto xtd::convert_string::to_wstring ( const xtd::u8string & str) -> xtd::wstring
staticnodiscardnoexcept

Converts std::u8string to xtd::wstring.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
Examples
u8string s1 = u8"Gammasoft";
wstring s2 = string_converter::to_wstring(s1);

◆ to_wstring() [6/20]

auto xtd::convert_string::to_wstring ( const std::u8string & str) -> xtd::wstring
staticnodiscardnoexcept

Converts std::u8string to xtd::wstring.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
Examples
std::u8string s1 = u8"Gammasoft";
wstring s2 = string_converter::to_wstring(s1);

◆ to_wstring() [7/20]

auto xtd::convert_string::to_wstring ( const char8 * str) -> xtd::wstring
staticnodiscardnoexcept

Converts const char8* to xtd::wstring.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
const char8* c1 = u8"Gammasoft";
wstring s1 = string_converter::to_wstring(c1);

◆ to_wstring() [8/20]

auto xtd::convert_string::to_wstring ( char8 * str) -> xtd::wstring
staticnodiscardnoexcept

Converts char8* to xtd::wstring.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
char8* c1 = u8"Gammasoft";
wstring s1 = string_converter::to_wstring(c1);

◆ to_wstring() [9/20]

auto xtd::convert_string::to_wstring ( const xtd::u16string & str) -> xtd::wstring
staticnodiscardnoexcept

Converts std::u16string to xtd::wstring.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
Examples
u16string s1 = u"Gammasoft";
wstring s2 = string_converter::to_wstring(s1);

◆ to_wstring() [10/20]

auto xtd::convert_string::to_wstring ( const std::u16string & str) -> xtd::wstring
staticnodiscardnoexcept

Converts std::u16string to xtd::wstring.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
Examples
std::u16string s1 = u"Gammasoft";
wstring s2 = string_converter::to_wstring(s1);

◆ to_wstring() [11/20]

auto xtd::convert_string::to_wstring ( const char16 * str) -> xtd::wstring
staticnodiscardnoexcept

Converts const char16* to xtd::wstring.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
const char16* c1 = u"Gammasoft";
wstring s1 = string_converter::to_wstring(c1);

◆ to_wstring() [12/20]

auto xtd::convert_string::to_wstring ( char16 * str) -> xtd::wstring
staticnodiscardnoexcept

Converts char16* to xtd::wstring.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
char16* c1 = u"Gammasoft";
wstring s1 = string_converter::to_wstring(c1);

◆ to_wstring() [13/20]

auto xtd::convert_string::to_wstring ( const xtd::u32string & str) -> xtd::wstring
staticnodiscardnoexcept

Converts std::u32string to xtd::wstring.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
Examples
u32string s1 = U"Gammasoft";
wstring s2 = string_converter::to_wstring(s1);

◆ to_wstring() [14/20]

auto xtd::convert_string::to_wstring ( const std::u32string & str) -> xtd::wstring
staticnodiscardnoexcept

Converts std::u32string to xtd::wstring.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
Examples
std::u32string s1 = U"Gammasoft";
wstring s2 = string_converter::to_wstring(s1);

◆ to_wstring() [15/20]

auto xtd::convert_string::to_wstring ( const char32 * str) -> xtd::wstring
staticnodiscardnoexcept

Converts const char32* to xtd::wstring.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
const char32* c1 = U"Gammasoft";
wstring s1 = string_converter::to_wstring(c1);

◆ to_wstring() [16/20]

auto xtd::convert_string::to_wstring ( char32 * str) -> xtd::wstring
staticnodiscardnoexcept

Converts char32* to xtd::wstring.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
char32* c1 = U"Gammasoft";
wstring s1 = string_converter::to_wstring(c1);

◆ to_wstring() [17/20]

auto xtd::convert_string::to_wstring ( const xtd::wstring & str) -> const xtd::wstring &
staticnodiscardnoexcept

Converts std::wstring to xtd::wstring.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
Examples
wstring s1 = L"Gammasoft";
wstring s2 = string_converter::to_wstring(s1);

◆ to_wstring() [18/20]

auto xtd::convert_string::to_wstring ( const std::wstring & str) -> xtd::wstring
staticnodiscardnoexcept

Converts std::wstring to xtd::wstring.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
Examples
std::wstring s1 = L"Gammasoft";
wstring s2 = string_converter::to_wstring(s1);

◆ to_wstring() [19/20]

auto xtd::convert_string::to_wstring ( const wchar * str) -> xtd::wstring
staticnodiscardnoexcept

Converts const wchar* to xtd::wstring.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
const wchar* c1 = L"Gammasoft";
wstring s1 = string_converter::to_wstring(c1);

◆ to_wstring() [20/20]

auto xtd::convert_string::to_wstring ( wchar * str) -> xtd::wstring
staticnodiscardnoexcept

Converts wchar* to xtd::wstring.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
wchar* c1 = L"Gammasoft";
wstring s1 = string_converter::to_wstring(c1);

◆ to_ustring() [1/3]

template<typename string_t>
auto xtd::convert_string::to_ustring ( const string_t & str) -> const xtd::string &
inlinestaticnodiscardnoexcept

Converts string_t to xtd::string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
Deprecated
Replaced by xtd::convert_string::to_string - Will be removed in version 0.4.0.

◆ to_ustring() [2/3]

template<typename char_t>
auto xtd::convert_string::to_ustring ( const char_t * str) -> const xtd::string &
inlinestaticnodiscardnoexcept

Converts string_t to xtd::string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
Deprecated
Replaced by xtd::convert_string::to_string - Will be removed in version 0.4.0.

◆ to_ustring() [3/3]

template<typename char_t>
auto xtd::convert_string::to_ustring ( char_t * str) -> const xtd::string &
inlinestaticnodiscardnoexcept

Converts string_t to xtd::string.

Parameters
strstring to convert.
Returns
The converted string.
Remarks
This method is used to convert string container to another.
Warning
The content of the string must be encoded in UTF-8 (65001) format. Make sure it is, otherwise the result will be uncertain.
Deprecated
Replaced by xtd::convert_string::to_string - Will be removed in version 0.4.0.

The documentation for this class was generated from the following file: