10#define __XTD_STD_INTERNAL__
12#undef __XTD_STD_INTERNAL__
235 [[nodiscard]]
static auto to_any(
const std::string& value)
noexcept ->
xtd::any;
236 [[nodiscard]]
static auto to_any(
const std::u8string& value)
noexcept ->
xtd::any;
237 [[nodiscard]]
static auto to_any(
const std::u16string& value)
noexcept ->
xtd::any;
238 [[nodiscard]]
static auto to_any(
const std::u32string& value)
noexcept ->
xtd::any;
239 [[nodiscard]]
static auto to_any(
const std::wstring& value)
noexcept ->
xtd::any;
240 [[nodiscard]]
static auto to_any(
const char* value)
noexcept ->
xtd::any;
241 [[nodiscard]]
static auto to_any(
char* value)
noexcept ->
xtd::any;
259 template<
typename type_t>
295 [[nodiscard]]
static auto to_boolean(
bool value)
noexcept -> bool;
372 [[nodiscard]]
static auto to_boolean(
double value)
noexcept -> bool;
384 [[nodiscard]]
static auto to_boolean(
float value)
noexcept -> bool;
477 [[nodiscard]]
static auto to_boolean(
const std::string& value) -> bool;
478 [[nodiscard]]
static auto to_boolean(
const std::u8string& value) -> bool;
479 [[nodiscard]]
static auto to_boolean(
const std::u16string& value) -> bool;
480 [[nodiscard]]
static auto to_boolean(
const std::u32string& value) -> bool;
481 [[nodiscard]]
static auto to_boolean(
const std::wstring& value) -> bool;
482 [[nodiscard]]
static auto to_boolean(
const char* value) -> bool;
483 [[nodiscard]]
static auto to_boolean(
char* value) -> bool;
501 template<
typename type_t>
502 [[nodiscard]]
static auto to_boolean(type_t value)
noexcept ->
bool {
503 return static_cast<bool>(value);
728 [[nodiscard]]
static auto to_byte(
const std::u16string& value) ->
xtd::byte;
729 [[nodiscard]]
static auto to_byte(
const std::u32string& value) ->
xtd::byte;
750 template<
typename type_t>
772 [[nodiscard]]
static auto to_char(
bool value) -> char;
790 [[nodiscard]]
static auto to_char(
char value)
noexcept -> char;
850 [[nodiscard]]
static auto to_char(
double value) -> char;
861 [[nodiscard]]
static auto to_char(
float value) -> char;
963 [[nodiscard]]
static auto to_char(
const std::string& value) -> char;
964 [[nodiscard]]
static auto to_char(
const std::u8string& value) -> char;
965 [[nodiscard]]
static auto to_char(
const std::u16string& value) -> char;
966 [[nodiscard]]
static auto to_char(
const std::u32string& value) -> char;
967 [[nodiscard]]
static auto to_char(
const std::wstring& value) -> char;
968 [[nodiscard]]
static auto to_char(
const char* value) -> char;
969 [[nodiscard]]
static auto to_char(
char* value) -> char;
970 [[nodiscard]]
static auto to_char(
const char8* value) -> char;
971 [[nodiscard]]
static auto to_char(
char8* value) -> char;
972 [[nodiscard]]
static auto to_char(
const char16* value) -> char;
974 [[nodiscard]]
static auto to_char(
const char32* value) -> char;
976 [[nodiscard]]
static auto to_char(
const wchar* value) -> char;
977 [[nodiscard]]
static auto to_char(
wchar* value) -> char;
987 template<
typename type_t>
988 [[nodiscard]]
static auto to_char(type_t value)
noexcept ->
char {
989 return static_cast<char>(value);
1224 template<
typename type_t>
1226 return static_cast<char8>(value);
1458 template<
typename type_t>
1460 return static_cast<char16>(value);
1690 template<
typename type_t>
1692 return static_cast<char32>(value);
1924 template<
typename type_t>
1926 return static_cast<wchar>(value);
2147 template<
typename type_t>
2149 return static_cast<decimal>(value);
2169 [[nodiscard]]
static auto to_double(
bool value)
noexcept -> double;
2187 [[nodiscard]]
static auto to_double(
char value)
noexcept -> double;
2243 [[nodiscard]]
static auto to_double(
double value)
noexcept -> double;
2253 [[nodiscard]]
static auto to_double(
float value)
noexcept -> double;
2346 [[nodiscard]]
static auto to_double(
const std::string& value) -> double;
2347 [[nodiscard]]
static auto to_double(
const std::u8string& value) -> double;
2348 [[nodiscard]]
static auto to_double(
const std::u16string& value) -> double;
2349 [[nodiscard]]
static auto to_double(
const std::u32string& value) -> double;
2350 [[nodiscard]]
static auto to_double(
const std::wstring& value) -> double;
2351 [[nodiscard]]
static auto to_double(
const char* value) -> double;
2352 [[nodiscard]]
static auto to_double(
char* value) -> double;
2353 [[nodiscard]]
static auto to_double(
const char8* value) -> double;
2359 [[nodiscard]]
static auto to_double(
const wchar* value) -> double;
2370 template<
typename type_t>
2371 [[nodiscard]]
static auto to_double(type_t value)
noexcept ->
double {
2372 return static_cast<double>(value);
2392 [[nodiscard]]
static auto to_single(
bool value)
noexcept -> float;
2410 [[nodiscard]]
static auto to_single(
char value)
noexcept -> float;
2466 [[nodiscard]]
static auto to_single(
double value)
noexcept -> float;
2476 [[nodiscard]]
static auto to_single(
float value)
noexcept -> float;
2569 [[nodiscard]]
static auto to_single(
const std::string& value) -> float;
2570 [[nodiscard]]
static auto to_single(
const std::u8string& value) -> float;
2571 [[nodiscard]]
static auto to_single(
const std::u16string& value) -> float;
2572 [[nodiscard]]
static auto to_single(
const std::u32string& value) -> float;
2573 [[nodiscard]]
static auto to_single(
const std::wstring& value) -> float;
2574 [[nodiscard]]
static auto to_single(
const char* value) -> float;
2575 [[nodiscard]]
static auto to_single(
char* value) -> float;
2576 [[nodiscard]]
static auto to_single(
const char8* value) -> float;
2582 [[nodiscard]]
static auto to_single(
const wchar* value) -> float;
2593 template<
typename type_t>
2594 [[nodiscard]]
static auto to_single(type_t value)
noexcept ->
float {
2595 return static_cast<float>(value);
2838 template<
typename type_t>
2840 return static_cast<int16>(value);
3079 template<
typename type_t>
3081 return static_cast<int32>(value);
3315 template<
typename type_t>
3317 return static_cast<int64>(value);
3551 template<
typename type_t>
3553 return static_cast<slong>(value);
3800 template<
typename type_t>
3802 return static_cast<sbyte>(value);
4046 template<
typename type_t>
4048 return static_cast<uint16>(value);
4290 template<
typename type_t>
4292 return static_cast<uint32>(value);
4532 template<
typename type_t>
4534 return static_cast<uint64>(value);
4774 template<
typename type_t>
5115 template<
typename type_t>
5130 template<
typename type_t>
5131 [[deprecated(
"Replaced by xtd::convert::to_string - Will be removed in version 1.2.0.")]] [[nodiscard]]
static auto to_ustring(type_t value,
xtd::byte from_base) ->
xtd::string {
return to_string(value, from_base);}
5136 template<
typename string_t>
5137 [[deprecated(
"Replaced by xtd::convert::to_string - Will be removed in version 1.2.0.")]] [[nodiscard]]
static auto to_ustring(
const string_t& value) ->
xtd::string {
return to_string(value);}
5141 template<
typename char_t>
5142 [[deprecated(
"Replaced by xtd::convert::to_string - Will be removed in version 1.2.0.")]] [[nodiscard]]
static auto to_ustring(
const char_t* value) ->
xtd::string {
return to_string(value);}
5143 template<
typename char_t>
5144 [[deprecated(
"Replaced by xtd::convert::to_string - Will be removed in version 1.2.0.")]] [[nodiscard]]
static auto to_ustring(char_t* value) ->
xtd::string {
return to_string(value);}
Contains xtd::any type and std::bad_any_cast exception.
Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the ba...
Definition array.hpp:64
Represents API to convert base type code.
Definition convert.hpp:27
static auto to_uint32(xtd::ulong value) -> xtd::uint32
Convert slong to uint32.
static auto to_int16(slong value) -> xtd::int16
Convert slong to int16.
static auto to_byte(decimal value) -> xtd::byte
Convert decimal to byte.
static auto to_any(xtd::any value) noexcept -> xtd::any
Convert xtd::any to xtd::any.
static auto to_wchar(float value) -> xtd::wchar
Convert float to wchar.
static auto to_string(slong value) -> xtd::string
Convert slong to string.
static auto to_single(char16 value) noexcept -> float
Convert char16 to single.
static auto to_int32(sbyte value) noexcept -> xtd::int32
Convert sbyte to int32.
static auto to_char(slong value) -> char
Convert slong to char.
static auto to_wchar(int32 value) -> xtd::wchar
Convert int32 to wchar.
static auto to_int32(char value) noexcept -> xtd::int32
Convert char to int32.
static auto to_single(xtd::byte value) noexcept -> float
Convert xtd::byte to single.
static auto to_llong(decimal value) noexcept -> xtd::slong
Convert decimal to slong.
static auto to_uint64(wchar value) noexcept -> xtd::uint64
Convert char32 to uint64.
static auto to_double(xtd::ulong value) noexcept -> double
Convert slong to double.
static auto to_string(uint32 value) noexcept -> xtd::string
Convert uint32 to string.
static auto to_char16(sbyte value) -> xtd::char16
Convert sbyte to char16.
static auto to_ullong(xtd::byte value) noexcept -> xtd::ulong
Convert xtd::byte to xtd::ulong.
static auto to_boolean(uint32 value) noexcept -> bool
Convert uint32 to bool.
static auto to_string(uint32 value, xtd::byte from_base) -> xtd::string
Convert string to string.
static auto to_string(uint64 value, xtd::byte from_base) -> xtd::string
Convert string to string.
static auto to_int64(xtd::any value) -> xtd::int64
Convert xtd::any to int64.
static auto to_single(int64 value) noexcept -> float
Convert int64 to single.
static auto to_any(int32 value) noexcept -> xtd::any
Convert int32 to xtd::any.
static auto to_llong(xtd::any value) -> xtd::slong
Convert xtd::any to slong.
static auto to_uint64(char32 value) noexcept -> xtd::uint64
Convert char32 to uint64.
static auto to_uint16(xtd::ulong value) -> xtd::uint16
Convert slong to uint16.
static auto to_int64(type_t value) noexcept -> xtd::int64
Convert type_t to int64.
Definition convert.hpp:3316
static auto to_byte(double value) -> xtd::byte
Convert double to byte.
static auto to_byte(const xtd::string &value) -> xtd::byte
Convert string to byte.
static auto to_ullong(xtd::ulong value) noexcept -> xtd::ulong
Convert slong to xtd::ulong.
static auto to_boolean(type_t value) noexcept -> bool
Convert type_t to bool.
Definition convert.hpp:502
static auto to_int32(decimal value) -> xtd::int32
Convert decimal to int32.
static auto to_decimal(float value) noexcept -> xtd::decimal
Convert float to decimal.
static auto to_double(uint16 value) noexcept -> double
Convert uint16 to double.
static auto to_string(xtd::byte value) noexcept -> xtd::string
Convert xtd::byte to string.
static auto to_uint16(slong value) -> xtd::uint16
Convert slong to uint16.
static auto to_wchar(char16 value) noexcept -> xtd::wchar
Convert char16 to wchar.
static auto to_sbyte(char value) noexcept -> xtd::sbyte
Convert char to sbyte.
static auto to_double(char value) noexcept -> double
Convert char to double.
static auto to_string(const xtd::string &value) -> xtd::string
Convert string to string.
static auto to_string(char32 value) noexcept -> xtd::string
Convert char32 to string.
static auto to_int64(xtd::ulong value) -> xtd::int64
Convert slong to int64.
static auto to_byte(float value) -> xtd::byte
Convert float to byte.
static auto to_uint16(float value) -> xtd::uint16
Convert float to uint16.
static auto to_uint16(int16 value) -> xtd::uint16
Convert int16 to uint16.
static auto to_char32(uint64 value) -> xtd::char32
Convert uint64 to char32.
static auto to_ullong(decimal value) -> xtd::ulong
Convert decimal to xtd::ulong.
static auto to_int16(int32 value) -> xtd::int16
Convert int32 to int16.
static auto to_boolean(sbyte value) noexcept -> bool
Convert sbyte to bool.
static auto to_byte(xtd::any value) -> xtd::byte
Convert xtd::any to byte.
static auto to_sbyte(bool value) noexcept -> xtd::sbyte
Convert bool to sbyte.
static auto to_base64_string(const xtd::read_only_span< xtd::byte > &bytes) -> xtd::string
Converts a read only span of 8-bit unsigned integers to its equivalent string representation that is ...
static auto to_char32(char value) noexcept -> xtd::char32
Convert char to char32.
static auto to_char(int16 value) -> char
Convert int16 to char.
static auto to_boolean(uint64 value) noexcept -> bool
Convert uint64 to bool.
static auto to_byte(char32 value) -> xtd::byte
Convert char32 to byte.
static auto to_int32(xtd::any value) -> xtd::int32
Convert xtd::any to int32.
static auto to_double(bool value) noexcept -> double
Convert bool to double.
static auto to_decimal(uint32 value) noexcept -> xtd::decimal
Convert uint32 to decimal.
static auto to_single(char32 value) noexcept -> float
Convert char32 to single.
static auto to_int16(bool value) noexcept -> xtd::int16
Convert bool to int16.
static auto to_string(int32 value) -> xtd::string
Convert int32 to string.
static auto to_int64(int64 value) noexcept -> xtd::int64
Convert int64 to int64.
static auto to_char16(uint32 value) -> xtd::char16
Convert uint32 to char16.
static auto to_ustring(const string_t &value) -> xtd::string
Convert string_t to string.
Definition convert.hpp:5137
static auto to_char16(bool value) -> xtd::char16
Convert bool to char16.
static auto to_byte(uint64 value) -> xtd::byte
Convert uint64 to byte.
static auto to_single(uint64 value) noexcept -> float
Convert uint64 to single.
static auto to_int16(xtd::byte value) noexcept -> xtd::int16
Convert xtd::byte to int16.
static auto to_char(wchar value) -> char
Convert char32 to char.
static auto to_boolean(char32 value) -> bool
Convert char32 to bool.
static auto to_uint32(uint16 value) noexcept -> xtd::uint32
Convert uint16 to uint32.
static auto to_char16(double value) -> xtd::char16
Convert double to char16.
static auto to_int32(char8 value) noexcept -> xtd::int32
Convert char8 to int32.
static auto to_char8(uint16 value) -> xtd::char8
Convert uint16 to char8.
static auto to_int16(uint16 value) -> xtd::int16
Convert uint16 to int16.
static auto to_uint16(decimal value) -> xtd::uint16
Convert decimal to uint16.
static auto to_uint16(const xtd::string &value) -> xtd::uint16
Convert string to uint16.
static auto to_int32(uint32 value) -> xtd::int32
Convert uint32 to int32.
static auto to_uint32(int64 value) -> xtd::uint32
Convert int64 to uint32.
static auto to_int16(decimal value) -> xtd::int16
Convert decimal to int16.
static auto to_int16(int64 value) -> xtd::int16
Convert int64 to int16.
static auto to_ullong(xtd::any value) -> xtd::ulong
Convert xtd::any to xtd::ulong.
static auto to_byte(bool value) noexcept -> xtd::byte
Convert bool to byte.
static auto to_boolean(float value) noexcept -> bool
Convert float to bool.
static auto to_single(bool value) noexcept -> float
Convert bool to single.
static auto to_llong(xtd::byte value) noexcept -> xtd::slong
Convert xtd::byte to slong.
static auto to_ullong(int32 value) -> xtd::ulong
Convert int32 to xtd::ulong.
static auto to_byte(uint16 value) -> xtd::byte
Convert uint16 to byte.
static auto to_double(xtd::any value) -> double
Convert xtd::any to double.
static auto to_double(type_t value) noexcept -> double
Convert type_t to double.
Definition convert.hpp:2371
static auto to_sbyte(uint16 value) -> xtd::sbyte
Convert uint16 to sbyte.
static auto to_int32(xtd::ulong value) -> xtd::int32
Convert slong to int32.
static auto to_single(sbyte value) noexcept -> float
Convert sbyte to single.
static auto to_llong(int64 value) noexcept -> xtd::slong
Convert int64 to slong.
static auto to_string(xtd::ulong value) noexcept -> xtd::string
Convert slong to string.
static auto to_ustring(type_t value, xtd::byte from_base) -> xtd::string
Convert type_t to string.
Definition convert.hpp:5131
static auto to_single(wchar value) noexcept -> float
Convert char32 to single.
static auto to_uint64(int16 value) -> xtd::uint64
Convert int16 to uint64.
static auto to_char8(uint64 value) -> xtd::char8
Convert uint64 to char8.
static auto to_decimal(wchar value) noexcept -> xtd::decimal
Convert char32 to decimal.
static auto to_single(uint16 value) noexcept -> float
Convert uint16 to single.
static auto to_uint16(char8 value) noexcept -> xtd::uint16
Convert char8 to uint16.
static auto to_int16(char16 value) noexcept -> xtd::int16
Convert char16 to int16.
static auto to_double(int64 value) noexcept -> double
Convert int64 to double.
static auto to_any(double value) noexcept -> xtd::any
Convert double to xtd::any.
static auto to_char32(char32 value) noexcept -> xtd::char32
Convert char32 to char32.
static auto to_decimal(char16 value) noexcept -> xtd::decimal
Convert char16 to decimal.
static auto to_uint64(uint64 value) noexcept -> xtd::uint64
Convert uint64 to uint64.
static auto to_any(xtd::byte value) noexcept -> xtd::any
Convert xtd::byte to xtd::any.
static auto to_char(type_t value) noexcept -> char
Convert type_t to char.
Definition convert.hpp:988
static auto to_llong(wchar value) noexcept -> xtd::slong
Convert char32 to slong.
static auto to_int16(int16 value) noexcept -> xtd::int16
Convert int16 to int16.
static auto to_wchar(sbyte value) -> xtd::wchar
Convert sbyte to wchar.
static auto to_ullong(uint64 value) noexcept -> xtd::ulong
Convert uint64 to xtd::ulong.
static auto to_char16(char32 value) -> xtd::char16
Convert char32 to char16.
static auto to_any(float value) noexcept -> xtd::any
Convert float to xtd::any.
static auto to_string(xtd::any value) -> xtd::string
Convert xtd::any to string.
static auto to_uint32(const xtd::string &value, xtd::byte from_base) -> xtd::uint32
Convert string to uint32.
static auto to_uint16(xtd::any value) -> xtd::uint16
Convert xtd::any to uint16.
static auto to_any(char32 value) noexcept -> xtd::any
Convert char32 to xtd::any.
static auto to_wchar(double value) -> xtd::wchar
Convert double to wchar.
static auto to_int16(wchar value) noexcept -> xtd::int16
Convert char32 to int16.
static auto to_int64(int16 value) noexcept -> xtd::int64
Convert int16 to int64.
static auto to_uint64(bool value) noexcept -> xtd::uint64
Convert bool to uint64.
static auto to_byte(wchar value) -> xtd::byte
Convert char32 to byte.
static auto to_boolean(xtd::ulong value) noexcept -> bool
Convert slong to bool.
static auto to_uint16(bool value) noexcept -> xtd::uint16
Convert bool to uint16.
static auto to_byte(int32 value) -> xtd::byte
Convert int32 to byte.
static auto to_double(decimal value) noexcept -> double
Convert decimal to double.
static auto to_char16(wchar value) noexcept -> xtd::char16
Convert char32 to char16.
static auto to_char(decimal value) -> char
Convert decimal to char.
static auto to_int32(char32 value) noexcept -> xtd::int32
Convert char32 to int32.
static auto to_string(wchar value) noexcept -> xtd::string
Convert char32 to string.
static auto to_char8(int64 value) -> xtd::char8
Convert int64 to char8.
static auto to_llong(char32 value) noexcept -> xtd::slong
Convert char32 to slong.
static auto to_int16(xtd::any value) -> xtd::int16
Convert xtd::any to int16.
static auto to_double(int32 value) noexcept -> double
Convert int32 to double.
static auto to_single(type_t value) noexcept -> float
Convert type_t to single.
Definition convert.hpp:2594
static auto to_uint64(decimal value) -> xtd::uint64
Convert decimal to uint64.
static auto to_double(int16 value) noexcept -> double
Convert int16 to double.
static auto to_llong(int32 value) noexcept -> xtd::slong
Convert int32 to slong.
static auto to_llong(uint64 value) -> xtd::slong
Convert uint64 to slong.
static auto to_wchar(uint32 value) -> xtd::wchar
Convert uint32 to wchar.
static auto to_int16(const xtd::string &value, xtd::byte from_base) -> xtd::int16
Convert string to int16.
static auto to_llong(xtd::ulong value) -> xtd::slong
Convert slong to slong.
static auto to_char16(int64 value) -> xtd::char16
Convert int64 to char16.
static auto to_double(const xtd::string &value) -> double
Convert string to double.
static auto to_sbyte(int16 value) -> xtd::sbyte
Convert int16 to sbyte.
static auto to_ullong(char32 value) noexcept -> xtd::ulong
Convert char32 to xtd::ulong.
static auto to_char(double value) -> char
Convert double to char.
static auto to_double(float value) noexcept -> double
Convert float to double.
static auto to_byte(char value) noexcept -> xtd::byte
Convert char to byte.
static auto to_char(const xtd::string &value) -> char
Convert string to char.
static auto to_int32(type_t value) noexcept -> xtd::int32
Convert type_t to int32.
Definition convert.hpp:3080
static auto to_string(int16 value, xtd::byte from_base) -> xtd::string
Convert string to string.
static auto to_double(xtd::byte value) noexcept -> double
Convert xtd::byte to double.
static auto to_sbyte(char8 value) noexcept -> xtd::sbyte
Convert char8 to sbyte.
static auto to_string(uint16 value, xtd::byte from_base) -> xtd::string
Convert string to string.
static auto to_char(xtd::any value) -> char
Convert xtd::any to char.
static auto to_int32(const xtd::string &value, xtd::byte from_base) -> xtd::int32
Convert string to int32.
static auto to_char32(sbyte value) -> xtd::char32
Convert sbyte to char32.
static auto to_char16(int16 value) -> xtd::char16
Convert int16 to char16.
static auto to_decimal(xtd::byte value) noexcept -> xtd::decimal
Convert xtd::byte to decimal.
static auto to_uint32(char value) noexcept -> xtd::uint32
Convert char to uint32.
static auto to_boolean(int64 value) noexcept -> bool
Convert int64 to bool.
static auto to_string(int64 value, xtd::byte from_base) -> xtd::string
Convert string to string.
static auto to_base64_string(const xtd::array< xtd::byte > &in_array) -> xtd::string
Converts an array of 8-bit unsigned integers to its equivalent string representation that is encoded ...
static auto to_string(char16 value) noexcept -> xtd::string
Convert char16 to string.
static auto to_uint32(const xtd::string &value) -> xtd::uint32
Convert string to uint32.
static auto to_int64(const xtd::string &value, xtd::byte from_base) -> xtd::int64
Convert string to int64.
static auto to_uint32(int16 value) -> xtd::uint32
Convert int16 to uint32.
static auto to_char(char16 value) -> char
Convert char16 to char.
static auto to_wchar(int64 value) -> xtd::wchar
Convert int64 to wchar.
static auto to_char(xtd::byte value) noexcept -> char
Convert xtd::byte to char.
static auto to_char32(int16 value) -> xtd::char32
Convert int16 to char32.
static auto to_decimal(const xtd::string &value) -> xtd::decimal
Convert string to decimal.
static auto to_decimal(char32 value) noexcept -> xtd::decimal
Convert char32 to decimal.
static auto to_char32(decimal value) -> xtd::char32
Convert decimal to char32.
static auto to_byte(type_t value) noexcept -> xtd::byte
Convert type_t to byte.
Definition convert.hpp:751
static auto to_double(uint64 value) noexcept -> double
Convert uint64 to double.
static auto to_int16(uint32 value) -> xtd::int16
Convert uint32 to int16.
static auto to_string(float value) -> xtd::string
Convert float to string.
static auto to_uint32(xtd::any value) -> xtd::uint32
Convert xtd::any to uint32.
static auto to_any(uint64 value) noexcept -> xtd::any
Convert uint64 to xtd::any.
static auto to_single(char8 value) noexcept -> float
Convert char8 to single.
static auto to_char8(xtd::byte value) noexcept -> xtd::char8
Convert xtd::byte to char8.
static auto to_double(slong value) noexcept -> double
Convert slong to double.
static auto to_int32(uint16 value) noexcept -> xtd::int32
Convert uint16 to int32.
static auto to_char32(double value) -> xtd::char32
Convert double to char32.
static auto to_decimal(uint64 value) noexcept -> xtd::decimal
Convert uint64 to decimal.
static auto to_char(char value) noexcept -> char
Convert char to char.
static auto to_char16(char8 value) noexcept -> xtd::char16
Convert char8 to char16.
static auto to_char16(xtd::byte value) noexcept -> xtd::char16
Convert xtd::byte to char16.
static auto to_int32(wchar value) noexcept -> xtd::int32
Convert char32 to int32.
static auto to_char(uint32 value) -> char
Convert uint32 to char.
static auto to_any(int16 value) noexcept -> xtd::any
Convert int16 to xtd::any.
static auto to_any(uint16 value) noexcept -> xtd::any
Convert uint16 to xtd::any.
static auto to_any(type_t value) -> xtd::any
Convert type_t to bool.
Definition convert.hpp:260
static auto to_char8(xtd::ulong value) -> xtd::char8
Convert slong to char8.
static auto to_single(decimal value) noexcept -> float
Convert decimal to single.
static auto to_wchar(char8 value) noexcept -> xtd::wchar
Convert char8 to wchar.
static auto to_uint64(const xtd::string &value, xtd::byte from_base) -> xtd::uint64
Convert string to uint64.
static auto to_ullong(double value) -> xtd::ulong
Convert double to xtd::ulong.
static auto to_char32(slong value) -> xtd::char32
Convert slong to char32.
static auto to_wchar(int16 value) -> xtd::wchar
Convert int16 to wchar.
static auto to_boolean(double value) noexcept -> bool
Convert double to bool.
static auto to_int32(int32 value) noexcept -> xtd::int32
Convert int32 to int32.
static auto to_decimal(int32 value) noexcept -> xtd::decimal
Convert int32 to decimal.
static auto to_string(sbyte value, xtd::byte from_base) -> xtd::string
Convert string to string.
static auto to_boolean(int32 value) noexcept -> bool
Convert int32 to bool.
static auto to_int64(int32 value) noexcept -> xtd::int64
Convert int32 to int64.
static auto to_int64(const xtd::string &value) -> xtd::int64
Convert string to int64.
static auto to_int32(uint64 value) -> xtd::int32
Convert uint64 to int32.
static auto to_wchar(char value) noexcept -> xtd::wchar
Convert char to wchar.
static auto to_char32(char16 value) noexcept -> xtd::char32
Convert char16 to char32.
static auto to_any(char value) noexcept -> xtd::any
Convert char to xtd::any.
static auto to_single(slong value) noexcept -> float
Convert slong to single.
static auto to_any(decimal value) noexcept -> xtd::any
Convert decimal to xtd::any.
static auto to_int64(sbyte value) noexcept -> xtd::int64
Convert sbyte to int64.
static auto to_int32(char16 value) noexcept -> xtd::int32
Convert char16 to int32.
static auto to_ullong(uint16 value) noexcept -> xtd::ulong
Convert uint16 to xtd::ulong.
static auto to_boolean(uint16 value) noexcept -> bool
Convert uint16 to bool.
static auto to_char32(int32 value) -> xtd::char32
Convert int32 to char32.
static auto to_double(char8 value) noexcept -> double
Convert char8 to double.
static auto to_llong(char16 value) noexcept -> xtd::slong
Convert char16 to slong.
static auto to_ullong(const xtd::string &value, xtd::byte from_base) -> xtd::ulong
Convert string to xtd::ulong.
static auto to_int16(double value) -> xtd::int16
Convert double to int16.
static auto to_llong(int16 value) noexcept -> xtd::slong
Convert int16 to slong.
static auto to_uint32(char32 value) noexcept -> xtd::uint32
Convert char32 to uint32.
static auto to_wchar(uint64 value) -> xtd::wchar
Convert uint64 to wchar.
static auto to_char(int64 value) -> char
Convert int64 to char.
static auto to_wchar(slong value) -> xtd::wchar
Convert slong to wchar.
static auto to_uint32(decimal value) -> xtd::uint32
Convert decimal to uint32.
static auto to_char(char8 value) noexcept -> char
Convert char8 to char.
static auto to_int32(int16 value) noexcept -> xtd::int32
Convert int16 to int32.
static auto to_double(double value) noexcept -> double
Convert double to double.
static auto to_char(uint64 value) -> char
Convert uint64 to char.
static auto to_byte(slong value) -> xtd::byte
Convert slong to byte.
static auto to_char32(xtd::any value) -> xtd::char32
Convert xtd::any to char32.
static auto to_int64(float value) noexcept -> xtd::int64
Convert float to int64.
static auto to_int32(bool value) noexcept -> xtd::int32
Convert bool to int32.
static auto to_uint64(sbyte value) -> xtd::uint64
Convert sbyte to uint64.
static auto to_ullong(char16 value) noexcept -> xtd::ulong
Convert char16 to xtd::ulong.
static auto to_boolean(int16 value) noexcept -> bool
Convert int16 to bool.
static auto to_string(int64 value) -> xtd::string
Convert int64 to string.
static auto to_char(sbyte value) -> char
Convert sbyte to char.
static auto to_char32(type_t value) noexcept -> xtd::char32
Convert type_t to char32.
Definition convert.hpp:1691
static auto to_byte(char8 value) noexcept -> xtd::byte
Convert char8 to byte.
static auto to_sbyte(double value) -> xtd::sbyte
Convert double to sbyte.
static auto to_single(char value) noexcept -> float
Convert char to single.
static auto to_uint16(char32 value) -> xtd::uint16
Convert char32 to uint16.
static auto to_int16(type_t value) noexcept -> xtd::int16
Convert type_t to int16.
Definition convert.hpp:2839
static auto to_char32(const xtd::string &value) -> xtd::char32
Convert string to char32.
static auto to_uint64(double value) -> xtd::uint64
Convert double to uint64.
static auto to_llong(uint16 value) noexcept -> xtd::slong
Convert uint16 to slong.
static auto to_string(uint16 value) noexcept -> xtd::string
Convert uint16 to string.
static auto to_int16(sbyte value) noexcept -> xtd::int16
Convert sbyte to int16.
static auto to_int16(char32 value) -> xtd::int16
Convert char32 to int16.
static auto to_ullong(char value) noexcept -> xtd::ulong
Convert char to xtd::ulong.
static auto to_char8(int32 value) -> xtd::char8
Convert int32 to char8.
static auto to_string(xtd::byte value, xtd::byte from_base) -> xtd::string
Convert string to string.
static auto to_sbyte(float value) -> xtd::sbyte
Convert float to sbyte.
static auto to_llong(const xtd::string &value, xtd::byte from_base) -> xtd::slong
Convert string to slong.
static auto to_uint32(bool value) noexcept -> xtd::uint32
Convert bool to uint32.
static auto to_uint32(wchar value) noexcept -> xtd::uint32
Convert char32 to uint32.
static auto to_ullong(int64 value) -> xtd::ulong
Convert int64 to xtd::ulong.
static auto to_uint32(int32 value) -> xtd::uint32
Convert int32 to uint32.
static auto to_byte(xtd::ulong value) -> xtd::byte
Convert slong to byte.
static auto to_llong(char8 value) noexcept -> xtd::slong
Convert char8 to slong.
static auto to_char8(char value) noexcept -> xtd::char8
Convert char to char8.
static auto from_base64_string(const xtd::string &s) -> xtd::array< xtd::byte >
Converts the specified string, which encodes binary data as base-64 digits, to an equivalent 8-bit un...
static auto to_char8(char32 value) -> xtd::char8
Convert char32 to char8.
static auto to_char32(bool value) -> xtd::char32
Convert bool to char32.
static auto to_uint32(xtd::byte value) noexcept -> xtd::uint32
Convert xtd::byte to uint32.
static auto to_any(wchar value) noexcept -> xtd::any
Convert wchar to xtd::any.
static auto to_char32(wchar value) noexcept -> xtd::char32
Convert char32 to char32.
static auto to_decimal(double value) noexcept -> xtd::decimal
Convert double to decimal.
static auto to_char32(uint16 value) noexcept -> xtd::char32
Convert uint16 to char32.
static auto to_uint32(char8 value) noexcept -> xtd::uint32
Convert char8 to uint32.
static auto to_char(bool value) -> char
Convert bool to char.
static auto to_int16(char8 value) noexcept -> xtd::int16
Convert char8 to int16.
static auto to_int32(double value) -> xtd::int32
Convert double to int32.
static auto to_sbyte(type_t value) noexcept -> xtd::sbyte
Convert type_t to sbyte.
Definition convert.hpp:3801
static auto to_uint16(uint64 value) -> xtd::uint16
Convert uint64 to uint16.
static auto to_byte(xtd::byte value) noexcept -> xtd::byte
Convert xtd::byte to byte.
static auto to_char8(decimal value) -> xtd::char8
Convert decimal to char8.
static auto to_uint64(int32 value) -> xtd::uint64
Convert int32 to uint64.
static auto to_decimal(char value) noexcept -> xtd::decimal
Convert char to decimal.
static auto to_char32(xtd::ulong value) -> xtd::char32
Convert slong to char32.
static auto to_ullong(char8 value) noexcept -> xtd::ulong
Convert char8 to xtd::ulong.
static auto to_int16(uint64 value) -> xtd::int16
Convert uint64 to int16.
static auto to_single(float value) noexcept -> float
Convert float to single.
static auto to_int64(char8 value) noexcept -> xtd::int64
Convert char8 to int64.
static auto to_int64(uint64 value) -> xtd::int64
Convert uint64 to int64.
static auto to_char8(uint32 value) -> xtd::char8
Convert uint32 to char8.
static auto to_wchar(decimal value) -> xtd::wchar
Convert decimal to wchar.
static auto to_boolean(const xtd::string &value) -> bool
Convert string to bool.
static auto to_string(char8 value) noexcept -> xtd::string
Convert char8 to string.
static auto to_string(int16 value) -> xtd::string
Convert int16 to string.
static auto to_char8(char8 value) noexcept -> xtd::char8
Convert char8 to char8.
static auto to_uint64(int64 value) -> xtd::uint64
Convert int64 to uint64.
static auto to_double(wchar value) noexcept -> double
Convert char32 to double.
static auto to_decimal(decimal value) noexcept -> xtd::decimal
Convert decimal to decimal.
static auto to_uint64(xtd::ulong value) noexcept -> xtd::uint64
Convert slong to uint64.
static auto to_uint64(const xtd::string &value) -> xtd::uint64
Convert string to uint64.
static auto to_uint64(xtd::any value) -> xtd::uint64
Convert xtd::any to uint64.
static auto to_double(sbyte value) noexcept -> double
Convert sbyte to double.
static auto to_wchar(const xtd::string &value) -> xtd::wchar
Convert string to wchar.
static auto to_int64(char32 value) noexcept -> xtd::int64
Convert char32 to int64.
static auto to_uint16(sbyte value) -> xtd::uint16
Convert sbyte to uint16.
static auto to_ullong(slong value) -> xtd::ulong
Convert slong to xtd::ulong.
static auto to_boolean(char value) -> bool
Convert char to bool.
static auto to_char8(bool value) -> xtd::char8
Convert bool to char8.
static auto to_int32(const xtd::string &value) -> xtd::int32
Convert string to int32.
static auto to_sbyte(decimal value) -> xtd::sbyte
Convert decimal to sbyte.
static auto to_wchar(xtd::ulong value) -> xtd::wchar
Convert slong to wchar.
static auto to_string(int32 value, xtd::byte from_base) -> xtd::string
Convert string to string.
static auto to_uint32(slong value) -> xtd::uint32
Convert slong to uint32.
static auto to_int64(char16 value) noexcept -> xtd::int64
Convert char16 to int64.
static auto to_uint64(slong value) -> xtd::uint64
Convert slong to uint64.
static auto to_string(xtd::ulong value, xtd::byte from_base) -> xtd::string
Convert string to string.
static auto to_uint32(char16 value) noexcept -> xtd::uint32
Convert char16 to uint32.
static auto to_decimal(type_t value) noexcept -> xtd::decimal
Convert type_t to decimal.
Definition convert.hpp:2148
static auto to_ullong(const xtd::string &value) -> xtd::ulong
Convert string to xtd::ulong.
static auto to_char8(const xtd::string &value) -> xtd::char8
Convert string to char8.
static auto to_sbyte(int32 value) -> xtd::sbyte
Convert int32 to sbyte.
static auto to_llong(slong value) noexcept -> xtd::slong
Convert slong to slong.
static auto to_llong(type_t value) noexcept -> xtd::slong
Convert type_t to slong.
Definition convert.hpp:3552
static auto to_uint64(float value) -> xtd::uint64
Convert float to uint64.
static auto to_single(xtd::any value) -> float
Convert xtd::any to single.
static auto to_decimal(sbyte value) noexcept -> xtd::decimal
Convert sbyte to decimal.
static auto to_ullong(int16 value) -> xtd::ulong
Convert int16 to xtd::ulong.
static auto to_string(bool value) noexcept -> xtd::string
Convert bool to string.
static auto to_any(uint32 value) noexcept -> xtd::any
Convert uint32 to xtd::any.
static auto to_any(const xtd::string &value) noexcept -> xtd::any
Convert string to xtd::any.
static auto to_sbyte(char16 value) -> xtd::sbyte
Convert char16 to sbyte.
static auto to_boolean(char16 value) -> bool
Convert char16 to bool.
static auto to_int64(slong value) noexcept -> xtd::int64
Convert slong to int64.
static auto to_int64(char value) noexcept -> xtd::int64
Convert char to int64.
static auto to_wchar(xtd::any value) -> xtd::wchar
Convert xtd::any to wchar.
static auto to_char(int32 value) -> char
Convert int32 to char.
static auto to_string(double value) -> xtd::string
Convert double to string.
static auto to_char16(float value) -> xtd::char16
Convert float to char16.
static auto to_char16(uint16 value) noexcept -> xtd::char16
Convert uint16 to char16.
static auto to_decimal(char8 value) noexcept -> xtd::decimal
Convert char8 to decimal.
static auto to_uint16(int32 value) -> xtd::uint16
Convert int32 to uint16.
static auto to_uint64(xtd::byte value) noexcept -> xtd::uint64
Convert xtd::byte to uint64.
static auto to_int16(const xtd::string &value) -> xtd::int16
Convert string to int16.
static auto to_uint16(const xtd::string &value, xtd::byte from_base) -> xtd::uint16
Convert string to uint16.
static auto to_llong(double value) noexcept -> xtd::slong
Convert double to slong.
static auto to_uint32(sbyte value) -> xtd::uint32
Convert sbyte to uint32.
static auto to_sbyte(const xtd::string &value) -> xtd::sbyte
Convert string to sbyte.
static auto to_char16(char value) noexcept -> xtd::char16
Convert char to char16.
static auto to_uint64(uint16 value) noexcept -> xtd::uint64
Convert uint16 to uint64.
static auto to_uint16(double value) -> xtd::uint16
Convert double to uint16.
static auto to_llong(uint32 value) noexcept -> xtd::slong
Convert uint32 to slong.
static auto to_int64(bool value) noexcept -> xtd::int64
Convert bool to int64.
static auto to_char8(char16 value) -> xtd::char8
Convert char16 to char8.
static auto to_uint16(wchar value) noexcept -> xtd::uint16
Convert char32 to uint16.
static auto to_char8(double value) -> xtd::char8
Convert double to char8.
static auto to_string(char value) noexcept -> xtd::string
Convert char to string.
static auto to_llong(float value) noexcept -> xtd::slong
Convert float to slong.
static auto to_uint64(char value) noexcept -> xtd::uint64
Convert char to uint64.
static auto to_single(const xtd::string &value) -> float
Convert string to single.
static auto to_char16(slong value) -> xtd::char16
Convert slong to char16.
static auto to_sbyte(sbyte value) -> xtd::sbyte
Convert sbyte to sbyte.
static auto to_int32(float value) noexcept -> xtd::int32
Convert float to int32.
static auto to_sbyte(const xtd::string &value, xtd::byte from_base) -> xtd::sbyte
Convert string to sbyte.
static auto to_sbyte(uint32 value) -> xtd::sbyte
Convert uint32 to sbyte.
static auto to_byte(sbyte value) -> xtd::byte
Convert sbyte to byte.
static auto to_char(char32 value) -> char
Convert char32 to char.
static auto to_any(bool value) noexcept -> xtd::any
Convert bool to xtd::any.
static auto to_string(sbyte value) -> xtd::string
Convert sbyte to string.
static auto to_string(uint64 value) noexcept -> xtd::string
Convert uint64 to string.
static auto to_ullong(uint32 value) noexcept -> xtd::ulong
Convert uint32 to xtd::ulong.
static auto to_char8(int16 value) -> xtd::char8
Convert int16 to char8.
static auto to_decimal(bool value) noexcept -> xtd::decimal
Convert bool to decimal.
static auto to_char16(uint64 value) -> xtd::char16
Convert uint64 to char16.
static auto to_int32(int64 value) -> xtd::int32
Convert int64 to int32.
static auto to_sbyte(slong value) -> xtd::sbyte
Convert slong to sbyte.
static auto to_char8(float value) -> xtd::char8
Convert float to char8.
static auto to_sbyte(int64 value) -> xtd::sbyte
Convert int64 to sbyte.
static auto to_int64(uint32 value) noexcept -> xtd::int64
Convert uint32 to int64.
static auto to_wchar(xtd::byte value) noexcept -> xtd::wchar
Convert xtd::byte to wchar.
static auto to_wchar(char32 value) -> xtd::wchar
Convert char32 to wchar.
static auto to_sbyte(char32 value) -> xtd::sbyte
Convert char32 to sbyte.
static auto to_byte(const xtd::string &value, xtd::byte from_base) -> xtd::byte
Convert string to byte.
static auto to_char16(type_t value) noexcept -> xtd::char16
Convert type_t to char16.
Definition convert.hpp:1459
static auto to_uint32(float value) -> xtd::uint32
Convert float to uint32.
static auto to_char32(xtd::byte value) noexcept -> xtd::char32
Convert xtd::byte to char32.
static auto to_single(uint32 value) noexcept -> float
Convert uint32 to single.
static auto to_double(uint32 value) noexcept -> double
Convert uint32 to double.
static auto to_ullong(bool value) noexcept -> xtd::ulong
Convert bool to xtd::ulong.
static auto to_uint16(type_t value) noexcept -> xtd::uint16
Convert type_t to uint16.
Definition convert.hpp:4047
static auto to_int16(float value) -> xtd::int16
Convert float to int16.
static auto to_single(double value) noexcept -> float
Convert double to single.
static auto to_char(xtd::ulong value) -> char
Convert slong to char.
static auto to_char16(int32 value) -> xtd::char16
Convert int32 to char16.
static auto to_byte(int64 value) -> xtd::byte
Convert int64 to byte.
static auto to_any(sbyte value) noexcept -> xtd::any
Convert sbyte to xtd::any.
static auto to_boolean(decimal value) noexcept -> bool
Convert decimal to bool.
static auto to_int16(char value) noexcept -> xtd::int16
Convert char to int16.
static auto to_char32(int64 value) -> xtd::char32
Convert int64 to char32.
static auto to_wchar(type_t value) noexcept -> xtd::wchar
Convert type_t to wchar.
Definition convert.hpp:1925
static auto to_ullong(type_t value) noexcept -> xtd::ulong
Convert type_t to xtd::ulong.
Definition convert.hpp:4775
static auto to_llong(const xtd::string &value) -> xtd::slong
Convert string to slong.
static auto to_wchar(uint16 value) noexcept -> xtd::wchar
Convert uint16 to wchar.
static auto to_char16(xtd::ulong value) -> xtd::char16
Convert slong to char16.
static auto to_boolean(bool value) noexcept -> bool
Convert bool to bool.
static auto to_uint16(xtd::byte value) noexcept -> xtd::uint16
Convert xtd::byte to uint16.
static auto to_char8(sbyte value) -> xtd::char8
Convert sbyte to char8.
static auto to_char16(const xtd::string &value) -> xtd::char16
Convert string to char16.
static auto to_boolean(char8 value) -> bool
Convert char8 to bool.
static auto to_string(decimal value) -> xtd::string
Convert decimal to string.
static auto to_uint64(char8 value) noexcept -> xtd::uint64
Convert char8 to uint64.
static auto to_uint32(type_t value) noexcept -> xtd::uint32
Convert type_t to uint32.
Definition convert.hpp:4291
static auto to_char16(xtd::any value) -> xtd::char16
Convert xtd::any to char16.
static auto to_wchar(bool value) -> xtd::wchar
Convert bool to wchar.
static auto to_int64(uint16 value) noexcept -> xtd::int64
Convert uint16 to int64.
static auto to_byte(char16 value) -> xtd::byte
Convert char16 to byte.
static auto to_decimal(int64 value) noexcept -> xtd::decimal
Convert int64 to decimal.
static auto to_any(char8 value) -> xtd::any
Convert char8 to xtd::any.
static auto to_int64(decimal value) noexcept -> xtd::int64
Convert decimal to int64.
static auto to_ullong(float value) -> xtd::ulong
Convert float to xtd::ulong.
static auto to_wchar(wchar value) noexcept -> xtd::wchar
Convert char32 to wchar.
static auto to_int64(double value) noexcept -> xtd::int64
Convert double to int64.
static auto to_sbyte(uint64 value) -> xtd::sbyte
Convert uint64 to sbyte.
static auto to_sbyte(wchar value) -> xtd::sbyte
Convert char32 to sbyte.
static auto to_boolean(xtd::byte value) noexcept -> bool
Convert xtd::byte to bool.
static auto to_char32(char8 value) noexcept -> xtd::char32
Convert char8 to char32.
static auto to_any(xtd::ulong value) noexcept -> xtd::any
Convert slong to xtd::any.
static auto to_char8(slong value) -> xtd::char8
Convert slong to char8.
static auto to_boolean(wchar value) -> bool
Convert wchar to bool.
static auto to_any(int64 value) noexcept -> xtd::any
Convert int64 to xtd::any.
static auto to_byte(int16 value) -> xtd::byte
Convert int16 to byte.
static auto to_uint64(char16 value) noexcept -> xtd::uint64
Convert char16 to uint64.
static auto to_ullong(wchar value) noexcept -> xtd::ulong
Convert char32 to xtd::ulong.
static auto to_llong(sbyte value) noexcept -> xtd::slong
Convert sbyte to slong.
static auto to_char(uint16 value) -> char
Convert uint16 to char.
static auto to_uint64(uint32 value) noexcept -> xtd::uint64
Convert uint32 to uint64.
static auto to_double(char32 value) noexcept -> double
Convert char32 to double.
static auto to_char8(xtd::any value) -> xtd::char8
Convert xtd::any to char8.
static auto to_llong(char value) noexcept -> xtd::slong
Convert char to slong.
static auto to_boolean(xtd::any value) -> bool
Convert xtd::any to bool.
static auto to_decimal(xtd::any value) -> xtd::decimal
Convert xtd::any to decimal.
static auto to_int32(xtd::byte value) noexcept -> xtd::int32
Convert xtd::byte to int32.
static auto to_any(char16 value) noexcept -> xtd::any
Convert char16 to xtd::any.
static auto to_uint32(uint32 value) noexcept -> xtd::uint32
Convert uint32 to uint32.
static auto to_char8(wchar value) -> xtd::char8
Convert char32 to char8.
static auto to_sbyte(xtd::any value) -> xtd::sbyte
Convert xtd::any to sbyte.
static auto to_char16(char16 value) noexcept -> xtd::char16
Convert char16 to char16.
static auto to_any(slong value) noexcept -> xtd::any
Convert slong to xtd::any.
static auto to_int16(xtd::ulong value) -> xtd::int16
Convert slong to int16.
static auto to_string(type_t value) noexcept -> xtd::string
Convert type_t to string.
Definition convert.hpp:5116
static auto to_uint64(type_t value) noexcept -> xtd::uint64
Convert type_t to uint64.
Definition convert.hpp:4533
static auto to_uint16(char16 value) noexcept -> xtd::uint16
Convert char16 to uint16.
static auto to_uint32(uint64 value) -> xtd::uint32
Convert uint64 to uint32.
static auto to_string(slong value, xtd::byte from_base) -> xtd::string
Convert string to string.
static auto to_int64(wchar value) noexcept -> xtd::int64
Convert char32 to int64.
static auto to_boolean(slong value) noexcept -> bool
Convert slong to bool.
static auto to_single(int16 value) noexcept -> float
Convert int16 to single.
static auto to_decimal(int16 value) noexcept -> xtd::decimal
Convert int16 to decimal.
static auto to_double(char16 value) noexcept -> double
Convert char16 to double.
static auto to_decimal(xtd::ulong value) noexcept -> xtd::decimal
Convert slong to decimal.
static auto to_uint16(uint16 value) noexcept -> xtd::uint16
Convert uint16 to uint16.
static auto to_char16(decimal value) -> xtd::char16
Convert decimal to char16.
static auto to_uint16(int64 value) -> xtd::uint16
Convert int64 to uint16.
static auto to_uint16(uint32 value) -> xtd::uint16
Convert uint32 to uint16.
static auto to_char(float value) -> char
Convert float to char.
static auto to_decimal(slong value) noexcept -> xtd::decimal
Convert slong to decimal.
static auto to_uint16(char value) noexcept -> xtd::uint16
Convert char to uint16.
static auto to_single(xtd::ulong value) noexcept -> float
Convert slong to single.
static auto to_ullong(sbyte value) -> xtd::ulong
Convert sbyte to xtd::ulong.
static auto to_decimal(uint16 value) noexcept -> xtd::decimal
Convert uint16 to decimal.
static auto to_int32(slong value) -> xtd::int32
Convert slong to int32.
static auto to_sbyte(xtd::ulong value) -> xtd::sbyte
Convert slong to sbyte.
static auto to_char32(float value) -> xtd::char32
Convert float to char32.
static auto to_llong(bool value) noexcept -> xtd::slong
Convert bool to slong.
static auto to_byte(uint32 value) -> xtd::byte
Convert uint32 to byte.
static auto to_char32(uint32 value) noexcept -> xtd::char32
Convert uint32 to char32.
static auto to_char8(type_t value) noexcept -> xtd::char8
Convert type_t to char8.
Definition convert.hpp:1225
static auto to_sbyte(xtd::byte value) noexcept -> xtd::sbyte
Convert xtd::byte to sbyte.
static auto to_single(int32 value) noexcept -> float
Convert int32 to single.
static auto to_uint32(double value) -> xtd::uint32
Convert double to uint32.
static auto to_int64(xtd::byte value) noexcept -> xtd::int64
Convert xtd::byte to int64.
static auto throws(xtd::helpers::exception_case exception_case, const source_location &location=source_location::current()) -> void
Throws an exption with specified exception case.
@ invalid_cast
The cast is not valid.
Definition exception_case.hpp:63
#define static_
This keyword is use to represent a static object. A static object can't be instantiated (constructors...
Definition static.hpp:38
xtd::basic_string< char > string
Represents text as a sequence of UTF-8 code units.
Definition __string_definitions.hpp:43
std::int64_t int64
Represents a 64-bit signed integer.
Definition int64.hpp:23
std::uint32_t uint32
Represents a 32-bit unsigned integer.
Definition uint32.hpp:23
char8_t char8
Represents a 8-bit unicode character.
Definition char8.hpp:26
__slong__ slong
Represents a 32-bit or 64-bit signed integer.
Definition slong.hpp:27
std::int8_t sbyte
Represents a 8-bit signed integer.
Definition sbyte.hpp:23
wchar_t wchar
Represents a wide character.
Definition wchar.hpp:24
__ulong__ ulong
Represents a 32-bit or 64-bit unsigned integer.
Definition ulong.hpp:27
long double decimal
Represents a decimal-precision floating-point number.
Definition decimal.hpp:23
std::uint16_t uint16
Represents a 16-bit unsigned integer.
Definition uint16.hpp:23
char16_t char16
Represents a 16-bit unicode character.
Definition char16.hpp:26
std::int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:25
std::int16_t int16
Represents a 16-bit signed integer.
Definition int16.hpp:23
std::uint64_t uint64
Represents a 64-bit unsigned integer.
Definition uint64.hpp:23
std::uint8_t byte
Represents a 8-bit unsigned integer.
Definition byte.hpp:23
char32_t char32
Represents a 32-bit unicode character.
Definition char32.hpp:23
std::any any
Represents the any alias on std::any.
Definition any.hpp:24
@ s
The S key.
Definition console_key.hpp:124
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
constexpr read_only_span()
Creates an empty xtd::read_only_span whose xtd::read_only_span::data is null and xtd::read_only_span:...
Definition read_only_span.hpp:85
Contains xtd::read_only_span class.
Contains xtd::static_object class.
Contains xtd::string alias.
Contains xtd fundamental types.