xtd 0.2.0
Loading...
Searching...
No Matches
convert.h
Go to the documentation of this file.
1
4#pragma once
5#include "any.h"
7#include "format_exception.h"
10#include "static.h"
11#include "types.h"
12#include "string.h"
13#define __XTD_STD_INTERNAL__
15#undef __XTD_STD_INTERNAL__
16
18namespace xtd {
31 public:
33
43 static std::any to_any(std::any value) noexcept;
52 static std::any to_any(bool value) noexcept;
61 static std::any to_any(xtd::byte value) noexcept;
70 static std::any to_any(char value) noexcept;
71#if defined(__xtd__cpp_lib_char8_t)
81 static std::any to_any(char8 value);
82#endif
91 static std::any to_any(char16 value) noexcept;
100 static std::any to_any(char32 value) noexcept;
109 static std::any to_any(wchar value) noexcept;
118 static std::any to_any(decimal value) noexcept;
127 static std::any to_any(double value) noexcept;
139 static std::any to_any(float value) noexcept;
148 static std::any to_any(int16 value) noexcept;
157 static std::any to_any(int32 value) noexcept;
166 static std::any to_any(int64 value) noexcept;
175 static std::any to_any(slong value) noexcept;
184 static std::any to_any(sbyte value) noexcept;
193 static std::any to_any(uint16 value) noexcept;
202 static std::any to_any(uint32 value) noexcept;
211 static std::any to_any(uint64 value) noexcept;
220 static std::any to_any(xtd::ulong value) noexcept;
229 static std::any to_any(const xtd::string& value) noexcept;
231 static std::any to_any(const std::string& value) noexcept;
232#if defined(__xtd__cpp_lib_char8_t)
233 static std::any to_any(const std::u8string& value) noexcept;
234#endif
235 static std::any to_any(const std::u16string& value) noexcept;
236 static std::any to_any(const std::u32string& value) noexcept;
237 static std::any to_any(const std::wstring& value) noexcept;
238 static std::any to_any(const char* value) noexcept;
239 static std::any to_any(char* value) noexcept;
240#if defined(__xtd__cpp_lib_char8_t)
241 static std::any to_any(const char8* value);
242 static std::any to_any(char8* value);
243#endif
244 static std::any to_any(const char16* value) noexcept;
245 static std::any to_any(char16* value) noexcept;
246 static std::any to_any(const char32* value) noexcept;
247 static std::any to_any(char32* value) noexcept;
248 static std::any to_any(const wchar* value) noexcept;
249 static std::any to_any(wchar* value) noexcept;
259 template<typename type_t>
260 static std::any to_any(type_t value) {
261 try {
262 return std::any(value);
263 } catch (...) {
265 }
266 }
267
277 static bool to_boolean(std::any value);
286 static bool to_boolean(bool value) noexcept;
295 static bool to_boolean(xtd::byte value) noexcept;
305 static bool to_boolean(char value);
306#if defined(__xtd__cpp_lib_char8_t)
316 static bool to_boolean(char8 value);
317#endif
327 static bool to_boolean(char16 value);
337 static bool to_boolean(char32 value);
347 static bool to_boolean(wchar value);
356 static bool to_boolean(decimal value) noexcept;
365 static bool to_boolean(double value) noexcept;
377 static bool to_boolean(float value) noexcept;
386 static bool to_boolean(int16 value) noexcept;
395 static bool to_boolean(int32 value) noexcept;
404 static bool to_boolean(int64 value) noexcept;
413 static bool to_boolean(slong value) noexcept;
422 static bool to_boolean(sbyte value) noexcept;
431 static bool to_boolean(uint16 value) noexcept;
440 static bool to_boolean(uint32 value) noexcept;
449 static bool to_boolean(uint64 value) noexcept;
458 static bool to_boolean(xtd::ulong value) noexcept;
468 static bool to_boolean(const xtd::string& value);
470 static bool to_boolean(const std::string& value);
471#if defined(__xtd__cpp_lib_char8_t)
472 static bool to_boolean(const std::u8string& value);
473#endif
474 static bool to_boolean(const std::u16string& value);
475 static bool to_boolean(const std::u32string& value);
476 static bool to_boolean(const std::wstring& value);
477 static bool to_boolean(const char* value);
478 static bool to_boolean(char* value);
479#if defined(__xtd__cpp_lib_char8_t)
480 static bool to_boolean(const char8* value);
481 static bool to_boolean(char8* value);
482#endif
483 static bool to_boolean(const char16* value);
484 static bool to_boolean(char16* value);
485 static bool to_boolean(const char32* value);
486 static bool to_boolean(char32* value);
487 static bool to_boolean(const wchar* value);
488 static bool to_boolean(wchar* value);
498 template<typename type_t>
499 static bool to_boolean(type_t value) noexcept {
500 return static_cast<bool>(value);
501 }
502
511 static xtd::byte to_byte(std::any value);
520 static xtd::byte to_byte(bool value) noexcept;
529 static xtd::byte to_byte(xtd::byte value) noexcept;
538 static xtd::byte to_byte(char value) noexcept;
539#if defined(__xtd__cpp_lib_char8_t)
548 static xtd::byte to_byte(char8 value) noexcept;
549#endif
559 static xtd::byte to_byte(char16 value);
569 static xtd::byte to_byte(char32 value);
579 static xtd::byte to_byte(wchar value);
590 static xtd::byte to_byte(decimal value);
601 static xtd::byte to_byte(double value);
612 static xtd::byte to_byte(float value);
622 static xtd::byte to_byte(int16 value);
632 static xtd::byte to_byte(int32 value);
642 static xtd::byte to_byte(int64 value);
652 static xtd::byte to_byte(slong value);
662 static xtd::byte to_byte(sbyte value);
672 static xtd::byte to_byte(uint16 value);
682 static xtd::byte to_byte(uint32 value);
692 static xtd::byte to_byte(uint64 value);
712 static xtd::byte to_byte(const xtd::string& value);
723 static xtd::byte to_byte(const xtd::string& value, xtd::byte from_base);
725 static xtd::byte to_byte(const std::string& value);
726#if defined(__xtd__cpp_lib_char8_t)
727 static xtd::byte to_byte(const std::u8string& value);
728#endif
729 static xtd::byte to_byte(const std::u16string& value);
730 static xtd::byte to_byte(const std::u32string& value);
731 static xtd::byte to_byte(const std::wstring& value);
732 static xtd::byte to_byte(const char* value);
733 static xtd::byte to_byte(char* value);
734#if defined(__xtd__cpp_lib_char8_t)
735 static xtd::byte to_byte(const char8* value);
736 static xtd::byte to_byte(char8* value);
737#endif
738 static xtd::byte to_byte(const char16* value);
739 static xtd::byte to_byte(char16* value);
740 static xtd::byte to_byte(const char32* value);
741 static xtd::byte to_byte(char32* value);
742 static xtd::byte to_byte(const wchar* value);
743 static xtd::byte to_byte(wchar* value);
753 template<typename type_t>
754 static xtd::byte to_byte(type_t value) noexcept {
755 return static_cast<xtd::byte>(value);
756 }
757
766 static char to_char(std::any value);
775 static char to_char(bool value);
784 static char to_char(xtd::byte value) noexcept;
793 static char to_char(char value) noexcept;
794#if defined(__xtd__cpp_lib_char8_t)
803 static char to_char(char8 value) noexcept;
804#endif
814 static char to_char(char16 value);
824 static char to_char(char32 value);
834 static char to_char(wchar value);
844 static char to_char(decimal value);
855 static char to_char(double value);
866 static char to_char(float value);
876 static char to_char(int16 value);
886 static char to_char(int32 value);
896 static char to_char(int64 value);
906 static char to_char(slong value);
916 static char to_char(sbyte value);
926 static char to_char(uint16 value);
936 static char to_char(uint32 value);
946 static char to_char(uint64 value);
956 static char to_char(xtd::ulong value);
966 static char to_char(const xtd::string& value);
968 static char to_char(const std::string& value);
969#if defined(__xtd__cpp_lib_char8_t)
970 static char to_char(const std::u8string& value);
971#endif
972 static char to_char(const std::u16string& value);
973 static char to_char(const std::u32string& value);
974 static char to_char(const std::wstring& value);
975 static char to_char(const char* value);
976 static char to_char(char* value);
977#if defined(__xtd__cpp_lib_char8_t)
978 static char to_char(const char8* value);
979 static char to_char(char8* value);
980#endif
981 static char to_char(const char16* value);
982 static char to_char(char16* value);
983 static char to_char(const char32* value);
984 static char to_char(char32* value);
985 static char to_char(const wchar* value);
986 static char to_char(wchar* value);
996 template<typename type_t>
997 static char to_char(type_t value) noexcept {
998 return static_cast<char>(value);
999 }
1000
1001#if defined(__xtd__cpp_lib_char8_t)
1010 static char8 to_char8(std::any value);
1019 static char8 to_char8(bool value);
1028 static char8 to_char8(xtd::byte value) noexcept;
1037 static char8 to_char8(char value) noexcept;
1046 static char8 to_char8(char8 value) noexcept;
1056 static char8 to_char8(char16 value);
1066 static char8 to_char8(char32 value);
1076 static char8 to_char8(wchar value);
1086 static char8 to_char8(decimal value);
1097 static char8 to_char8(double value);
1108 static char8 to_char8(float value);
1118 static char8 to_char8(int16 value);
1128 static char8 to_char8(int32 value);
1138 static char8 to_char8(int64 value);
1148 static char8 to_char8(slong value);
1158 static char8 to_char8(sbyte value);
1168 static char8 to_char8(uint16 value);
1178 static char8 to_char8(uint32 value);
1188 static char8 to_char8(uint64 value);
1208 static char8 to_char8(const xtd::string& value);
1210 static char8 to_char8(const std::string& value);
1211 static char8 to_char8(const std::u8string& value);
1212 static char8 to_char8(const std::u16string& value);
1213 static char8 to_char8(const std::u32string& value);
1214 static char8 to_char8(const std::wstring& value);
1215 static char8 to_char8(const char* value);
1216 static char8 to_char8(char* value);
1217 static char8 to_char8(const char8* value);
1218 static char8 to_char8(char8* value);
1219 static char8 to_char8(const char16* value);
1220 static char8 to_char8(char16* value);
1221 static char8 to_char8(const char32* value);
1222 static char8 to_char8(char32* value);
1223 static char8 to_char8(const wchar* value);
1224 static char8 to_char8(wchar* value);
1234 template<typename type_t>
1235 static char8 to_char8(type_t value) noexcept {
1236 return static_cast<char8>(value);
1237 }
1238#endif
1239
1248 static char16 to_char16(std::any value);
1257 static char16 to_char16(bool value);
1266 static char16 to_char16(xtd::byte value) noexcept;
1275 static char16 to_char16(char value) noexcept;
1276#if defined(__xtd__cpp_lib_char8_t)
1285 static char16 to_char16(char8 value) noexcept;
1286#endif
1295 static char16 to_char16(char16 value) noexcept;
1305 static char16 to_char16(char32 value);
1314 static char16 to_char16(wchar value) noexcept;
1324 static char16 to_char16(decimal value);
1335 static char16 to_char16(double value);
1346 static char16 to_char16(float value);
1356 static char16 to_char16(int16 value);
1366 static char16 to_char16(int32 value);
1376 static char16 to_char16(int64 value);
1386 static char16 to_char16(slong value);
1396 static char16 to_char16(sbyte value);
1405 static char16 to_char16(uint16 value) noexcept;
1415 static char16 to_char16(uint32 value);
1425 static char16 to_char16(uint64 value);
1445 static char16 to_char16(const xtd::string& value);
1447 static char16 to_char16(const std::string& value);
1448#if defined(__xtd__cpp_lib_char8_t)
1449 static char16 to_char16(const std::u8string& value);
1450#endif
1451 static char16 to_char16(const std::u16string& value);
1452 static char16 to_char16(const std::u32string& value);
1453 static char16 to_char16(const std::wstring& value);
1454 static char16 to_char16(const char* value);
1455 static char16 to_char16(char* value);
1456#if defined(__xtd__cpp_lib_char8_t)
1457 static char16 to_char16(const char8* value);
1458 static char16 to_char16(char8* value);
1459#endif
1460 static char16 to_char16(const char16* value);
1461 static char16 to_char16(char16* value);
1462 static char16 to_char16(const char32* value);
1463 static char16 to_char16(char32* value);
1464 static char16 to_char16(const wchar* value);
1465 static char16 to_char16(wchar* value);
1475 template<typename type_t>
1476 static char16 to_char16(type_t value) noexcept {
1477 return static_cast<char16>(value);
1478 }
1479
1488 static char32 to_char32(std::any value);
1497 static char32 to_char32(bool value);
1506 static char32 to_char32(xtd::byte value) noexcept;
1515 static char32 to_char32(char value) noexcept;
1516#if defined(__xtd__cpp_lib_char8_t)
1525 static char32 to_char32(char8 value) noexcept;
1526#endif
1535 static char32 to_char32(char16 value) noexcept;
1544 static char32 to_char32(char32 value) noexcept;
1553 static char32 to_char32(wchar value) noexcept;
1563 static char32 to_char32(decimal value);
1574 static char32 to_char32(double value);
1585 static char32 to_char32(float value);
1595 static char32 to_char32(int16 value);
1605 static char32 to_char32(int32 value);
1615 static char32 to_char32(int64 value);
1625 static char32 to_char32(slong value);
1635 static char32 to_char32(sbyte value);
1644 static char32 to_char32(uint16 value) noexcept;
1653 static char32 to_char32(uint32 value) noexcept;
1663 static char32 to_char32(uint64 value);
1683 static char32 to_char32(const xtd::string& value);
1685 static char32 to_char32(const std::string& value);
1686#if defined(__xtd__cpp_lib_char8_t)
1687 static char32 to_char32(const std::u8string& value);
1688#endif
1689 static char32 to_char32(const std::u16string& value);
1690 static char32 to_char32(const std::u32string& value);
1691 static char32 to_char32(const std::wstring& value);
1692 static char32 to_char32(const char* value);
1693 static char32 to_char32(char* value);
1694#if defined(__xtd__cpp_lib_char8_t)
1695 static char32 to_char32(const char8* value);
1696 static char32 to_char32(char8* value);
1697#endif
1698 static char32 to_char32(const char16* value);
1699 static char32 to_char32(char16* value);
1700 static char32 to_char32(const char32* value);
1701 static char32 to_char32(char32* value);
1702 static char32 to_char32(const wchar* value);
1703 static char32 to_char32(wchar* value);
1713 template<typename type_t>
1714 static char32 to_char32(type_t value) noexcept {
1715 return static_cast<char32>(value);
1716 }
1717
1726 static wchar to_wchar(std::any value);
1735 static wchar to_wchar(bool value);
1744 static wchar to_wchar(xtd::byte value) noexcept;
1753 static wchar to_wchar(char value) noexcept;
1754#if defined(__xtd__cpp_lib_char8_t)
1763 static wchar to_wchar(char8 value) noexcept;
1764#endif
1773 static wchar to_wchar(char16 value) noexcept;
1783 static wchar to_wchar(char32 value);
1792 static wchar to_wchar(wchar value) noexcept;
1802 static wchar to_wchar(decimal value);
1813 static wchar to_wchar(double value);
1824 static wchar to_wchar(float value);
1834 static wchar to_wchar(int16 value);
1844 static wchar to_wchar(int32 value);
1854 static wchar to_wchar(int64 value);
1864 static wchar to_wchar(slong value);
1874 static wchar to_wchar(sbyte value);
1883 static wchar to_wchar(uint16 value) noexcept;
1893 static wchar to_wchar(uint32 value);
1903 static wchar to_wchar(uint64 value);
1923 static wchar to_wchar(const xtd::string& value);
1925 static wchar to_wchar(const std::string& value);
1926#if defined(__xtd__cpp_lib_char8_t)
1927 static wchar to_wchar(const std::u8string& value);
1928#endif
1929 static wchar to_wchar(const std::u16string& value);
1930 static wchar to_wchar(const std::u32string& value);
1931 static wchar to_wchar(const std::wstring& value);
1932 static wchar to_wchar(const char* value);
1933 static wchar to_wchar(char* value);
1934#if defined(__xtd__cpp_lib_char8_t)
1935 static wchar to_wchar(const char8* value);
1936 static wchar to_wchar(char8* value);
1937#endif
1938 static wchar to_wchar(const char16* value);
1939 static wchar to_wchar(char16* value);
1940 static wchar to_wchar(const char32* value);
1941 static wchar to_wchar(char32* value);
1942 static wchar to_wchar(const wchar* value);
1943 static wchar to_wchar(wchar* value);
1953 template<typename type_t>
1954 static wchar to_wchar(type_t value) noexcept {
1955 return static_cast<wchar>(value);
1956 }
1957
1966 static decimal to_decimal(std::any value);
1975 static decimal to_decimal(bool value) noexcept;
1984 static decimal to_decimal(xtd::byte value) noexcept;
1993 static decimal to_decimal(char value) noexcept;
1994#if defined(__xtd__cpp_lib_char8_t)
2003 static decimal to_decimal(char8 value) noexcept;
2004#endif
2013 static decimal to_decimal(char16 value) noexcept;
2022 static decimal to_decimal(char32 value) noexcept;
2031 static decimal to_decimal(wchar value) noexcept;
2041 static decimal to_decimal(decimal value) noexcept;
2051 static decimal to_decimal(double value) noexcept;
2061 static decimal to_decimal(float value) noexcept;
2070 static decimal to_decimal(int16 value) noexcept;
2079 static decimal to_decimal(int32 value) noexcept;
2088 static decimal to_decimal(int64 value) noexcept;
2097 static decimal to_decimal(slong value) noexcept;
2106 static decimal to_decimal(sbyte value) noexcept;
2115 static decimal to_decimal(uint16 value) noexcept;
2124 static decimal to_decimal(uint32 value) noexcept;
2133 static decimal to_decimal(uint64 value) noexcept;
2142 static decimal to_decimal(xtd::ulong value) noexcept;
2152 static decimal to_decimal(const xtd::string& value);
2154 static decimal to_decimal(const std::string& value);
2155#if defined(__xtd__cpp_lib_char8_t)
2156 static decimal to_decimal(const std::u8string& value);
2157#endif
2158 static decimal to_decimal(const std::u16string& value);
2159 static decimal to_decimal(const std::u32string& value);
2160 static decimal to_decimal(const std::wstring& value);
2161 static decimal to_decimal(const char* value);
2162 static decimal to_decimal(char* value);
2163#if defined(__xtd__cpp_lib_char8_t)
2164 static decimal to_decimal(const char8* value);
2165 static decimal to_decimal(char8* value);
2166#endif
2167 static decimal to_decimal(const char16* value);
2168 static decimal to_decimal(char16* value);
2169 static decimal to_decimal(const char32* value);
2170 static decimal to_decimal(char32* value);
2171 static decimal to_decimal(const wchar* value);
2172 static decimal to_decimal(wchar* value);
2182 template<typename type_t>
2183 static decimal to_decimal(type_t value) noexcept {
2184 return static_cast<decimal>(value);
2185 }
2186
2195 static double to_double(std::any value);
2204 static double to_double(bool value) noexcept;
2213 static double to_double(xtd::byte value) noexcept;
2222 static double to_double(char value) noexcept;
2223#if defined(__xtd__cpp_lib_char8_t)
2232 static double to_double(char8 value) noexcept;
2233#endif
2242 static double to_double(char16 value) noexcept;
2251 static double to_double(char32 value) noexcept;
2260 static double to_double(wchar value) noexcept;
2270 static double to_double(decimal value) noexcept;
2280 static double to_double(double value) noexcept;
2290 static double to_double(float value) noexcept;
2299 static double to_double(int16 value) noexcept;
2308 static double to_double(int32 value) noexcept;
2317 static double to_double(int64 value) noexcept;
2326 static double to_double(slong value) noexcept;
2335 static double to_double(sbyte value) noexcept;
2344 static double to_double(uint16 value) noexcept;
2353 static double to_double(uint32 value) noexcept;
2362 static double to_double(uint64 value) noexcept;
2371 static double to_double(xtd::ulong value) noexcept;
2381 static double to_double(const xtd::string& value);
2383 static double to_double(const std::string& value);
2384#if defined(__xtd__cpp_lib_char8_t)
2385 static double to_double(const std::u8string& value);
2386#endif
2387 static double to_double(const std::u16string& value);
2388 static double to_double(const std::u32string& value);
2389 static double to_double(const std::wstring& value);
2390 static double to_double(const char* value);
2391 static double to_double(char* value);
2392#if defined(__xtd__cpp_lib_char8_t)
2393 static double to_double(const char8* value);
2394 static double to_double(char8* value);
2395#endif
2396 static double to_double(const char16* value);
2397 static double to_double(char16* value);
2398 static double to_double(const char32* value);
2399 static double to_double(char32* value);
2400 static double to_double(const wchar* value);
2401 static double to_double(wchar* value);
2411 template<typename type_t>
2412 static double to_double(type_t value) noexcept {
2413 return static_cast<double>(value);
2414 }
2415
2424 static float to_single(std::any value);
2433 static float to_single(bool value) noexcept;
2442 static float to_single(xtd::byte value) noexcept;
2451 static float to_single(char value) noexcept;
2452#if defined(__xtd__cpp_lib_char8_t)
2461 static float to_single(char8 value) noexcept;
2462#endif
2471 static float to_single(char16 value) noexcept;
2480 static float to_single(char32 value) noexcept;
2489 static float to_single(wchar value) noexcept;
2499 static float to_single(decimal value) noexcept;
2509 static float to_single(double value) noexcept;
2519 static float to_single(float value) noexcept;
2528 static float to_single(int16 value) noexcept;
2537 static float to_single(int32 value) noexcept;
2546 static float to_single(int64 value) noexcept;
2555 static float to_single(slong value) noexcept;
2564 static float to_single(sbyte value) noexcept;
2573 static float to_single(uint16 value) noexcept;
2582 static float to_single(uint32 value) noexcept;
2591 static float to_single(uint64 value) noexcept;
2600 static float to_single(xtd::ulong value) noexcept;
2610 static float to_single(const xtd::string& value);
2612 static float to_single(const std::string& value);
2613#if defined(__xtd__cpp_lib_char8_t)
2614 static float to_single(const std::u8string& value);
2615#endif
2616 static float to_single(const std::u16string& value);
2617 static float to_single(const std::u32string& value);
2618 static float to_single(const std::wstring& value);
2619 static float to_single(const char* value);
2620 static float to_single(char* value);
2621#if defined(__xtd__cpp_lib_char8_t)
2622 static float to_single(const char8* value);
2623 static float to_single(char8* value);
2624#endif
2625 static float to_single(const char16* value);
2626 static float to_single(char16* value);
2627 static float to_single(const char32* value);
2628 static float to_single(char32* value);
2629 static float to_single(const wchar* value);
2630 static float to_single(wchar* value);
2640 template<typename type_t>
2641 static float to_single(type_t value) noexcept {
2642 return static_cast<float>(value);
2643 }
2644
2653 static int16 to_int16(std::any value);
2662 static int16 to_int16(bool value) noexcept;
2671 static int16 to_int16(xtd::byte value) noexcept;
2680 static int16 to_int16(char value) noexcept;
2681#if defined(__xtd__cpp_lib_char8_t)
2690 static int16 to_int16(char8 value) noexcept;
2691#endif
2700 static int16 to_int16(char16 value) noexcept;
2710 static int16 to_int16(char32 value);
2719 static int16 to_int16(wchar value) noexcept;
2730 static int16 to_int16(decimal value);
2741 static int16 to_int16(double value);
2752 static int16 to_int16(float value);
2761 static int16 to_int16(int16 value) noexcept;
2771 static int16 to_int16(int32 value);
2781 static int16 to_int16(int64 value);
2791 static int16 to_int16(slong value);
2800 static int16 to_int16(sbyte value) noexcept;
2810 static int16 to_int16(uint16 value);
2820 static int16 to_int16(uint32 value);
2830 static int16 to_int16(uint64 value);
2850 static int16 to_int16(const xtd::string& value);
2861 static int16 to_int16(const xtd::string& value, xtd::byte from_base);
2863 static int16 to_int16(const std::string& value);
2864#if defined(__xtd__cpp_lib_char8_t)
2865 static int16 to_int16(const std::u8string& value);
2866#endif
2867 static int16 to_int16(const std::u16string& value);
2868 static int16 to_int16(const std::u32string& value);
2869 static int16 to_int16(const std::wstring& value);
2870 static int16 to_int16(const char* value);
2871 static int16 to_int16(char* value);
2872#if defined(__xtd__cpp_lib_char8_t)
2873 static int16 to_int16(const char8* value);
2874 static int16 to_int16(char8* value);
2875#endif
2876 static int16 to_int16(const char16* value);
2877 static int16 to_int16(char16* value);
2878 static int16 to_int16(const char32* value);
2879 static int16 to_int16(char32* value);
2880 static int16 to_int16(const wchar* value);
2881 static int16 to_int16(wchar* value);
2891 template<typename type_t>
2892 static int16 to_int16(type_t value) noexcept {
2893 return static_cast<int16>(value);
2894 }
2895
2904 static int32 to_int32(std::any value);
2913 static int32 to_int32(bool value) noexcept;
2922 static int32 to_int32(xtd::byte value) noexcept;
2931 static int32 to_int32(char value) noexcept;
2932#if defined(__xtd__cpp_lib_char8_t)
2941 static int32 to_int32(char8 value) noexcept;
2942#endif
2951 static int32 to_int32(char16 value) noexcept;
2960 static int32 to_int32(char32 value) noexcept;
2969 static int32 to_int32(wchar value) noexcept;
2980 static int32 to_int32(decimal value);
2991 static int32 to_int32(double value);
3001 static int32 to_int32(float value) noexcept;
3010 static int32 to_int32(int16 value) noexcept;
3020 static int32 to_int32(int32 value) noexcept;
3029 static int32 to_int32(int64 value);
3039 static int32 to_int32(slong value);
3048 static int32 to_int32(sbyte value) noexcept;
3057 static int32 to_int32(uint16 value) noexcept;
3067 static int32 to_int32(uint32 value);
3077 static int32 to_int32(uint64 value);
3097 static int32 to_int32(const xtd::string& value);
3108 static int32 to_int32(const xtd::string& value, xtd::byte from_base);
3110 static int32 to_int32(const std::string& value);
3111#if defined(__xtd__cpp_lib_char8_t)
3112 static int32 to_int32(const std::u8string& value);
3113#endif
3114 static int32 to_int32(const std::u16string& value);
3115 static int32 to_int32(const std::u32string& value);
3116 static int32 to_int32(const std::wstring& value);
3117 static int32 to_int32(const char* value);
3118 static int32 to_int32(char* value);
3119#if defined(__xtd__cpp_lib_char8_t)
3120 static int32 to_int32(const char8* value);
3121 static int32 to_int32(char8* value);
3122#endif
3123 static int32 to_int32(const char16* value);
3124 static int32 to_int32(char16* value);
3125 static int32 to_int32(const char32* value);
3126 static int32 to_int32(char32* value);
3127 static int32 to_int32(const wchar* value);
3128 static int32 to_int32(wchar* value);
3138 template<typename type_t>
3139 static int32 to_int32(type_t value) noexcept {
3140 return static_cast<int32>(value);
3141 }
3142
3151 static int64 to_int64(std::any value);
3160 static int64 to_int64(bool value) noexcept;
3169 static int64 to_int64(xtd::byte value) noexcept;
3178 static int64 to_int64(char value) noexcept;
3179#if defined(__xtd__cpp_lib_char8_t)
3188 static int64 to_int64(char8 value) noexcept;
3189#endif
3198 static int64 to_int64(char16 value) noexcept;
3207 static int64 to_int64(char32 value) noexcept;
3216 static int64 to_int64(wchar value) noexcept;
3226 static int64 to_int64(decimal value) noexcept;
3236 static int64 to_int64(double value) noexcept;
3246 static int64 to_int64(float value) noexcept;
3255 static int64 to_int64(int16 value) noexcept;
3264 static int64 to_int64(int32 value) noexcept;
3273 static int64 to_int64(int64 value) noexcept;
3282 static int64 to_int64(slong value) noexcept;
3291 static int64 to_int64(sbyte value) noexcept;
3300 static int64 to_int64(uint16 value) noexcept;
3309 static int64 to_int64(uint32 value) noexcept;
3319 static int64 to_int64(uint64 value);
3339 static int64 to_int64(const xtd::string& value);
3350 static int64 to_int64(const xtd::string& value, xtd::byte from_base);
3352 static int64 to_int64(const std::string& value);
3353#if defined(__xtd__cpp_lib_char8_t)
3354 static int64 to_int64(const std::u8string& value);
3355#endif
3356 static int64 to_int64(const std::u16string& value);
3357 static int64 to_int64(const std::u32string& value);
3358 static int64 to_int64(const std::wstring& value);
3359 static int64 to_int64(const char* value);
3360 static int64 to_int64(char* value);
3361#if defined(__xtd__cpp_lib_char8_t)
3362 static int64 to_int64(const char8* value);
3363 static int64 to_int64(char8* value);
3364#endif
3365 static int64 to_int64(const char16* value);
3366 static int64 to_int64(char16* value);
3367 static int64 to_int64(const char32* value);
3368 static int64 to_int64(char32* value);
3369 static int64 to_int64(const wchar* value);
3370 static int64 to_int64(wchar* value);
3380 template<typename type_t>
3381 static int64 to_int64(type_t value) noexcept {
3382 return static_cast<int64>(value);
3383 }
3384
3393 static slong to_llong(std::any value);
3402 static slong to_llong(bool value) noexcept;
3411 static slong to_llong(xtd::byte value) noexcept;
3420 static slong to_llong(char value) noexcept;
3421#if defined(__xtd__cpp_lib_char8_t)
3430 static slong to_llong(char8 value) noexcept;
3431#endif
3440 static slong to_llong(char16 value) noexcept;
3449 static slong to_llong(char32 value) noexcept;
3458 static slong to_llong(wchar value) noexcept;
3468 static slong to_llong(decimal value) noexcept;
3478 static slong to_llong(double value) noexcept;
3488 static slong to_llong(float value) noexcept;
3497 static slong to_llong(int16 value) noexcept;
3506 static slong to_llong(int32 value) noexcept;
3515 static slong to_llong(int64 value) noexcept;
3524 static slong to_llong(slong value) noexcept;
3533 static slong to_llong(sbyte value) noexcept;
3542 static slong to_llong(uint16 value) noexcept;
3551 static slong to_llong(uint32 value) noexcept;
3561 static slong to_llong(uint64 value);
3581 static slong to_llong(const xtd::string& value);
3592 static slong to_llong(const xtd::string& value, xtd::byte from_base);
3594 static slong to_llong(const std::string& value);
3595#if defined(__xtd__cpp_lib_char8_t)
3596 static slong to_llong(const std::u8string& value);
3597#endif
3598 static slong to_llong(const std::u16string& value);
3599 static slong to_llong(const std::u32string& value);
3600 static slong to_llong(const std::wstring& value);
3601 static slong to_llong(const char* value);
3602 static slong to_llong(char* value);
3603#if defined(__xtd__cpp_lib_char8_t)
3604 static slong to_llong(const char8* value);
3605 static slong to_llong(char8* value);
3606#endif
3607 static slong to_llong(const char16* value);
3608 static slong to_llong(char16* value);
3609 static slong to_llong(const char32* value);
3610 static slong to_llong(char32* value);
3611 static slong to_llong(const wchar* value);
3612 static slong to_llong(wchar* value);
3622 template<typename type_t>
3623 static slong to_llong(type_t value) noexcept {
3624 return static_cast<slong>(value);
3625 }
3626
3635 static sbyte to_sbyte(std::any value);
3644 static sbyte to_sbyte(bool value) noexcept;
3653 static sbyte to_sbyte(xtd::byte value) noexcept;
3662 static sbyte to_sbyte(char value) noexcept;
3663#if defined(__xtd__cpp_lib_char8_t)
3672 static sbyte to_sbyte(char8 value) noexcept;
3673#endif
3683 static sbyte to_sbyte(char16 value);
3693 static sbyte to_sbyte(char32 value);
3703 static sbyte to_sbyte(wchar value);
3714 static sbyte to_sbyte(decimal value);
3725 static sbyte to_sbyte(double value);
3736 static sbyte to_sbyte(float value);
3746 static sbyte to_sbyte(int16 value);
3756 static sbyte to_sbyte(int32 value);
3766 static sbyte to_sbyte(int64 value);
3776 static sbyte to_sbyte(slong value);
3786 static sbyte to_sbyte(sbyte value);
3796 static sbyte to_sbyte(uint16 value);
3806 static sbyte to_sbyte(uint32 value);
3816 static sbyte to_sbyte(uint64 value);
3836 static sbyte to_sbyte(const xtd::string& value);
3847 static sbyte to_sbyte(const xtd::string& value, xtd::byte from_base);
3849 static sbyte to_sbyte(const std::string& value);
3850#if defined(__xtd__cpp_lib_char8_t)
3851 static sbyte to_sbyte(const std::u8string& value);
3852#endif
3853 static sbyte to_sbyte(const std::u16string& value);
3854 static sbyte to_sbyte(const std::u32string& value);
3855 static sbyte to_sbyte(const std::wstring& value);
3856 static sbyte to_sbyte(const char* value);
3857 static sbyte to_sbyte(char* value);
3858#if defined(__xtd__cpp_lib_char8_t)
3859 static sbyte to_sbyte(const char8* value);
3860 static sbyte to_sbyte(char8* value);
3861#endif
3862 static sbyte to_sbyte(const char16* value);
3863 static sbyte to_sbyte(char16* value);
3864 static sbyte to_sbyte(const char32* value);
3865 static sbyte to_sbyte(char32* value);
3866 static sbyte to_sbyte(const wchar* value);
3867 static sbyte to_sbyte(wchar* value);
3877 template<typename type_t>
3878 static sbyte to_sbyte(type_t value) noexcept {
3879 return static_cast<sbyte>(value);
3880 }
3881
3890 static uint16 to_uint16(std::any value);
3899 static uint16 to_uint16(bool value) noexcept;
3908 static uint16 to_uint16(xtd::byte value) noexcept;
3917 static uint16 to_uint16(char value) noexcept;
3918#if defined(__xtd__cpp_lib_char8_t)
3927 static uint16 to_uint16(char8 value) noexcept;
3928#endif
3937 static uint16 to_uint16(char16 value) noexcept;
3947 static uint16 to_uint16(char32 value);
3956 static uint16 to_uint16(wchar value) noexcept;
3967 static uint16 to_uint16(decimal value);
3978 static uint16 to_uint16(double value);
3989 static uint16 to_uint16(float value);
3999 static uint16 to_uint16(int16 value);
4009 static uint16 to_uint16(int32 value);
4019 static uint16 to_uint16(int64 value);
4029 static uint16 to_uint16(slong value);
4039 static uint16 to_uint16(sbyte value);
4048 static uint16 to_uint16(uint16 value) noexcept;
4058 static uint16 to_uint16(uint32 value);
4068 static uint16 to_uint16(uint64 value);
4088 static uint16 to_uint16(const xtd::string& value);
4099 static uint16 to_uint16(const xtd::string& value, xtd::byte from_base);
4101 static uint16 to_uint16(const std::string& value);
4102#if defined(__xtd__cpp_lib_char8_t)
4103 static uint16 to_uint16(const std::u8string& value);
4104#endif
4105 static uint16 to_uint16(const std::u16string& value);
4106 static uint16 to_uint16(const std::u32string& value);
4107 static uint16 to_uint16(const std::wstring& value);
4108 static uint16 to_uint16(const char* value);
4109 static uint16 to_uint16(char* value);
4110#if defined(__xtd__cpp_lib_char8_t)
4111 static uint16 to_uint16(const char8* value);
4112 static uint16 to_uint16(char8* value);
4113#endif
4114 static uint16 to_uint16(const char16* value);
4115 static uint16 to_uint16(char16* value);
4116 static uint16 to_uint16(const char32* value);
4117 static uint16 to_uint16(char32* value);
4118 static uint16 to_uint16(const wchar* value);
4119 static uint16 to_uint16(wchar* value);
4129 template<typename type_t>
4130 static uint16 to_uint16(type_t value) noexcept {
4131 return static_cast<uint16>(value);
4132 }
4133
4142 static uint32 to_uint32(std::any value);
4151 static uint32 to_uint32(bool value) noexcept;
4160 static uint32 to_uint32(xtd::byte value) noexcept;
4169 static uint32 to_uint32(char value) noexcept;
4170#if defined(__xtd__cpp_lib_char8_t)
4179 static uint32 to_uint32(char8 value) noexcept;
4180#endif
4189 static uint32 to_uint32(char16 value) noexcept;
4198 static uint32 to_uint32(char32 value) noexcept;
4207 static uint32 to_uint32(wchar value) noexcept;
4218 static uint32 to_uint32(decimal value);
4229 static uint32 to_uint32(double value);
4240 static uint32 to_uint32(float value);
4250 static uint32 to_uint32(int16 value);
4260 static uint32 to_uint32(int32 value);
4270 static uint32 to_uint32(int64 value);
4280 static uint32 to_uint32(slong value);
4290 static uint32 to_uint32(sbyte value);
4299 static uint32 to_uint32(uint16 value) noexcept;
4308 static uint32 to_uint32(uint32 value) noexcept;
4318 static uint32 to_uint32(uint64 value);
4338 static uint32 to_uint32(const xtd::string& value);
4349 static uint32 to_uint32(const xtd::string& value, xtd::byte from_base);
4351 static uint32 to_uint32(const std::string& value);
4352#if defined(__xtd__cpp_lib_char8_t)
4353 static uint32 to_uint32(const std::u8string& value);
4354#endif
4355 static uint32 to_uint32(const std::u16string& value);
4356 static uint32 to_uint32(const std::u32string& value);
4357 static uint32 to_uint32(const std::wstring& value);
4358 static uint32 to_uint32(const char* value);
4359 static uint32 to_uint32(char* value);
4360#if defined(__xtd__cpp_lib_char8_t)
4361 static uint32 to_uint32(const char8* value);
4362 static uint32 to_uint32(char8* value);
4363#endif
4364 static uint32 to_uint32(const char16* value);
4365 static uint32 to_uint32(char16* value);
4366 static uint32 to_uint32(const char32* value);
4367 static uint32 to_uint32(char32* value);
4368 static uint32 to_uint32(const wchar* value);
4369 static uint32 to_uint32(wchar* value);
4379 template<typename type_t>
4380 static uint32 to_uint32(type_t value) noexcept {
4381 return static_cast<uint32>(value);
4382 }
4383
4392 static uint64 to_uint64(std::any value);
4401 static uint64 to_uint64(bool value) noexcept;
4410 static uint64 to_uint64(xtd::byte value) noexcept;
4419 static uint64 to_uint64(char value) noexcept;
4420#if defined(__xtd__cpp_lib_char8_t)
4429 static uint64 to_uint64(char8 value) noexcept;
4430#endif
4439 static uint64 to_uint64(char16 value) noexcept;
4448 static uint64 to_uint64(char32 value) noexcept;
4457 static uint64 to_uint64(wchar value) noexcept;
4468 static uint64 to_uint64(decimal value);
4479 static uint64 to_uint64(double value);
4490 static uint64 to_uint64(float value);
4500 static uint64 to_uint64(int16 value);
4510 static uint64 to_uint64(int32 value);
4520 static uint64 to_uint64(int64 value);
4530 static uint64 to_uint64(slong value);
4540 static uint64 to_uint64(sbyte value);
4549 static uint64 to_uint64(uint16 value) noexcept;
4558 static uint64 to_uint64(uint32 value) noexcept;
4568 static uint64 to_uint64(uint64 value) noexcept;
4577 static uint64 to_uint64(xtd::ulong value) noexcept;
4586 static uint64 to_uint64(const xtd::string& value);
4597 static uint64 to_uint64(const xtd::string& value, xtd::byte from_base);
4599 static uint64 to_uint64(const std::string& value);
4600#if defined(__xtd__cpp_lib_char8_t)
4601 static uint64 to_uint64(const std::u8string& value);
4602#endif
4603 static uint64 to_uint64(const std::u16string& value);
4604 static uint64 to_uint64(const std::u32string& value);
4605 static uint64 to_uint64(const std::wstring& value);
4606 static uint64 to_uint64(const char* value);
4607 static uint64 to_uint64(char* value);
4608#if defined(__xtd__cpp_lib_char8_t)
4609 static uint64 to_uint64(const char8* value);
4610 static uint64 to_uint64(char8* value);
4611#endif
4612 static uint64 to_uint64(const char16* value);
4613 static uint64 to_uint64(char16* value);
4614 static uint64 to_uint64(const char32* value);
4615 static uint64 to_uint64(char32* value);
4616 static uint64 to_uint64(const wchar* value);
4617 static uint64 to_uint64(wchar* value);
4627 template<typename type_t>
4628 static uint64 to_uint64(type_t value) noexcept {
4629 return static_cast<uint64>(value);
4630 }
4631
4640 static xtd::ulong to_ullong(std::any value);
4649 static xtd::ulong to_ullong(bool value) noexcept;
4658 static xtd::ulong to_ullong(xtd::byte value) noexcept;
4667 static xtd::ulong to_ullong(char value) noexcept;
4668#if defined(__xtd__cpp_lib_char8_t)
4677 static xtd::ulong to_ullong(char8 value) noexcept;
4678#endif
4687 static xtd::ulong to_ullong(char16 value) noexcept;
4696 static xtd::ulong to_ullong(char32 value) noexcept;
4705 static xtd::ulong to_ullong(wchar value) noexcept;
4727 static xtd::ulong to_ullong(double value);
4738 static xtd::ulong to_ullong(float value);
4797 static xtd::ulong to_ullong(uint16 value) noexcept;
4806 static xtd::ulong to_ullong(uint32 value) noexcept;
4816 static xtd::ulong to_ullong(uint64 value) noexcept;
4825 static xtd::ulong to_ullong(xtd::ulong value) noexcept;
4834 static xtd::ulong to_ullong(const xtd::string& value);
4845 static xtd::ulong to_ullong(const xtd::string& value, xtd::byte from_base);
4847 static xtd::ulong to_ullong(const std::string& value);
4848#if defined(__xtd__cpp_lib_char8_t)
4849 static xtd::ulong to_ullong(const std::u8string& value);
4850#endif
4851 static xtd::ulong to_ullong(const std::u16string& value);
4852 static xtd::ulong to_ullong(const std::u32string& value);
4853 static xtd::ulong to_ullong(const std::wstring& value);
4854 static xtd::ulong to_ullong(const char* value);
4855 static xtd::ulong to_ullong(char* value);
4856#if defined(__xtd__cpp_lib_char8_t)
4857 static xtd::ulong to_ullong(const char8* value);
4858 static xtd::ulong to_ullong(char8* value);
4859#endif
4860 static xtd::ulong to_ullong(const char16* value);
4861 static xtd::ulong to_ullong(char16* value);
4862 static xtd::ulong to_ullong(const char32* value);
4863 static xtd::ulong to_ullong(char32* value);
4864 static xtd::ulong to_ullong(const wchar* value);
4865 static xtd::ulong to_ullong(wchar* value);
4875 template<typename type_t>
4876 static xtd::ulong to_ullong(type_t value) noexcept {
4877 return static_cast<xtd::ulong>(value);
4878 }
4879
4888 static string to_string(std::any value);
4897 static string to_string(bool value) noexcept;
4906 static string to_string(xtd::byte value) noexcept;
4917 static string to_string(xtd::byte value, xtd::byte from_base);
4926 static string to_string(char value) noexcept;
4927#if defined(__xtd__cpp_lib_char8_t)
4936 static string to_string(char8 value) noexcept;
4937#endif
4946 static string to_string(char16 value) noexcept;
4955 static string to_string(char32 value) noexcept;
4964 static string to_string(wchar value) noexcept;
4975 static string to_string(decimal value);
4986 static string to_string(double value);
4997 static string to_string(float value);
5007 static string to_string(int16 value);
5018 static string to_string(int16 value, xtd::byte from_base);
5028 static string to_string(int32 value);
5039 static string to_string(int32 value, xtd::byte from_base);
5049 static string to_string(int64 value);
5060 static string to_string(int64 value, xtd::byte from_base);
5070 static string to_string(slong value);
5081 static string to_string(slong value, xtd::byte from_base);
5091 static string to_string(sbyte value);
5102 static string to_string(sbyte value, xtd::byte from_base);
5111 static string to_string(uint16 value) noexcept;
5122 static string to_string(uint16 value, xtd::byte from_base);
5131 static string to_string(uint32 value) noexcept;
5142 static string to_string(uint32 value, xtd::byte from_base);
5152 static string to_string(uint64 value) noexcept;
5163 static string to_string(uint64 value, xtd::byte from_base);
5172 static string to_string(xtd::ulong value) noexcept;
5183 static string to_string(xtd::ulong value, xtd::byte from_base);
5192 static string to_string(const xtd::string& value);
5194 static string to_string(const std::string& value);
5195#if defined(__xtd__cpp_lib_char8_t)
5196 static string to_string(const std::u8string& value);
5197#endif
5198 static string to_string(const std::u16string& value);
5199 static string to_string(const std::u32string& value);
5200 static string to_string(const std::wstring& value);
5201 static string to_string(const char* value);
5202 static string to_string(char* value);
5203#if defined(__xtd__cpp_lib_char8_t)
5204 static string to_string(const char8* value);
5205 static string to_string(char8* value);
5206#endif
5207 static string to_string(const char16* value);
5208 static string to_string(char16* value);
5209 static string to_string(const char32* value);
5210 static string to_string(char32* value);
5211 static string to_string(const wchar* value);
5212 static string to_string(wchar* value);
5222 template<typename type_t>
5223 static string to_string(type_t value) noexcept {
5224 return string::format("{}", value);
5225 }
5226
5235 static string to_ustring(std::any value);
5244 static string to_ustring(bool value) noexcept;
5253 static string to_ustring(xtd::byte value) noexcept;
5264 static string to_ustring(xtd::byte value, xtd::byte from_base);
5273 static string to_ustring(char value) noexcept;
5274#if defined(__xtd__cpp_lib_char8_t)
5283 static string to_ustring(char8 value) noexcept;
5284#endif
5293 static string to_ustring(char16 value) noexcept;
5302 static string to_ustring(char32 value) noexcept;
5311 static string to_ustring(wchar value) noexcept;
5322 static string to_ustring(decimal value);
5333 static string to_ustring(double value);
5344 static string to_ustring(float value);
5354 static string to_ustring(int16 value);
5365 static string to_ustring(int16 value, xtd::byte from_base);
5375 static string to_ustring(int32 value);
5386 static string to_ustring(int32 value, xtd::byte from_base);
5396 static string to_ustring(int64 value);
5407 static string to_ustring(int64 value, xtd::byte from_base);
5417 static string to_ustring(slong value);
5428 static string to_ustring(slong value, xtd::byte from_base);
5438 static string to_ustring(sbyte value);
5449 static string to_ustring(sbyte value, xtd::byte from_base);
5458 static string to_ustring(uint16 value) noexcept;
5469 static string to_ustring(uint16 value, xtd::byte from_base);
5478 static string to_ustring(uint32 value) noexcept;
5489 static string to_ustring(uint32 value, xtd::byte from_base);
5499 static string to_ustring(uint64 value) noexcept;
5510 static string to_ustring(uint64 value, xtd::byte from_base);
5519 static string to_ustring(xtd::ulong value) noexcept;
5530 static string to_ustring(xtd::ulong value, xtd::byte from_base);
5539 static string to_ustring(const xtd::string& value);
5541 static string to_ustring(const std::string& value);
5542#if defined(__xtd__cpp_lib_char8_t)
5543 static string to_ustring(const std::u8string& value);
5544#endif
5545 static string to_ustring(const std::u16string& value);
5546 static string to_ustring(const std::u32string& value);
5547 static string to_ustring(const std::wstring& value);
5548 static string to_ustring(const char* value);
5549 static string to_ustring(char* value);
5550#if defined(__xtd__cpp_lib_char8_t)
5551 static string to_ustring(const char8* value);
5552 static string to_ustring(char8* value);
5553#endif
5554 static string to_ustring(const char16* value);
5555 static string to_ustring(char16* value);
5556 static string to_ustring(const char32* value);
5557 static string to_ustring(char32* value);
5558 static string to_ustring(const wchar* value);
5559 static string to_ustring(wchar* value);
5569 template<typename type_t>
5570 static string to_ustring(type_t value) noexcept {
5571 return string::format("{}", value);
5572 }
5574 };
5575}
Contains __xtd_std_version definitions.
Contains std::any type and std::bad_any_cast exception.
Contains xtd::argument_exception exception.
Represents text as a sequence of character units.
Definition basic_string.h:79
Represents API to convert base type code.
Definition convert.h:30
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 string to_string(xtd::byte value) noexcept
Convert xtd::byte to string.
static xtd::byte to_byte(const xtd::string &value, xtd::byte from_base)
Convert string to byte.
static uint32 to_uint32(sbyte value)
Convert sbyte to uint32.
static double to_double(uint32 value) noexcept
Convert uint32 to double.
static int16 to_int16(const xtd::string &value, xtd::byte from_base)
Convert string to int16.
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 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 double to_double(sbyte value) noexcept
Convert sbyte to double.
static bool to_boolean(uint64 value) noexcept
Convert uint64 to bool.
static sbyte to_sbyte(int16 value)
Convert int16 to sbyte.
static wchar to_wchar(bool value)
Convert bool to wchar.
static string to_string(xtd::ulong value) noexcept
Convert slong to string.
static float to_single(const xtd::string &value)
Convert string to single.
static uint32 to_uint32(slong value)
Convert slong to uint32.
static bool to_boolean(const xtd::string &value)
Convert string to bool.
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 char32 to_char32(const xtd::string &value)
Convert string to char32.
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 char16 to_char16(const xtd::string &value)
Convert string to char16.
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 char8 to_char8(char value) noexcept
Convert char to char8.
static string to_ustring(int64 value, xtd::byte from_base)
Convert string to string.
static string to_string(uint32 value, xtd::byte from_base)
Convert string to string.
static xtd::byte to_byte(xtd::ulong value)
Convert slong to byte.
static string to_string(uint16 value) noexcept
Convert uint16 to string.
static float to_single(sbyte value) noexcept
Convert sbyte to single.
static string to_string(int64 value, xtd::byte from_base)
Convert string to string.
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 int64 to_int64(float value) noexcept
Convert float to int64.
static char32 to_char32(xtd::byte value) noexcept
Convert xtd::byte to char32.
static string to_ustring(wchar value) noexcept
Convert char32 to string.
static float to_single(char value) noexcept
Convert char to single.
static bool to_boolean(int16 value) noexcept
Convert int16 to bool.
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 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 int16 to_int16(char value) noexcept
Convert char to int16.
static char to_char(uint64 value)
Convert uint64 to char.
static string to_ustring(int16 value, xtd::byte from_base)
Convert string to string.
static int64 to_int64(char32 value) noexcept
Convert char32 to int64.
static string to_string(float value)
Convert float to string.
static uint32 to_uint32(uint16 value) noexcept
Convert uint16 to uint32.
static float to_single(char32 value) noexcept
Convert char32 to single.
static uint64 to_uint64(uint32 value) noexcept
Convert uint32 to uint64.
static string to_ustring(decimal value)
Convert decimal to string.
static double to_double(int64 value) noexcept
Convert int64 to double.
static double to_double(char8 value) noexcept
Convert char8 to double.
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:1476
static string to_string(char value) noexcept
Convert char to string.
static bool to_boolean(std::any value)
Convert std::any to bool.
static std::any to_any(int64 value) noexcept
Convert int64 to std::any.
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 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 string to_ustring(xtd::ulong value) noexcept
Convert slong to string.
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 string to_string(char8 value) noexcept
Convert char8 to string.
static float to_single(xtd::byte value) noexcept
Convert xtd::byte to single.
static string to_ustring(int16 value)
Convert int16 to string.
static float to_single(std::any value)
Convert std::any to single.
static uint64 to_uint64(int64 value)
Convert int64 to uint64.
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 string to_string(int16 value, xtd::byte from_base)
Convert string to string.
static wchar to_wchar(int16 value)
Convert int16 to wchar.
static slong to_llong(const xtd::string &value, xtd::byte from_base)
Convert string to slong.
static char16 to_char16(uint32 value)
Convert uint32 to char16.
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 string to_ustring(std::any value)
Convert std::any to string.
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 string to_ustring(int64 value)
Convert int64 to string.
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 xtd::byte to_byte(double value)
Convert double to byte.
static xtd::byte to_byte(const xtd::string &value)
Convert string to byte.
static string to_ustring(char32 value) noexcept
Convert char32 to string.
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:4380
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 string to_ustring(uint32 value) noexcept
Convert uint32 to string.
static float to_single(slong value) noexcept
Convert slong to single.
static sbyte to_sbyte(const xtd::string &value)
Convert string to sbyte.
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 decimal to_decimal(wchar value) noexcept
Convert char32 to decimal.
static wchar to_wchar(char8 value) noexcept
Convert char8 to wchar.
static float to_single(uint64 value) noexcept
Convert uint64 to single.
static int16 to_int16(type_t value) noexcept
Convert type_t to int16.
Definition convert.h:2892
static bool to_boolean(wchar value)
Convert wchar to bool.
static string to_ustring(uint16 value, xtd::byte from_base)
Convert string to string.
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 int32 to_int32(const xtd::string &value, xtd::byte from_base)
Convert string to int32.
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 string to_ustring(sbyte value)
Convert sbyte to string.
static uint32 to_uint32(const xtd::string &value, xtd::byte from_base)
Convert string to uint32.
static string to_ustring(uint64 value) noexcept
Convert uint64 to string.
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 string to_string(bool value) noexcept
Convert bool to string.
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 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 double to_double(const xtd::string &value)
Convert string to double.
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 uint64 to_uint64(const xtd::string &value)
Convert string to uint64.
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(const xtd::string &value, xtd::byte from_base)
Convert string to uint64.
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:1714
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 string to_string(char32 value) noexcept
Convert char32 to string.
static uint32 to_uint32(uint32 value) noexcept
Convert uint32 to uint32.
static string to_string(uint32 value) noexcept
Convert uint32 to string.
static int32 to_int32(wchar value) noexcept
Convert char32 to int32.
static slong to_llong(int16 value) noexcept
Convert int16 to slong.
static char8 to_char8(const xtd::string &value)
Convert string to char8.
static string to_ustring(uint32 value, xtd::byte from_base)
Convert string to string.
static string to_ustring(uint16 value) noexcept
Convert uint16 to string.
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 int16 to_int16(char8 value) noexcept
Convert char8 to int16.
static string to_string(decimal value)
Convert decimal to string.
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 string to_string(double value)
Convert double to string.
static int32 to_int32(uint32 value)
Convert uint32 to int32.
static string to_ustring(slong value)
Convert slong to string.
static int32 to_int32(type_t value) noexcept
Convert type_t to int32.
Definition convert.h:3139
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 xtd::ulong to_ullong(const xtd::string &value, xtd::byte from_base)
Convert string to xtd::ulong.
static string to_ustring(int32 value)
Convert int32 to string.
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 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 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 int16 to_int16(bool value) noexcept
Convert bool to int16.
static string to_ustring(uint64 value, xtd::byte from_base)
Convert string to string.
static string to_string(std::any value)
Convert std::any to string.
static xtd::ulong to_ullong(char value) noexcept
Convert char to xtd::ulong.
static bool to_boolean(type_t value) noexcept
Convert type_t to bool.
Definition convert.h:499
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 int64 to_int64(char value) noexcept
Convert char to int64.
static decimal to_decimal(std::any value)
Convert std::any to decimal.
static string to_ustring(int32 value, xtd::byte from_base)
Convert string to string.
static string to_ustring(float value)
Convert float to string.
static int16 to_int16(std::any value)
Convert std::any to int16.
static string to_ustring(const xtd::string &value)
Convert string to string.
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 int16 to_int16(const xtd::string &value)
Convert string to int16.
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 int32 to_int32(int64 value)
Convert int64 to int32.
static wchar to_wchar(sbyte value)
Convert sbyte to wchar.
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 sbyte to_sbyte(const xtd::string &value, xtd::byte from_base)
Convert string to sbyte.
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 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 string to_string(sbyte value, xtd::byte from_base)
Convert string to string.
static double to_double(char32 value) noexcept
Convert char32 to double.
static int64 to_int64(char16 value) noexcept
Convert char16 to int64.
static uint32 to_uint32(const xtd::string &value)
Convert string to uint32.
static uint32 to_uint32(int32 value)
Convert int32 to uint32.
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:4876
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 string to_string(slong value, xtd::byte from_base)
Convert string to string.
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 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 int64 to_int64(const xtd::string &value)
Convert string to int64.
static int32 to_int32(char16 value) noexcept
Convert char16 to int32.
static wchar to_wchar(const xtd::string &value)
Convert string to wchar.
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 uint32 to_uint32(decimal value)
Convert decimal to uint32.
static string to_string(uint64 value, xtd::byte from_base)
Convert string to string.
static bool to_boolean(bool value) noexcept
Convert bool to bool.
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:2183
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 uint64 to_uint64(int32 value)
Convert int32 to uint64.
static string to_ustring(bool value) noexcept
Convert bool to string.
static uint16 to_uint16(const xtd::string &value, xtd::byte from_base)
Convert string to uint16.
static int16 to_int16(uint32 value)
Convert uint32 to int16.
static string to_string(slong value)
Convert slong to string.
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:4628
static uint16 to_uint16(type_t value) noexcept
Convert type_t to uint16.
Definition convert.h:4130
static char to_char(float value)
Convert float to char.
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 string to_string(uint64 value) noexcept
Convert uint64 to string.
static int64 to_int64(int16 value) noexcept
Convert int16 to int64.
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 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 std::any to_any(const xtd::string &value) noexcept
Convert string to std::any.
static xtd::byte to_byte(type_t value) noexcept
Convert type_t to byte.
Definition convert.h:754
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 string to_string(wchar value) noexcept
Convert char32 to string.
static uint16 to_uint16(slong value)
Convert slong to uint16.
static char8 to_char8(uint64 value)
Convert uint64 to char8.
static uint64 to_uint64(char value) noexcept
Convert char to uint64.
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 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 bool to_boolean(double value) noexcept
Convert double to bool.
static string to_string(const xtd::string &value)
Convert string to string.
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 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 uint16 to_uint16(char32 value)
Convert char32 to uint16.
static decimal to_decimal(float value) noexcept
Convert float to decimal.
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 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 string to_ustring(xtd::ulong value, xtd::byte from_base)
Convert string to string.
static std::any to_any(float value) noexcept
Convert float to std::any.
static string to_ustring(xtd::byte value, xtd::byte from_base)
Convert string to string.
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 string to_ustring(char8 value) noexcept
Convert char8 to string.
static string to_string(int64 value)
Convert int64 to string.
static char8 to_char8(type_t value) noexcept
Convert type_t to char8.
Definition convert.h:1235
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:3623
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 int32 to_int32(const xtd::string &value)
Convert string to int32.
static int64 to_int64(const xtd::string &value, xtd::byte from_base)
Convert string to int64.
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 string to_string(char16 value) noexcept
Convert char16 to string.
static string to_string(uint16 value, xtd::byte from_base)
Convert string to string.
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:260
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 string to_ustring(char value) noexcept
Convert char to string.
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 string to_ustring(sbyte value, xtd::byte from_base)
Convert string to string.
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:2641
static char32 to_char32(bool value)
Convert bool to char32.
static int64 to_int64(xtd::ulong value)
Convert slong to int64.
static string to_ustring(type_t value) noexcept
Convert type_t to string.
Definition convert.h:5570
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:3878
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:1954
static char8 to_char8(decimal value)
Convert decimal to char8.
static decimal to_decimal(int64 value) noexcept
Convert int64 to decimal.
static string to_ustring(slong value, xtd::byte from_base)
Convert string to string.
static char32 to_char32(slong value)
Convert slong to char32.
static string to_ustring(char16 value) noexcept
Convert char16 to string.
static char to_char(type_t value) noexcept
Convert type_t to char.
Definition convert.h:997
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 string to_ustring(xtd::byte value) noexcept
Convert xtd::byte to string.
static string to_string(sbyte value)
Convert sbyte to string.
static xtd::ulong to_ullong(const xtd::string &value)
Convert string to xtd::ulong.
static int32 to_int32(bool value) noexcept
Convert bool to int32.
static slong to_llong(const xtd::string &value)
Convert string to slong.
static uint16 to_uint16(const xtd::string &value)
Convert string to uint16.
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 sbyte to_sbyte(decimal value)
Convert decimal to sbyte.
static char to_char(const xtd::string &value)
Convert string to char.
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:3381
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 char8 to_char8(xtd::byte value) noexcept
Convert xtd::byte to char8.
static string to_string(xtd::byte value, xtd::byte from_base)
Convert string to string.
static float to_single(wchar value) noexcept
Convert char32 to single.
static double to_double(type_t value) noexcept
Convert type_t to double.
Definition convert.h:2412
static string to_string(int32 value, xtd::byte from_base)
Convert string to string.
static xtd::byte to_byte(decimal value)
Convert decimal to byte.
static string to_string(xtd::ulong value, xtd::byte from_base)
Convert string to string.
static string to_ustring(double value)
Convert double to string.
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 decimal to_decimal(const xtd::string &value)
Convert string to decimal.
static uint16 to_uint16(decimal value)
Convert decimal to uint16.
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 string to_string(int16 value)
Convert int16 to string.
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 string to_string(int32 value)
Convert int32 to string.
static sbyte to_sbyte(wchar value)
Convert char32 to sbyte.
static xtd::byte to_byte(wchar value)
Convert char32 to byte.
static string to_string(type_t value) noexcept
Convert type_t to string.
Definition convert.h:5223
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:19
Contains xtd::format_exception exception.
static basic_string format(const basic_string< char > &fmt, args_t &&... args)
Writes the text representation of the specified arguments list, to string using the specified format ...
#define static_
This keyword is use to represent a static object. A static object can't be instantiated (constructors...
Definition static.h:37
int16_t int16
Represents a 16-bit signed integer.
Definition int16.h:23
char8_t char8
Represents a 8-bit unicode character.
Definition char8.h:27
wchar_t wchar
Represents a wide character.
Definition wchar.h:24
int32_t int32
Represents a 32-bit signed integer.
Definition int32.h:23
long double decimal
Represents a decimal-precision floating-point number.
Definition decimal.h:23
int64_t int64
Represents a 64-bit signed integer.
Definition int64.h:23
__ulong__ ulong
Represents a 32-bit or 64-bit unsigned integer.
Definition ulong.h:27
int8_t sbyte
Represents a 8-bit signed integer.
Definition sbyte.h:23
char16_t char16
Represents a 16-bit unicode character.
Definition char16.h:26
uint32_t uint32
Represents a 32-bit unsigned integer.
Definition uint32.h:23
char32_t char32
Represents a 32-bit unicode character.
Definition char32.h:26
uint64_t uint64
Represents a 64-bit unsigned integer.
Definition uint64.h:23
uint8_t byte
Represents a 8-bit unsigned integer.
Definition byte.h:23
uint16_t uint16
Represents a 16-bit unsigned integer.
Definition uint16.h:23
__slong__ slong
Represents a 32-bit or 64-bit signed integer.
Definition slong.h:27
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::string alias.
Contains xtd fundamental types.