66 #if defined(__cpp_lib_char8_t) 227 #if defined(__cpp_lib_char8_t) 235 #if defined(__cpp_lib_char8_t) 254 template<
typename type_t>
301 #if defined(__cpp_lib_char8_t) 360 static bool to_boolean(
double value) noexcept;
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>
770 static char to_char(
bool value);
788 static char to_char(
char value) noexcept;
789 #if defined(__cpp_lib_char8_t) 850 static char to_char(
double value);
861 static char to_char(
float value);
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);
2199 static double to_double(
bool value) noexcept;
2217 static double to_double(
char value) noexcept;
2218 #if defined(__cpp_lib_char8_t) 2275 static double to_double(
double value) noexcept;
2285 static double to_double(
float value) noexcept;
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);
2428 static float to_single(
bool value) noexcept;
2446 static float to_single(
char value) noexcept;
2447 #if defined(__cpp_lib_char8_t) 2504 static float to_single(
double value) noexcept;
2514 static float to_single(
float value) noexcept;
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 xtd::static_object class.
static int16 to_int16(type_t value) noexcept
Convert type_t to int16.
Definition: convert.h:2887
static sbyte to_sbyte(type_t value) noexcept
Convert type_t to sbyte.
Definition: convert.h:3873
Contains xtd fundamental types.
static uint64 to_uint64(std::any value)
Convert std::any to uint64.
static ustring to_string(std::any value)
Convert std::any to ustring.
int_least8_t sbyte
Represents a 8-bit signed integer.
Definition: types.h:173
#define static_
This keyword is use to represent a static object. A static object can't be instantiated (constructors...
Definition: static.h:37
long double decimal
Represents a decimal-precision floating-point number.
Definition: types.h:96
static xtd::byte to_byte(type_t value) noexcept
Convert type_t to byte.
Definition: convert.h:749
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
static char32 to_char32(type_t value) noexcept
Convert type_t to char32.
Definition: convert.h:1709
static int32 to_int32(std::any value)
Convert std::any to int32.
#define csf_
Provides information about the current stack frame.
Definition: current_stack_frame.h:30
uint_least16_t uint16
Represents a 16-bit unsigned integer.
Definition: types.h:228
static wchar to_wchar(std::any value)
Convert std::any to wchar.
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:46
static int16 to_int16(std::any value)
Convert std::any to int16.
static slong to_llong(std::any value)
Convert std::any to slong.
static sbyte to_sbyte(std::any value)
Convert std::any to sbyte.
static bool to_boolean(type_t value) noexcept
Convert type_t to bool.
Definition: convert.h:494
static char16 to_char16(type_t value) noexcept
Convert type_t to char16.
Definition: convert.h:1471
Contains std::any type and std::bad_any_cast exception.
static slong to_llong(type_t value) noexcept
Convert type_t to slong.
Definition: convert.h:3618
static bool to_boolean(std::any value)
Convert std::any to bool.
static char to_char(std::any value)
Convert std::any to char.
Represents API to convert base type code.
Definition: convert.h:25
static char8 to_char8(std::any value)
Convert std::any to char8.
static double to_double(std::any value)
Convert std::any to double.
static float to_single(std::any value)
Convert std::any to single.
static decimal to_decimal(std::any value)
Convert std::any to decimal.
static xtd::ulong to_ullong(type_t value) noexcept
Convert type_t to xtd::ulong.
Definition: convert.h:4871
static decimal to_decimal(type_t value) noexcept
Convert type_t to decimal.
Definition: convert.h:2178
Contains xtd::overflow_exception exception.
static xtd::byte to_byte(std::any value)
Convert std::any to byte.
static wchar to_wchar(type_t value) noexcept
Convert type_t to wchar.
Definition: convert.h:1949
static uint32 to_uint32(std::any value)
Convert std::any to uint32.
__slong__ slong
Represents a 32-bit or 64-bit signed integer.
Definition: types.h:206
static uint16 to_uint16(std::any value)
Convert std::any to uint16.
Contains xtd::ustring class.
static ustring to_ustring(std::any value)
Convert std::any to ustring.
static std::any to_any(std::any value) noexcept
Convert std::any to std::any.
Indicates that all styles except allow_binary_specifier, allow_octal_specifier and allow_hex_specifie...
int_least16_t int16
Represents a 16-bit signed integer.
Definition: types.h:118
static ustring to_string(type_t value) noexcept
Convert type_t to ustring.
Definition: convert.h:5218
static uint32 to_uint32(type_t value) noexcept
Convert type_t to uint32.
Definition: convert.h:4375
static char8 to_char8(type_t value) noexcept
Convert type_t to char8.
Definition: convert.h:1230
int_least32_t int32
Represents a 32-bit signed integer.
Definition: types.h:129
char32_t char32
Represents a 32-bit unicode character.
Definition: types.h:85
static float to_single(type_t value) noexcept
Convert type_t to single.
Definition: convert.h:2636
static char16 to_char16(std::any value)
Convert std::any to char16.
static char32 to_char32(std::any value)
Convert std::any to char32.
__ulong__ ulong
Represents a 32-bit or 64-bit unsigned integer.
Definition: types.h:272
The exception that is thrown for invalid casting or explicit conversion.
Definition: invalid_cast_exception.h:18
Contains xtd::invalid_cast_exception exception.
Contains xtd::argument_exception exception.
static std::any to_any(type_t value)
Convert type_t to bool.
Definition: convert.h:255
static uint16 to_uint16(type_t value) noexcept
Convert type_t to uint16.
Definition: convert.h:4125
static double to_double(type_t value) noexcept
Convert type_t to double.
Definition: convert.h:2407
uint_least64_t uint64
Represents a 64-bit unsigned integer.
Definition: types.h:250
char8_t char8
Represents a 8-bit unicode character.
Definition: types.h:62
int_least64_t int64
Represents a 64-bit signed integer.
Definition: types.h:140
uint_least8_t byte
Represents a 8-bit unsigned integer.
Definition: types.h:39
static int64 to_int64(std::any value)
Convert std::any to int64.
uint_least32_t uint32
Represents a 32-bit unsigned integer.
Definition: types.h:239
char16_t char16
Represents a 16-bit unicode character.
Definition: types.h:74
static int64 to_int64(type_t value) noexcept
Convert type_t to int64.
Definition: convert.h:3376
static ustring to_ustring(type_t value) noexcept
Convert type_t to ustring.
Definition: convert.h:5565
static char to_char(type_t value) noexcept
Convert type_t to char.
Definition: convert.h:992
static int32 to_int32(type_t value) noexcept
Convert type_t to int32.
Definition: convert.h:3134
wchar_t wchar
Represents a wide character.
Definition: types.h:284