6#if !defined(__XTD_CORE_INTERNAL__)
7#error "Do not include this file: Internal use only"
11#define __XTD_STD_INTERNAL__
13#undef __XTD_STD_INTERNAL__
33 [[nodiscard]]
inline auto as<std::string>(
const std::string& value) -> std::string {
41 [[nodiscard]]
inline auto as<std::string>(std::string& value) -> std::string {
741 [[nodiscard]]
inline auto as<std::string>(
const std::u8string& value) -> std::string {
static xtd::u16string to_u16string(const xtd::string &str) noexcept
Converts xtd::string to xtd::u16string.
static const xtd::string & to_string(const xtd::string &str) noexcept
Converts xtd::string to xtd::string.
static xtd::u8string to_u8string(const xtd::string &str) noexcept
Converts xtd::string to xtd::u8string.
static xtd::u32string to_u32string(const xtd::string &str) noexcept
Converts xtd::string to xtd::u32string.
static xtd::wstring to_wstring(const xtd::string &str) noexcept
Converts xtd::string to xtd::wstring.
xtd::basic_string< char > string
Represents text as a sequence of UTF-8 code units.
Definition __string_definitions.hpp:43
char8_t char8
Represents a 8-bit unicode character.
Definition char8.hpp:26
wchar_t wchar
Represents a wide character.
Definition wchar.hpp:24
char16_t char16
Represents a 16-bit unicode character.
Definition char16.hpp:26
char32_t char32
Represents a 32-bit unicode character.
Definition char32.hpp:23
auto as< xtd::string >(const std::string &value) -> xtd::string
Casts a type into another type.
Definition __as_std_string.hpp:61
auto as< std::u8string >(const std::string &value) -> std::u8string
Casts a type into another type.
Definition __as_std_string.hpp:101
auto as< std::u32string >(const std::string &value) -> std::u32string
Casts a type into another type.
Definition __as_std_string.hpp:181
auto as< std::wstring >(const std::string &value) -> std::wstring
Casts a type into another type.
Definition __as_std_string.hpp:221
auto as< std::u16string >(const std::string &value) -> std::u16string
Casts a type into another type.
Definition __as_std_string.hpp:141
auto as< std::string >(const std::string &value) -> std::string
Casts a type into another type.
Definition __as_std_string.hpp:33
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8