38 static std::any
to_any(std::any value)
noexcept;
47 static std::any
to_any(
bool value)
noexcept;
65 static std::any
to_any(
char value)
noexcept;
66#if defined(__cpp_lib_char8_t)
122 static std::any
to_any(
double value)
noexcept;
134 static std::any
to_any(
float value)
noexcept;
226 static std::any
to_any(
const std::string& value)
noexcept;
227#if defined(__cpp_lib_char8_t)
228 static std::any
to_any(
const std::u8string& value)
noexcept;
230 static std::any
to_any(
const std::u16string& value)
noexcept;
231 static std::any
to_any(
const std::u32string& value)
noexcept;
232 static std::any
to_any(
const std::wstring& value)
noexcept;
233 static std::any
to_any(
const char* value)
noexcept;
234 static std::any
to_any(
char* value)
noexcept;
235#if defined(__cpp_lib_char8_t)
243 static std::any
to_any(
const wchar* value)
noexcept;
254 template<
typename type_t>
257 return std::any(value);
301#if defined(__cpp_lib_char8_t)
465 static bool to_boolean(
const std::string& value);
466#if defined(__cpp_lib_char8_t)
467 static bool to_boolean(
const std::u8string& value);
469 static bool to_boolean(
const std::u16string& value);
470 static bool to_boolean(
const std::u32string& value);
471 static bool to_boolean(
const std::wstring& value);
474#if defined(__cpp_lib_char8_t)
493 template<
typename type_t>
495 return static_cast<bool>(value);
534#if defined(__cpp_lib_char8_t)
721#if defined(__cpp_lib_char8_t)
729#if defined(__cpp_lib_char8_t)
748 template<
typename type_t>
789#if defined(__cpp_lib_char8_t)
963 static char to_char(
const std::string& value);
964#if defined(__cpp_lib_char8_t)
965 static char to_char(
const std::u8string& value);
967 static char to_char(
const std::u16string& value);
968 static char to_char(
const std::u32string& value);
969 static char to_char(
const std::wstring& value);
970 static char to_char(
const char* value);
971 static char to_char(
char* value);
972#if defined(__cpp_lib_char8_t)
991 template<
typename type_t>
993 return static_cast<char>(value);
996#if defined(__cpp_lib_char8_t)
1229 template<
typename type_t>
1231 return static_cast<char8>(value);
1271#if defined(__cpp_lib_char8_t)
1443#if defined(__cpp_lib_char8_t)
1451#if defined(__cpp_lib_char8_t)
1470 template<
typename type_t>
1472 return static_cast<char16>(value);
1511#if defined(__cpp_lib_char8_t)
1681#if defined(__cpp_lib_char8_t)
1689#if defined(__cpp_lib_char8_t)
1708 template<
typename type_t>
1710 return static_cast<char32>(value);
1749#if defined(__cpp_lib_char8_t)
1921#if defined(__cpp_lib_char8_t)
1929#if defined(__cpp_lib_char8_t)
1948 template<
typename type_t>
1950 return static_cast<wchar>(value);
1989#if defined(__cpp_lib_char8_t)
2150#if defined(__cpp_lib_char8_t)
2158#if defined(__cpp_lib_char8_t)
2177 template<
typename type_t>
2179 return static_cast<decimal>(value);
2218#if defined(__cpp_lib_char8_t)
2378 static double to_double(
const std::string& value);
2379#if defined(__cpp_lib_char8_t)
2380 static double to_double(
const std::u8string& value);
2382 static double to_double(
const std::u16string& value);
2383 static double to_double(
const std::u32string& value);
2384 static double to_double(
const std::wstring& value);
2385 static double to_double(
const char* value);
2387#if defined(__cpp_lib_char8_t)
2406 template<
typename type_t>
2408 return static_cast<double>(value);
2447#if defined(__cpp_lib_char8_t)
2607 static float to_single(
const std::string& value);
2608#if defined(__cpp_lib_char8_t)
2609 static float to_single(
const std::u8string& value);
2611 static float to_single(
const std::u16string& value);
2612 static float to_single(
const std::u32string& value);
2613 static float to_single(
const std::wstring& value);
2614 static float to_single(
const char* value);
2616#if defined(__cpp_lib_char8_t)
2635 template<
typename type_t>
2637 return static_cast<float>(value);
2676#if defined(__cpp_lib_char8_t)
2859#if defined(__cpp_lib_char8_t)
2867#if defined(__cpp_lib_char8_t)
2886 template<
typename type_t>
2888 return static_cast<int16>(value);
2927#if defined(__cpp_lib_char8_t)
3106#if defined(__cpp_lib_char8_t)
3114#if defined(__cpp_lib_char8_t)
3133 template<
typename type_t>
3135 return static_cast<int32>(value);
3174#if defined(__cpp_lib_char8_t)
3348#if defined(__cpp_lib_char8_t)
3356#if defined(__cpp_lib_char8_t)
3375 template<
typename type_t>
3377 return static_cast<int64>(value);
3416#if defined(__cpp_lib_char8_t)
3590#if defined(__cpp_lib_char8_t)
3598#if defined(__cpp_lib_char8_t)
3617 template<
typename type_t>
3619 return static_cast<slong>(value);
3658#if defined(__cpp_lib_char8_t)
3845#if defined(__cpp_lib_char8_t)
3853#if defined(__cpp_lib_char8_t)
3872 template<
typename type_t>
3874 return static_cast<sbyte>(value);
3913#if defined(__cpp_lib_char8_t)
4097#if defined(__cpp_lib_char8_t)
4105#if defined(__cpp_lib_char8_t)
4124 template<
typename type_t>
4126 return static_cast<uint16>(value);
4165#if defined(__cpp_lib_char8_t)
4347#if defined(__cpp_lib_char8_t)
4355#if defined(__cpp_lib_char8_t)
4374 template<
typename type_t>
4376 return static_cast<uint32>(value);
4415#if defined(__cpp_lib_char8_t)
4595#if defined(__cpp_lib_char8_t)
4603#if defined(__cpp_lib_char8_t)
4622 template<
typename type_t>
4624 return static_cast<uint64>(value);
4663#if defined(__cpp_lib_char8_t)
4843#if defined(__cpp_lib_char8_t)
4851#if defined(__cpp_lib_char8_t)
4870 template<
typename type_t>
4922#if defined(__cpp_lib_char8_t)
5190#if defined(__cpp_lib_char8_t)
5198#if defined(__cpp_lib_char8_t)
5217 template<
typename type_t>
5269#if defined(__cpp_lib_char8_t)
5537#if defined(__cpp_lib_char8_t)
5545#if defined(__cpp_lib_char8_t)
5564 template<
typename type_t>
Contains std::any type and std::bad_any_cast exception.
Contains xtd::argument_exception exception.
Represents API to convert base type code.
Definition convert.h:25
static int32 to_int32(const xtd::ustring &value)
Convert string to int32.
static sbyte to_sbyte(double value)
Convert double to sbyte.
static uint64 to_uint64(xtd::ulong value) noexcept
Convert slong to uint64.
static float to_single(int64 value) noexcept
Convert int64 to single.
static int16 to_int16(int64 value)
Convert int64 to int16.
static bool to_boolean(char8 value)
Convert char8 to bool.
static double to_double(char16 value) noexcept
Convert char16 to double.
static uint64 to_uint64(char16 value) noexcept
Convert char16 to uint64.
static uint32 to_uint32(sbyte value)
Convert sbyte to uint32.
static ustring to_string(char32 value) noexcept
Convert char32 to ustring.
static double to_double(uint32 value) noexcept
Convert uint32 to double.
static std::any to_any(const xtd::ustring &value) noexcept
Convert string to std::any.
static std::any to_any(int16 value) noexcept
Convert int16 to std::any.
static char16 to_char16(xtd::byte value) noexcept
Convert xtd::byte to char16.
static std::any to_any(slong value) noexcept
Convert slong to std::any.
static decimal to_decimal(const xtd::ustring &value)
Convert string to decimal.
static uint16 to_uint16(bool value) noexcept
Convert bool to uint16.
static sbyte to_sbyte(uint64 value)
Convert uint64 to sbyte.
static wchar to_wchar(xtd::ulong value)
Convert slong to wchar.
static uint16 to_uint16(const xtd::ustring &value, xtd::byte from_base)
Convert string to uint16.
static double to_double(sbyte value) noexcept
Convert sbyte to double.
static ustring to_string(slong value, xtd::byte from_base)
Convert string to ustring.
static ustring to_ustring(int64 value, xtd::byte from_base)
Convert string to ustring.
static bool to_boolean(uint64 value) noexcept
Convert uint64 to bool.
static ustring to_ustring(int16 value, xtd::byte from_base)
Convert string to ustring.
static sbyte to_sbyte(int16 value)
Convert int16 to sbyte.
static wchar to_wchar(bool value)
Convert bool to wchar.
static uint32 to_uint32(slong value)
Convert slong to uint32.
static slong to_llong(char value) noexcept
Convert char to slong.
static wchar to_wchar(uint32 value)
Convert uint32 to wchar.
static xtd::byte to_byte(uint64 value)
Convert uint64 to byte.
static slong to_llong(uint64 value)
Convert uint64 to slong.
static double to_double(std::any value)
Convert std::any to double.
static slong to_llong(slong value) noexcept
Convert slong to slong.
static ustring to_string(uint64 value) noexcept
Convert uint64 to ustring.
static xtd::byte to_byte(char32 value)
Convert char32 to byte.
static uint32 to_uint32(char16 value) noexcept
Convert char16 to uint32.
static bool to_boolean(slong value) noexcept
Convert slong to bool.
static wchar to_wchar(std::any value)
Convert std::any to wchar.
static ustring to_string(bool value) noexcept
Convert bool to ustring.
static char32 to_char32(int32 value)
Convert int32 to char32.
static char to_char(char16 value)
Convert char16 to char.
static slong to_llong(char32 value) noexcept
Convert char32 to slong.
static xtd::byte to_byte(const xtd::ustring &value, xtd::byte from_base)
Convert string to byte.
static char8 to_char8(char value) noexcept
Convert char to char8.
static ustring to_string(decimal value)
Convert decimal to ustring.
static xtd::byte to_byte(xtd::ulong value)
Convert slong to byte.
static float to_single(sbyte value) noexcept
Convert sbyte to single.
static ustring to_ustring(std::any value)
Convert std::any to ustring.
static uint32 to_uint32(float value)
Convert float to uint32.
static xtd::byte to_byte(char value) noexcept
Convert char to byte.
static wchar to_wchar(xtd::byte value) noexcept
Convert xtd::byte to wchar.
static slong to_llong(sbyte value) noexcept
Convert sbyte to slong.
static ustring to_string(uint16 value) noexcept
Convert uint16 to ustring.
static int64 to_int64(float value) noexcept
Convert float to int64.
static char32 to_char32(xtd::byte value) noexcept
Convert xtd::byte to char32.
static uint32 to_uint32(const xtd::ustring &value)
Convert string to uint32.
static float to_single(char value) noexcept
Convert char to single.
static bool to_boolean(int16 value) noexcept
Convert int16 to bool.
static ustring to_string(std::any value)
Convert std::any to ustring.
static int16 to_int16(const xtd::ustring &value, xtd::byte from_base)
Convert string to int16.
static xtd::ulong to_ullong(char32 value) noexcept
Convert char32 to xtd::ulong.
static float to_single(double value) noexcept
Convert double to single.
static char32 to_char32(sbyte value)
Convert sbyte to char32.
static xtd::ulong to_ullong(char16 value) noexcept
Convert char16 to xtd::ulong.
static ustring to_string(char8 value) noexcept
Convert char8 to ustring.
static uint16 to_uint16(char16 value) noexcept
Convert char16 to uint16.
static wchar to_wchar(decimal value)
Convert decimal to wchar.
static char16 to_char16(char8 value) noexcept
Convert char8 to char16.
static int32 to_int32(float value) noexcept
Convert float to int32.
static ustring to_ustring(xtd::ulong value) noexcept
Convert slong to ustring.
static int16 to_int16(char value) noexcept
Convert char to int16.
static char to_char(uint64 value)
Convert uint64 to char.
static int64 to_int64(char32 value) noexcept
Convert char32 to int64.
static uint32 to_uint32(uint16 value) noexcept
Convert uint16 to uint32.
static float to_single(char32 value) noexcept
Convert char32 to single.
static slong to_llong(const xtd::ustring &value, xtd::byte from_base)
Convert string to slong.
static uint64 to_uint64(uint32 value) noexcept
Convert uint32 to uint64.
static ustring to_string(uint32 value, xtd::byte from_base)
Convert string to ustring.
static double to_double(int64 value) noexcept
Convert int64 to double.
static ustring to_ustring(uint64 value) noexcept
Convert uint64 to ustring.
static double to_double(char8 value) noexcept
Convert char8 to double.
static xtd::byte to_byte(const xtd::ustring &value)
Convert string to byte.
static wchar to_wchar(char32 value)
Convert char32 to wchar.
static char32 to_char32(xtd::ulong value)
Convert slong to char32.
static uint64 to_uint64(xtd::byte value) noexcept
Convert xtd::byte to uint64.
static char16 to_char16(type_t value) noexcept
Convert type_t to char16.
Definition convert.h:1471
static ustring to_ustring(int32 value, xtd::byte from_base)
Convert string to ustring.
static bool to_boolean(std::any value)
Convert std::any to bool.
static ustring to_string(type_t value) noexcept
Convert type_t to ustring.
Definition convert.h:5218
static std::any to_any(int64 value) noexcept
Convert int64 to std::any.
static ustring to_ustring(char16 value) noexcept
Convert char16 to ustring.
static xtd::ulong to_ullong(bool value) noexcept
Convert bool to xtd::ulong.
static char16 to_char16(uint16 value) noexcept
Convert uint16 to char16.
static ustring to_string(xtd::byte value) noexcept
Convert xtd::byte to ustring.
static char32 to_char32(decimal value)
Convert decimal to char32.
static uint16 to_uint16(char value) noexcept
Convert char to uint16.
static decimal to_decimal(char32 value) noexcept
Convert char32 to decimal.
static ustring to_string(wchar value) noexcept
Convert char32 to ustring.
static int32 to_int32(slong value)
Convert slong to int32.
static uint16 to_uint16(wchar value) noexcept
Convert char32 to uint16.
static char to_char(uint16 value)
Convert uint16 to char.
static std::any to_any(wchar value) noexcept
Convert wchar to std::any.
static uint32 to_uint32(char32 value) noexcept
Convert char32 to uint32.
static double to_double(xtd::byte value) noexcept
Convert xtd::byte to double.
static std::any to_any(uint64 value) noexcept
Convert uint64 to std::any.
static float to_single(xtd::byte value) noexcept
Convert xtd::byte to single.
static float to_single(std::any value)
Convert std::any to single.
static uint64 to_uint64(int64 value)
Convert int64 to uint64.
static int16 to_int16(const xtd::ustring &value)
Convert string to int16.
static double to_double(double value) noexcept
Convert double to double.
static char8 to_char8(char32 value)
Convert char32 to char8.
static decimal to_decimal(double value) noexcept
Convert double to decimal.
static char8 to_char8(bool value)
Convert bool to char8.
static double to_double(slong value) noexcept
Convert slong to double.
static wchar to_wchar(int16 value)
Convert int16 to wchar.
static ustring to_ustring(const xtd::ustring &value)
Convert string to ustring.
static char16 to_char16(uint32 value)
Convert uint32 to char16.
static ustring to_ustring(sbyte value, xtd::byte from_base)
Convert string to ustring.
static char16 to_char16(xtd::ulong value)
Convert slong to char16.
static char to_char(uint32 value)
Convert uint32 to char.
static int64 to_int64(uint16 value) noexcept
Convert uint16 to int64.
static uint32 to_uint32(wchar value) noexcept
Convert char32 to uint32.
static int32 to_int32(char8 value) noexcept
Convert char8 to int32.
static char32 to_char32(uint16 value) noexcept
Convert uint16 to char32.
static int32 to_int32(xtd::ulong value)
Convert slong to int32.
static char to_char(slong value)
Convert slong to char.
static decimal to_decimal(xtd::byte value) noexcept
Convert xtd::byte to decimal.
static xtd::ulong to_ullong(std::any value)
Convert std::any to xtd::ulong.
static uint32 to_uint32(double value)
Convert double to uint32.
static std::any to_any(uint32 value) noexcept
Convert uint32 to std::any.
static sbyte to_sbyte(int32 value)
Convert int32 to sbyte.
static ustring to_ustring(double value)
Convert double to ustring.
static xtd::byte to_byte(double value)
Convert double to byte.
static std::any to_any(char32 value) noexcept
Convert char32 to std::any.
static xtd::byte to_byte(int16 value)
Convert int16 to byte.
static float to_single(bool value) noexcept
Convert bool to single.
static int64 to_int64(uint64 value)
Convert uint64 to int64.
static char32 to_char32(float value)
Convert float to char32.
static decimal to_decimal(char8 value) noexcept
Convert char8 to decimal.
static int32 to_int32(std::any value)
Convert std::any to int32.
static int64 to_int64(bool value) noexcept
Convert bool to int64.
static uint32 to_uint32(type_t value) noexcept
Convert type_t to uint32.
Definition convert.h:4375
static bool to_boolean(char value)
Convert char to bool.
static float to_single(uint32 value) noexcept
Convert uint32 to single.
static wchar to_wchar(double value)
Convert double to wchar.
static slong to_llong(char16 value) noexcept
Convert char16 to slong.
static xtd::byte to_byte(bool value) noexcept
Convert bool to byte.
static char to_char(decimal value)
Convert decimal to char.
static float to_single(slong value) noexcept
Convert slong to single.
static ustring to_string(xtd::byte value, xtd::byte from_base)
Convert string to ustring.
static wchar to_wchar(const xtd::ustring &value)
Convert string to wchar.
static uint16 to_uint16(int32 value)
Convert int32 to uint16.
static std::any to_any(xtd::byte value) noexcept
Convert xtd::byte to std::any.
static ustring to_string(double value)
Convert double to ustring.
static decimal to_decimal(wchar value) noexcept
Convert char32 to decimal.
static wchar to_wchar(char8 value) noexcept
Convert char8 to wchar.
static uint16 to_uint16(const xtd::ustring &value)
Convert string to uint16.
static float to_single(uint64 value) noexcept
Convert uint64 to single.
static ustring to_string(int32 value, xtd::byte from_base)
Convert string to ustring.
static int16 to_int16(type_t value) noexcept
Convert type_t to int16.
Definition convert.h:2887
static bool to_boolean(wchar value)
Convert wchar to bool.
static ustring to_string(int16 value)
Convert int16 to ustring.
static int16 to_int16(int16 value) noexcept
Convert int16 to int16.
static char8 to_char8(float value)
Convert float to char8.
static decimal to_decimal(bool value) noexcept
Convert bool to decimal.
static bool to_boolean(decimal value) noexcept
Convert decimal to bool.
static std::any to_any(xtd::ulong value) noexcept
Convert slong to std::any.
static slong to_llong(xtd::byte value) noexcept
Convert xtd::byte to slong.
static wchar to_wchar(slong value)
Convert slong to wchar.
static int64 to_int64(std::any value)
Convert std::any to int64.
static xtd::byte to_byte(int64 value)
Convert int64 to byte.
static xtd::ulong to_ullong(const xtd::ustring &value)
Convert string to xtd::ulong.
static wchar to_wchar(uint64 value)
Convert uint64 to wchar.
static char8 to_char8(xtd::ulong value)
Convert slong to char8.
static char16 to_char16(char value) noexcept
Convert char to char16.
static uint64 to_uint64(char32 value) noexcept
Convert char32 to uint64.
static uint64 to_uint64(decimal value)
Convert decimal to uint64.
static int16 to_int16(char32 value)
Convert char32 to int16.
static int32 to_int32(uint16 value) noexcept
Convert uint16 to int32.
static slong to_llong(xtd::ulong value)
Convert slong to slong.
static sbyte to_sbyte(char8 value) noexcept
Convert char8 to sbyte.
static sbyte to_sbyte(char16 value)
Convert char16 to sbyte.
static std::any to_any(std::any value) noexcept
Convert std::any to std::any.
static int16 to_int16(xtd::ulong value)
Convert slong to int16.
static ustring to_ustring(xtd::byte value, xtd::byte from_base)
Convert string to ustring.
static char32 to_char32(uint64 value)
Convert uint64 to char32.
static uint32 to_uint32(bool value) noexcept
Convert bool to uint32.
static slong to_llong(uint32 value) noexcept
Convert uint32 to slong.
static bool to_boolean(char32 value)
Convert char32 to bool.
static char to_char(char value) noexcept
Convert char to char.
static uint16 to_uint16(sbyte value)
Convert sbyte to uint16.
static char8 to_char8(std::any value)
Convert std::any to char8.
static xtd::ulong to_ullong(xtd::ulong value) noexcept
Convert slong to xtd::ulong.
static char to_char(wchar value)
Convert char32 to char.
static char16 to_char16(sbyte value)
Convert sbyte to char16.
static slong to_llong(uint16 value) noexcept
Convert uint16 to slong.
static xtd::ulong to_ullong(slong value)
Convert slong to xtd::ulong.
static uint16 to_uint16(uint64 value)
Convert uint64 to uint16.
static ustring to_ustring(xtd::ulong value, xtd::byte from_base)
Convert string to ustring.
static float to_single(int16 value) noexcept
Convert int16 to single.
static decimal to_decimal(decimal value) noexcept
Convert decimal to decimal.
static char32 to_char32(char value) noexcept
Convert char to char32.
static wchar to_wchar(float value)
Convert float to wchar.
static int64 to_int64(uint32 value) noexcept
Convert uint32 to int64.
static char32 to_char32(wchar value) noexcept
Convert char32 to char32.
static char8 to_char8(slong value)
Convert slong to char8.
static int32 to_int32(int16 value) noexcept
Convert int16 to int32.
static slong to_llong(float value) noexcept
Convert float to slong.
static uint64 to_uint64(sbyte value)
Convert sbyte to uint64.
static double to_double(int32 value) noexcept
Convert int32 to double.
static char32 to_char32(type_t value) noexcept
Convert type_t to char32.
Definition convert.h:1709
static std::any to_any(char8 value)
Convert char8 to std::any.
static xtd::ulong to_ullong(uint32 value) noexcept
Convert uint32 to xtd::ulong.
static uint32 to_uint32(uint32 value) noexcept
Convert uint32 to uint32.
static uint64 to_uint64(const xtd::ustring &value)
Convert string to uint64.
static int32 to_int32(wchar value) noexcept
Convert char32 to int32.
static char8 to_char8(const xtd::ustring &value)
Convert string to char8.
static slong to_llong(int16 value) noexcept
Convert int16 to slong.
static int32 to_int32(xtd::byte value) noexcept
Convert xtd::byte to int32.
static slong to_llong(int32 value) noexcept
Convert int32 to slong.
static sbyte to_sbyte(uint32 value)
Convert uint32 to sbyte.
static ustring to_string(uint32 value) noexcept
Convert uint32 to ustring.
static int16 to_int16(char8 value) noexcept
Convert char8 to int16.
static xtd::byte to_byte(float value)
Convert float to byte.
static xtd::ulong to_ullong(float value)
Convert float to xtd::ulong.
static char16 to_char16(uint64 value)
Convert uint64 to char16.
static char to_char(int16 value)
Convert int16 to char.
static slong to_llong(wchar value) noexcept
Convert char32 to slong.
static uint16 to_uint16(std::any value)
Convert std::any to uint16.
static int32 to_int32(uint32 value)
Convert uint32 to int32.
static int32 to_int32(type_t value) noexcept
Convert type_t to int32.
Definition convert.h:3134
static char8 to_char8(char16 value)
Convert char16 to char8.
static int16 to_int16(slong value)
Convert slong to int16.
static char8 to_char8(wchar value)
Convert char32 to char8.
static char to_char(bool value)
Convert bool to char.
static int16 to_int16(xtd::byte value) noexcept
Convert xtd::byte to int16.
static char32 to_char32(std::any value)
Convert std::any to char32.
static std::any to_any(char value) noexcept
Convert char to std::any.
static ustring to_ustring(float value)
Convert float to ustring.
static char to_char(const xtd::ustring &value)
Convert string to char.
static double to_double(uint16 value) noexcept
Convert uint16 to double.
static int16 to_int16(float value)
Convert float to int16.
static int64 to_int64(wchar value) noexcept
Convert char32 to int64.
static char16 to_char16(int64 value)
Convert int64 to char16.
static int64 to_int64(int32 value) noexcept
Convert int32 to int64.
static std::any to_any(sbyte value) noexcept
Convert sbyte to std::any.
static ustring to_ustring(char32 value) noexcept
Convert char32 to ustring.
static int32 to_int32(char value) noexcept
Convert char to int32.
static uint32 to_uint32(char8 value) noexcept
Convert char8 to uint32.
static char8 to_char8(double value)
Convert double to char8.
static sbyte to_sbyte(const xtd::ustring &value)
Convert string to sbyte.
static int16 to_int16(bool value) noexcept
Convert bool to int16.
static bool to_boolean(const xtd::ustring &value)
Convert string to bool.
static xtd::ulong to_ullong(char value) noexcept
Convert char to xtd::ulong.
static ustring to_string(xtd::ulong value) noexcept
Convert slong to ustring.
static bool to_boolean(type_t value) noexcept
Convert type_t to bool.
Definition convert.h:494
static decimal to_decimal(int16 value) noexcept
Convert int16 to decimal.
static char8 to_char8(sbyte value)
Convert sbyte to char8.
static bool to_boolean(sbyte value) noexcept
Convert sbyte to bool.
static char8 to_char8(int32 value)
Convert int32 to char8.
static xtd::ulong to_ullong(int16 value)
Convert int16 to xtd::ulong.
static slong to_llong(const xtd::ustring &value)
Convert string to slong.
static int64 to_int64(char value) noexcept
Convert char to int64.
static decimal to_decimal(std::any value)
Convert std::any to decimal.
static int16 to_int16(std::any value)
Convert std::any to int16.
static char16 to_char16(slong value)
Convert slong to char16.
static int16 to_int16(uint64 value)
Convert uint64 to int16.
static char16 to_char16(char32 value)
Convert char32 to char16.
static double to_double(bool value) noexcept
Convert bool to double.
static wchar to_wchar(char16 value) noexcept
Convert char16 to wchar.
static std::any to_any(char16 value) noexcept
Convert char16 to std::any.
static double to_double(uint64 value) noexcept
Convert uint64 to double.
static char16 to_char16(const xtd::ustring &value)
Convert string to char16.
static int32 to_int32(int64 value)
Convert int64 to int32.
static wchar to_wchar(sbyte value)
Convert sbyte to wchar.
static ustring to_ustring(uint16 value, xtd::byte from_base)
Convert string to ustring.
static uint32 to_uint32(uint64 value)
Convert uint64 to uint32.
static xtd::byte to_byte(char16 value)
Convert char16 to byte.
static char32 to_char32(double value)
Convert double to char32.
static char to_char(sbyte value)
Convert sbyte to char.
static int32 to_int32(double value)
Convert double to int32.
static ustring to_ustring(char value) noexcept
Convert char to ustring.
static char16 to_char16(std::any value)
Convert std::any to char16.
static slong to_llong(std::any value)
Convert std::any to slong.
static ustring to_ustring(int16 value)
Convert int16 to ustring.
static char32 to_char32(char16 value) noexcept
Convert char16 to char32.
static xtd::ulong to_ullong(double value)
Convert double to xtd::ulong.
static float to_single(char8 value) noexcept
Convert char8 to single.
static int32 to_int32(sbyte value) noexcept
Convert sbyte to int32.
static xtd::byte to_byte(uint16 value)
Convert uint16 to byte.
static xtd::ulong to_ullong(uint64 value) noexcept
Convert uint64 to xtd::ulong.
static float to_single(int32 value) noexcept
Convert int32 to single.
static wchar to_wchar(int64 value)
Convert int64 to wchar.
static xtd::ulong to_ullong(xtd::byte value) noexcept
Convert xtd::byte to xtd::ulong.
static sbyte to_sbyte(int64 value)
Convert int64 to sbyte.
static ustring to_ustring(bool value) noexcept
Convert bool to ustring.
static double to_double(char32 value) noexcept
Convert char32 to double.
static int64 to_int64(char16 value) noexcept
Convert char16 to int64.
static ustring to_string(char value) noexcept
Convert char to ustring.
static uint32 to_uint32(int32 value)
Convert int32 to uint32.
static ustring to_ustring(uint64 value, xtd::byte from_base)
Convert string to ustring.
static wchar to_wchar(int32 value)
Convert int32 to wchar.
static xtd::ulong to_ullong(type_t value) noexcept
Convert type_t to xtd::ulong.
Definition convert.h:4871
static uint64 to_uint64(std::any value)
Convert std::any to uint64.
static xtd::byte to_byte(int32 value)
Convert int32 to byte.
static char16 to_char16(int32 value)
Convert int32 to char16.
static char8 to_char8(char8 value) noexcept
Convert char8 to char8.
static char8 to_char8(uint32 value)
Convert uint32 to char8.
static sbyte to_sbyte(char value) noexcept
Convert char to sbyte.
static ustring to_ustring(slong value)
Convert slong to ustring.
static int64 to_int64(slong value) noexcept
Convert slong to int64.
static std::any to_any(bool value) noexcept
Convert bool to std::any.
static int32 to_int32(uint64 value)
Convert uint64 to int32.
static int16 to_int16(wchar value) noexcept
Convert char32 to int16.
static int32 to_int32(char16 value) noexcept
Convert char16 to int32.
static xtd::byte to_byte(std::any value)
Convert std::any to byte.
static uint32 to_uint32(char value) noexcept
Convert char to uint32.
static ustring to_ustring(decimal value)
Convert decimal to ustring.
static ustring to_string(uint64 value, xtd::byte from_base)
Convert string to ustring.
static uint32 to_uint32(decimal value)
Convert decimal to uint32.
static ustring to_ustring(char8 value) noexcept
Convert char8 to ustring.
static bool to_boolean(bool value) noexcept
Convert bool to bool.
static int64 to_int64(const xtd::ustring &value)
Convert string to int64.
static ustring to_ustring(uint32 value) noexcept
Convert uint32 to ustring.
static decimal to_decimal(int32 value) noexcept
Convert int32 to decimal.
static int64 to_int64(xtd::byte value) noexcept
Convert xtd::byte to int64.
static xtd::ulong to_ullong(int64 value)
Convert int64 to xtd::ulong.
static char8 to_char8(int16 value)
Convert int16 to char8.
static bool to_boolean(xtd::byte value) noexcept
Convert xtd::byte to bool.
static char16 to_char16(float value)
Convert float to char16.
static uint64 to_uint64(uint64 value) noexcept
Convert uint64 to uint64.
static decimal to_decimal(uint32 value) noexcept
Convert uint32 to decimal.
static decimal to_decimal(xtd::ulong value) noexcept
Convert slong to decimal.
static xtd::byte to_byte(sbyte value)
Convert sbyte to byte.
static char16 to_char16(char16 value) noexcept
Convert char16 to char16.
static xtd::byte to_byte(slong value)
Convert slong to byte.
static decimal to_decimal(type_t value) noexcept
Convert type_t to decimal.
Definition convert.h:2178
static char16 to_char16(decimal value)
Convert decimal to char16.
static wchar to_wchar(uint16 value) noexcept
Convert uint16 to wchar.
static int16 to_int16(int32 value)
Convert int32 to int16.
static ustring to_ustring(uint32 value, xtd::byte from_base)
Convert string to ustring.
static uint64 to_uint64(int32 value)
Convert int32 to uint64.
static ustring to_string(int64 value, xtd::byte from_base)
Convert string to ustring.
static int16 to_int16(uint32 value)
Convert uint32 to int16.
static int64 to_int64(char8 value) noexcept
Convert char8 to int64.
static uint64 to_uint64(type_t value) noexcept
Convert type_t to uint64.
Definition convert.h:4623
static uint16 to_uint16(type_t value) noexcept
Convert type_t to uint16.
Definition convert.h:4125
static char to_char(float value)
Convert float to char.
static ustring to_ustring(xtd::byte value) noexcept
Convert xtd::byte to ustring.
static wchar to_wchar(char value) noexcept
Convert char to wchar.
static uint16 to_uint16(int64 value)
Convert int64 to uint16.
static double to_double(char value) noexcept
Convert char to double.
static sbyte to_sbyte(const xtd::ustring &value, xtd::byte from_base)
Convert string to sbyte.
static int64 to_int64(int16 value) noexcept
Convert int16 to int64.
static double to_double(const xtd::ustring &value)
Convert string to double.
static uint16 to_uint16(double value)
Convert double to uint16.
static char32 to_char32(uint32 value) noexcept
Convert uint32 to char32.
static sbyte to_sbyte(uint16 value)
Convert uint16 to sbyte.
static ustring to_string(int64 value)
Convert int64 to ustring.
static char to_char(xtd::byte value) noexcept
Convert xtd::byte to char.
static bool to_boolean(xtd::ulong value) noexcept
Convert slong to bool.
static xtd::byte to_byte(type_t value) noexcept
Convert type_t to byte.
Definition convert.h:749
static int64 to_int64(int64 value) noexcept
Convert int64 to int64.
static uint16 to_uint16(xtd::ulong value)
Convert slong to uint16.
static uint32 to_uint32(int64 value)
Convert int64 to uint32.
static uint16 to_uint16(slong value)
Convert slong to uint16.
static char8 to_char8(uint64 value)
Convert uint64 to char8.
static ustring to_string(const xtd::ustring &value)
Convert string to ustring.
static uint64 to_uint64(char value) noexcept
Convert char to uint64.
static ustring to_ustring(type_t value) noexcept
Convert type_t to ustring.
Definition convert.h:5565
static float to_single(xtd::ulong value) noexcept
Convert slong to single.
static double to_double(wchar value) noexcept
Convert char32 to double.
static decimal to_decimal(sbyte value) noexcept
Convert sbyte to decimal.
static uint64 to_uint64(const xtd::ustring &value, xtd::byte from_base)
Convert string to uint64.
static std::any to_any(int32 value) noexcept
Convert int32 to std::any.
static std::any to_any(decimal value) noexcept
Convert decimal to std::any.
static float to_single(uint16 value) noexcept
Convert uint16 to single.
static float to_single(const xtd::ustring &value)
Convert string to single.
static bool to_boolean(double value) noexcept
Convert double to bool.
static sbyte to_sbyte(xtd::byte value) noexcept
Convert xtd::byte to sbyte.
static char to_char(xtd::ulong value)
Convert slong to char.
static double to_double(xtd::ulong value) noexcept
Convert slong to double.
static ustring to_ustring(slong value, xtd::byte from_base)
Convert string to ustring.
static ustring to_string(float value)
Convert float to ustring.
static xtd::ulong to_ullong(uint16 value) noexcept
Convert uint16 to xtd::ulong.
static float to_single(char16 value) noexcept
Convert char16 to single.
static int16 to_int16(char16 value) noexcept
Convert char16 to int16.
static ustring to_ustring(int32 value)
Convert int32 to ustring.
static uint16 to_uint16(char32 value)
Convert char32 to uint16.
static ustring to_ustring(uint16 value) noexcept
Convert uint16 to ustring.
static decimal to_decimal(float value) noexcept
Convert float to decimal.
static ustring to_string(int16 value, xtd::byte from_base)
Convert string to ustring.
static uint64 to_uint64(wchar value) noexcept
Convert char32 to uint64.
static char to_char(char32 value)
Convert char32 to char.
static float to_single(decimal value) noexcept
Convert decimal to single.
static bool to_boolean(int32 value) noexcept
Convert int32 to bool.
static int64 to_int64(double value) noexcept
Convert double to int64.
static sbyte to_sbyte(char32 value)
Convert char32 to sbyte.
static uint64 to_uint64(int16 value)
Convert int16 to uint64.
static sbyte to_sbyte(float value)
Convert float to sbyte.
static int32 to_int32(int32 value) noexcept
Convert int32 to int32.
static xtd::ulong to_ullong(sbyte value)
Convert sbyte to xtd::ulong.
static xtd::byte to_byte(xtd::byte value) noexcept
Convert xtd::byte to byte.
static uint32 to_uint32(std::any value)
Convert std::any to uint32.
static bool to_boolean(uint32 value) noexcept
Convert uint32 to bool.
static slong to_llong(bool value) noexcept
Convert bool to slong.
static char to_char(int64 value)
Convert int64 to char.
static uint64 to_uint64(double value)
Convert double to uint64.
static ustring to_string(char16 value) noexcept
Convert char16 to ustring.
static bool to_boolean(float value) noexcept
Convert float to bool.
static char16 to_char16(wchar value) noexcept
Convert char32 to char16.
static char32 to_char32(char8 value) noexcept
Convert char8 to char32.
static int16 to_int16(decimal value)
Convert decimal to int16.
static std::any to_any(float value) noexcept
Convert float to std::any.
static ustring to_ustring(wchar value) noexcept
Convert char32 to ustring.
static sbyte to_sbyte(xtd::ulong value)
Convert slong to sbyte.
static wchar to_wchar(wchar value) noexcept
Convert char32 to wchar.
static uint64 to_uint64(char8 value) noexcept
Convert char8 to uint64.
static uint32 to_uint32(const xtd::ustring &value, xtd::byte from_base)
Convert string to uint32.
static char8 to_char8(type_t value) noexcept
Convert type_t to char8.
Definition convert.h:1230
static decimal to_decimal(uint16 value) noexcept
Convert uint16 to decimal.
static int64 to_int64(decimal value) noexcept
Convert decimal to int64.
static slong to_llong(type_t value) noexcept
Convert type_t to slong.
Definition convert.h:3618
static ustring to_string(slong value)
Convert slong to ustring.
static decimal to_decimal(char16 value) noexcept
Convert char16 to decimal.
static char to_char(std::any value)
Convert std::any to char.
static uint32 to_uint32(xtd::ulong value)
Convert slong to uint32.
static xtd::byte to_byte(uint32 value)
Convert uint32 to byte.
static uint16 to_uint16(xtd::byte value) noexcept
Convert xtd::byte to uint16.
static char8 to_char8(int64 value)
Convert int64 to char8.
static char32 to_char32(int16 value)
Convert int16 to char32.
static xtd::ulong to_ullong(int32 value)
Convert int32 to xtd::ulong.
static uint16 to_uint16(char8 value) noexcept
Convert char8 to uint16.
static xtd::ulong to_ullong(char8 value) noexcept
Convert char8 to xtd::ulong.
static decimal to_decimal(uint64 value) noexcept
Convert uint64 to decimal.
static int32 to_int32(char32 value) noexcept
Convert char32 to int32.
static std::any to_any(type_t value)
Convert type_t to bool.
Definition convert.h:255
static bool to_boolean(uint16 value) noexcept
Convert uint16 to bool.
static uint16 to_uint16(uint32 value)
Convert uint32 to uint16.
static bool to_boolean(char16 value)
Convert char16 to bool.
static uint16 to_uint16(float value)
Convert float to uint16.
static char32 to_char32(int64 value)
Convert int64 to char32.
static int16 to_int16(uint16 value)
Convert uint16 to int16.
static int16 to_int16(sbyte value) noexcept
Convert sbyte to int16.
static sbyte to_sbyte(std::any value)
Convert std::any to sbyte.
static char to_char(double value)
Convert double to char.
static uint64 to_uint64(float value)
Convert float to uint64.
static uint16 to_uint16(uint16 value) noexcept
Convert uint16 to uint16.
static uint32 to_uint32(int16 value)
Convert int16 to uint32.
static uint64 to_uint64(slong value)
Convert slong to uint64.
static slong to_llong(decimal value) noexcept
Convert decimal to slong.
static float to_single(float value) noexcept
Convert float to single.
static uint32 to_uint32(xtd::byte value) noexcept
Convert xtd::byte to uint32.
static char to_char(int32 value)
Convert int32 to char.
static int32 to_int32(decimal value)
Convert decimal to int32.
static float to_single(type_t value) noexcept
Convert type_t to single.
Definition convert.h:2636
static char32 to_char32(bool value)
Convert bool to char32.
static int64 to_int64(xtd::ulong value)
Convert slong to int64.
static ustring to_string(int32 value)
Convert int32 to ustring.
static sbyte to_sbyte(slong value)
Convert slong to sbyte.
static char16 to_char16(double value)
Convert double to char16.
static sbyte to_sbyte(type_t value) noexcept
Convert type_t to sbyte.
Definition convert.h:3873
static xtd::byte to_byte(char8 value) noexcept
Convert char8 to byte.
static uint64 to_uint64(uint16 value) noexcept
Convert uint16 to uint64.
static xtd::ulong to_ullong(wchar value) noexcept
Convert char32 to xtd::ulong.
static wchar to_wchar(type_t value) noexcept
Convert type_t to wchar.
Definition convert.h:1949
static char8 to_char8(decimal value)
Convert decimal to char8.
static decimal to_decimal(int64 value) noexcept
Convert int64 to decimal.
static char32 to_char32(slong value)
Convert slong to char32.
static char to_char(type_t value) noexcept
Convert type_t to char.
Definition convert.h:992
static sbyte to_sbyte(bool value) noexcept
Convert bool to sbyte.
static sbyte to_sbyte(sbyte value)
Convert sbyte to sbyte.
static std::any to_any(uint16 value) noexcept
Convert uint16 to std::any.
static ustring to_ustring(sbyte value)
Convert sbyte to ustring.
static int32 to_int32(bool value) noexcept
Convert bool to int32.
static ustring to_string(sbyte value, xtd::byte from_base)
Convert string to ustring.
static decimal to_decimal(char value) noexcept
Convert char to decimal.
static char16 to_char16(bool value)
Convert bool to char16.
static char16 to_char16(int16 value)
Convert int16 to char16.
static ustring to_string(uint16 value, xtd::byte from_base)
Convert string to ustring.
static sbyte to_sbyte(decimal value)
Convert decimal to sbyte.
static slong to_llong(int64 value) noexcept
Convert int64 to slong.
static uint16 to_uint16(int16 value)
Convert int16 to uint16.
static int64 to_int64(type_t value) noexcept
Convert type_t to int64.
Definition convert.h:3376
static char8 to_char8(uint16 value)
Convert uint16 to char8.
static std::any to_any(double value) noexcept
Convert double to std::any.
static int16 to_int16(double value)
Convert double to int16.
static ustring to_string(sbyte value)
Convert sbyte to ustring.
static char8 to_char8(xtd::byte value) noexcept
Convert xtd::byte to char8.
static float to_single(wchar value) noexcept
Convert char32 to single.
static int32 to_int32(const xtd::ustring &value, xtd::byte from_base)
Convert string to int32.
static double to_double(type_t value) noexcept
Convert type_t to double.
Definition convert.h:2407
static xtd::byte to_byte(decimal value)
Convert decimal to byte.
static int64 to_int64(sbyte value) noexcept
Convert sbyte to int64.
static char32 to_char32(char32 value) noexcept
Convert char32 to char32.
static char to_char(char8 value) noexcept
Convert char8 to char.
static ustring to_ustring(int64 value)
Convert int64 to ustring.
static char32 to_char32(const xtd::ustring &value)
Convert string to char32.
static ustring to_string(xtd::ulong value, xtd::byte from_base)
Convert string to ustring.
static uint16 to_uint16(decimal value)
Convert decimal to uint16.
static int64 to_int64(const xtd::ustring &value, xtd::byte from_base)
Convert string to int64.
static slong to_llong(char8 value) noexcept
Convert char8 to slong.
static double to_double(decimal value) noexcept
Convert decimal to double.
static decimal to_decimal(slong value) noexcept
Convert slong to decimal.
static uint64 to_uint64(bool value) noexcept
Convert bool to uint64.
static slong to_llong(double value) noexcept
Convert double to slong.
static double to_double(int16 value) noexcept
Convert int16 to double.
static sbyte to_sbyte(wchar value)
Convert char32 to sbyte.
static xtd::byte to_byte(wchar value)
Convert char32 to byte.
static xtd::ulong to_ullong(const xtd::ustring &value, xtd::byte from_base)
Convert string to xtd::ulong.
static xtd::ulong to_ullong(decimal value)
Convert decimal to xtd::ulong.
static bool to_boolean(int64 value) noexcept
Convert int64 to bool.
static double to_double(float value) noexcept
Convert float to double.
The exception that is thrown for invalid casting or explicit conversion.
Definition invalid_cast_exception.h:18
Represents text as a sequence of UTF-8 code units.
Definition ustring.h:47
#define static_
This keyword is use to represent a static object. A static object can't be instantiated (constructors...
Definition static.h:37
#define csf_
Provides information about the current stack frame.
Definition current_stack_frame.h:30
char8_t char8
Represents a 8-bit unicode character.
Definition types.h:64
wchar_t wchar
Represents a wide character.
Definition types.h:286
int_least16_t int16
Represents a 16-bit signed integer.
Definition types.h:120
long double decimal
Represents a decimal-precision floating-point number.
Definition types.h:98
__ulong__ ulong
Represents a 32-bit or 64-bit unsigned integer.
Definition types.h:274
char16_t char16
Represents a 16-bit unicode character.
Definition types.h:76
int_least8_t sbyte
Represents a 8-bit signed integer.
Definition types.h:175
int_least64_t int64
Represents a 64-bit signed integer.
Definition types.h:142
uint_least16_t uint16
Represents a 16-bit unsigned integer.
Definition types.h:230
int_least32_t int32
Represents a 32-bit signed integer.
Definition types.h:131
char32_t char32
Represents a 32-bit unicode character.
Definition types.h:87
uint_least64_t uint64
Represents a 64-bit unsigned integer.
Definition types.h:252
uint_least32_t uint32
Represents a 32-bit unsigned integer.
Definition types.h:241
__slong__ slong
Represents a 32-bit or 64-bit signed integer.
Definition types.h:208
uint_least8_t byte
Represents a 8-bit unsigned integer.
Definition types.h:41
Contains xtd::invalid_cast_exception exception.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10
Contains xtd::overflow_exception exception.
Contains xtd::static_object class.
Contains xtd fundamental types.
Contains xtd::ustring class.