xtd 0.2.0
convert.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "any.hpp"
10#include "read_only_span.hpp"
11#include "static.hpp"
12#include "types.hpp"
13#include "string.hpp"
14#define __XTD_STD_INTERNAL__
16#undef __XTD_STD_INTERNAL__
17
19namespace xtd {
32 public:
34
44
53 static std::any to_any(std::any value) noexcept;
62 static std::any to_any(bool value) noexcept;
71 static std::any to_any(xtd::byte value) noexcept;
80 static std::any to_any(char value) noexcept;
81#if defined(__xtd__cpp_lib_char8_t)
91 static std::any to_any(char8 value);
92#endif
101 static std::any to_any(char16 value) noexcept;
110 static std::any to_any(char32 value) noexcept;
119 static std::any to_any(wchar value) noexcept;
128 static std::any to_any(decimal value) noexcept;
137 static std::any to_any(double value) noexcept;
149 static std::any to_any(float value) noexcept;
158 static std::any to_any(int16 value) noexcept;
167 static std::any to_any(int32 value) noexcept;
176 static std::any to_any(int64 value) noexcept;
185 static std::any to_any(slong value) noexcept;
194 static std::any to_any(sbyte value) noexcept;
203 static std::any to_any(uint16 value) noexcept;
212 static std::any to_any(uint32 value) noexcept;
221 static std::any to_any(uint64 value) noexcept;
230 static std::any to_any(xtd::ulong value) noexcept;
239 static std::any to_any(const xtd::string& value) noexcept;
241 static std::any to_any(const std::string& value) noexcept;
242#if defined(__xtd__cpp_lib_char8_t)
243 static std::any to_any(const std::u8string& value) noexcept;
244#endif
245 static std::any to_any(const std::u16string& value) noexcept;
246 static std::any to_any(const std::u32string& value) noexcept;
247 static std::any to_any(const std::wstring& value) noexcept;
248 static std::any to_any(const char* value) noexcept;
249 static std::any to_any(char* value) noexcept;
250#if defined(__xtd__cpp_lib_char8_t)
251 static std::any to_any(const char8* value);
252 static std::any to_any(char8* value);
253#endif
254 static std::any to_any(const char16* value) noexcept;
255 static std::any to_any(char16* value) noexcept;
256 static std::any to_any(const char32* value) noexcept;
257 static std::any to_any(char32* value) noexcept;
258 static std::any to_any(const wchar* value) noexcept;
259 static std::any to_any(wchar* value) noexcept;
269 template<class type_t>
270 static std::any to_any(type_t value) {
271 try {
272 return std::any(value);
273 } catch (...) {
275 }
276 }
277
286
296 static bool to_boolean(std::any value);
305 static bool to_boolean(bool value) noexcept;
314 static bool to_boolean(xtd::byte value) noexcept;
324 static bool to_boolean(char value);
325#if defined(__xtd__cpp_lib_char8_t)
335 static bool to_boolean(char8 value);
336#endif
346 static bool to_boolean(char16 value);
356 static bool to_boolean(char32 value);
366 static bool to_boolean(wchar value);
375 static bool to_boolean(decimal value) noexcept;
384 static bool to_boolean(double value) noexcept;
396 static bool to_boolean(float value) noexcept;
405 static bool to_boolean(int16 value) noexcept;
414 static bool to_boolean(int32 value) noexcept;
423 static bool to_boolean(int64 value) noexcept;
432 static bool to_boolean(slong value) noexcept;
441 static bool to_boolean(sbyte value) noexcept;
450 static bool to_boolean(uint16 value) noexcept;
459 static bool to_boolean(uint32 value) noexcept;
468 static bool to_boolean(uint64 value) noexcept;
477 static bool to_boolean(xtd::ulong value) noexcept;
487 static bool to_boolean(const xtd::string& value);
489 static bool to_boolean(const std::string& value);
490#if defined(__xtd__cpp_lib_char8_t)
491 static bool to_boolean(const std::u8string& value);
492#endif
493 static bool to_boolean(const std::u16string& value);
494 static bool to_boolean(const std::u32string& value);
495 static bool to_boolean(const std::wstring& value);
496 static bool to_boolean(const char* value);
497 static bool to_boolean(char* value);
498#if defined(__xtd__cpp_lib_char8_t)
499 static bool to_boolean(const char8* value);
500 static bool to_boolean(char8* value);
501#endif
502 static bool to_boolean(const char16* value);
503 static bool to_boolean(char16* value);
504 static bool to_boolean(const char32* value);
505 static bool to_boolean(char32* value);
506 static bool to_boolean(const wchar* value);
507 static bool to_boolean(wchar* value);
517 template<class type_t>
518 static bool to_boolean(type_t value) noexcept {
519 return static_cast<bool>(value);
520 }
521
530 static xtd::byte to_byte(std::any value);
539 static xtd::byte to_byte(bool value) noexcept;
548 static xtd::byte to_byte(xtd::byte value) noexcept;
557 static xtd::byte to_byte(char value) noexcept;
558#if defined(__xtd__cpp_lib_char8_t)
567 static xtd::byte to_byte(char8 value) noexcept;
568#endif
578 static xtd::byte to_byte(char16 value);
588 static xtd::byte to_byte(char32 value);
598 static xtd::byte to_byte(wchar value);
609 static xtd::byte to_byte(decimal value);
620 static xtd::byte to_byte(double value);
631 static xtd::byte to_byte(float value);
641 static xtd::byte to_byte(int16 value);
651 static xtd::byte to_byte(int32 value);
661 static xtd::byte to_byte(int64 value);
671 static xtd::byte to_byte(slong value);
681 static xtd::byte to_byte(sbyte value);
691 static xtd::byte to_byte(uint16 value);
701 static xtd::byte to_byte(uint32 value);
711 static xtd::byte to_byte(uint64 value);
731 static xtd::byte to_byte(const xtd::string& value);
742 static xtd::byte to_byte(const xtd::string& value, xtd::byte from_base);
744 static xtd::byte to_byte(const std::string& value);
745#if defined(__xtd__cpp_lib_char8_t)
746 static xtd::byte to_byte(const std::u8string& value);
747#endif
748 static xtd::byte to_byte(const std::u16string& value);
749 static xtd::byte to_byte(const std::u32string& value);
750 static xtd::byte to_byte(const std::wstring& value);
751 static xtd::byte to_byte(const char* value);
752 static xtd::byte to_byte(char* value);
753#if defined(__xtd__cpp_lib_char8_t)
754 static xtd::byte to_byte(const char8* value);
755 static xtd::byte to_byte(char8* value);
756#endif
757 static xtd::byte to_byte(const char16* value);
758 static xtd::byte to_byte(char16* value);
759 static xtd::byte to_byte(const char32* value);
760 static xtd::byte to_byte(char32* value);
761 static xtd::byte to_byte(const wchar* value);
762 static xtd::byte to_byte(wchar* value);
772 template<class type_t>
773 static xtd::byte to_byte(type_t value) noexcept {
774 return static_cast<xtd::byte>(value);
775 }
776
785 static char to_char(std::any value);
794 static char to_char(bool value);
803 static char to_char(xtd::byte value) noexcept;
812 static char to_char(char value) noexcept;
813#if defined(__xtd__cpp_lib_char8_t)
822 static char to_char(char8 value) noexcept;
823#endif
833 static char to_char(char16 value);
843 static char to_char(char32 value);
853 static char to_char(wchar value);
863 static char to_char(decimal value);
874 static char to_char(double value);
885 static char to_char(float value);
895 static char to_char(int16 value);
905 static char to_char(int32 value);
915 static char to_char(int64 value);
925 static char to_char(slong value);
935 static char to_char(sbyte value);
945 static char to_char(uint16 value);
955 static char to_char(uint32 value);
965 static char to_char(uint64 value);
975 static char to_char(xtd::ulong value);
985 static char to_char(const xtd::string& value);
987 static char to_char(const std::string& value);
988#if defined(__xtd__cpp_lib_char8_t)
989 static char to_char(const std::u8string& value);
990#endif
991 static char to_char(const std::u16string& value);
992 static char to_char(const std::u32string& value);
993 static char to_char(const std::wstring& value);
994 static char to_char(const char* value);
995 static char to_char(char* value);
996#if defined(__xtd__cpp_lib_char8_t)
997 static char to_char(const char8* value);
998 static char to_char(char8* value);
999#endif
1000 static char to_char(const char16* value);
1001 static char to_char(char16* value);
1002 static char to_char(const char32* value);
1003 static char to_char(char32* value);
1004 static char to_char(const wchar* value);
1005 static char to_char(wchar* value);
1015 template<class type_t>
1016 static char to_char(type_t value) noexcept {
1017 return static_cast<char>(value);
1018 }
1019
1020#if defined(__xtd__cpp_lib_char8_t)
1029 static char8 to_char8(std::any value);
1038 static char8 to_char8(bool value);
1047 static char8 to_char8(xtd::byte value) noexcept;
1056 static char8 to_char8(char value) noexcept;
1065 static char8 to_char8(char8 value) noexcept;
1075 static char8 to_char8(char16 value);
1085 static char8 to_char8(char32 value);
1095 static char8 to_char8(wchar value);
1105 static char8 to_char8(decimal value);
1116 static char8 to_char8(double value);
1127 static char8 to_char8(float value);
1137 static char8 to_char8(int16 value);
1147 static char8 to_char8(int32 value);
1157 static char8 to_char8(int64 value);
1167 static char8 to_char8(slong value);
1177 static char8 to_char8(sbyte value);
1187 static char8 to_char8(uint16 value);
1197 static char8 to_char8(uint32 value);
1207 static char8 to_char8(uint64 value);
1227 static char8 to_char8(const xtd::string& value);
1229 static char8 to_char8(const std::string& value);
1230 static char8 to_char8(const std::u8string& value);
1231 static char8 to_char8(const std::u16string& value);
1232 static char8 to_char8(const std::u32string& value);
1233 static char8 to_char8(const std::wstring& value);
1234 static char8 to_char8(const char* value);
1235 static char8 to_char8(char* value);
1236 static char8 to_char8(const char8* value);
1237 static char8 to_char8(char8* value);
1238 static char8 to_char8(const char16* value);
1239 static char8 to_char8(char16* value);
1240 static char8 to_char8(const char32* value);
1241 static char8 to_char8(char32* value);
1242 static char8 to_char8(const wchar* value);
1243 static char8 to_char8(wchar* value);
1253 template<class type_t>
1254 static char8 to_char8(type_t value) noexcept {
1255 return static_cast<char8>(value);
1256 }
1257#endif
1258
1267 static char16 to_char16(std::any value);
1276 static char16 to_char16(bool value);
1285 static char16 to_char16(xtd::byte value) noexcept;
1294 static char16 to_char16(char value) noexcept;
1295#if defined(__xtd__cpp_lib_char8_t)
1304 static char16 to_char16(char8 value) noexcept;
1305#endif
1314 static char16 to_char16(char16 value) noexcept;
1324 static char16 to_char16(char32 value);
1333 static char16 to_char16(wchar value) noexcept;
1343 static char16 to_char16(decimal value);
1354 static char16 to_char16(double value);
1365 static char16 to_char16(float value);
1375 static char16 to_char16(int16 value);
1385 static char16 to_char16(int32 value);
1395 static char16 to_char16(int64 value);
1405 static char16 to_char16(slong value);
1415 static char16 to_char16(sbyte value);
1424 static char16 to_char16(uint16 value) noexcept;
1434 static char16 to_char16(uint32 value);
1444 static char16 to_char16(uint64 value);
1464 static char16 to_char16(const xtd::string& value);
1466 static char16 to_char16(const std::string& value);
1467#if defined(__xtd__cpp_lib_char8_t)
1468 static char16 to_char16(const std::u8string& value);
1469#endif
1470 static char16 to_char16(const std::u16string& value);
1471 static char16 to_char16(const std::u32string& value);
1472 static char16 to_char16(const std::wstring& value);
1473 static char16 to_char16(const char* value);
1474 static char16 to_char16(char* value);
1475#if defined(__xtd__cpp_lib_char8_t)
1476 static char16 to_char16(const char8* value);
1477 static char16 to_char16(char8* value);
1478#endif
1479 static char16 to_char16(const char16* value);
1480 static char16 to_char16(char16* value);
1481 static char16 to_char16(const char32* value);
1482 static char16 to_char16(char32* value);
1483 static char16 to_char16(const wchar* value);
1484 static char16 to_char16(wchar* value);
1494 template<class type_t>
1495 static char16 to_char16(type_t value) noexcept {
1496 return static_cast<char16>(value);
1497 }
1498
1507 static char32 to_char32(std::any value);
1516 static char32 to_char32(bool value);
1525 static char32 to_char32(xtd::byte value) noexcept;
1534 static char32 to_char32(char value) noexcept;
1535#if defined(__xtd__cpp_lib_char8_t)
1544 static char32 to_char32(char8 value) noexcept;
1545#endif
1554 static char32 to_char32(char16 value) noexcept;
1563 static char32 to_char32(char32 value) noexcept;
1572 static char32 to_char32(wchar value) noexcept;
1582 static char32 to_char32(decimal value);
1593 static char32 to_char32(double value);
1604 static char32 to_char32(float value);
1614 static char32 to_char32(int16 value);
1624 static char32 to_char32(int32 value);
1634 static char32 to_char32(int64 value);
1644 static char32 to_char32(slong value);
1654 static char32 to_char32(sbyte value);
1663 static char32 to_char32(uint16 value) noexcept;
1672 static char32 to_char32(uint32 value) noexcept;
1682 static char32 to_char32(uint64 value);
1702 static char32 to_char32(const xtd::string& value);
1704 static char32 to_char32(const std::string& value);
1705#if defined(__xtd__cpp_lib_char8_t)
1706 static char32 to_char32(const std::u8string& value);
1707#endif
1708 static char32 to_char32(const std::u16string& value);
1709 static char32 to_char32(const std::u32string& value);
1710 static char32 to_char32(const std::wstring& value);
1711 static char32 to_char32(const char* value);
1712 static char32 to_char32(char* value);
1713#if defined(__xtd__cpp_lib_char8_t)
1714 static char32 to_char32(const char8* value);
1715 static char32 to_char32(char8* value);
1716#endif
1717 static char32 to_char32(const char16* value);
1718 static char32 to_char32(char16* value);
1719 static char32 to_char32(const char32* value);
1720 static char32 to_char32(char32* value);
1721 static char32 to_char32(const wchar* value);
1722 static char32 to_char32(wchar* value);
1732 template<class type_t>
1733 static char32 to_char32(type_t value) noexcept {
1734 return static_cast<char32>(value);
1735 }
1736
1745 static wchar to_wchar(std::any value);
1754 static wchar to_wchar(bool value);
1763 static wchar to_wchar(xtd::byte value) noexcept;
1772 static wchar to_wchar(char value) noexcept;
1773#if defined(__xtd__cpp_lib_char8_t)
1782 static wchar to_wchar(char8 value) noexcept;
1783#endif
1792 static wchar to_wchar(char16 value) noexcept;
1802 static wchar to_wchar(char32 value);
1811 static wchar to_wchar(wchar value) noexcept;
1821 static wchar to_wchar(decimal value);
1832 static wchar to_wchar(double value);
1843 static wchar to_wchar(float value);
1853 static wchar to_wchar(int16 value);
1863 static wchar to_wchar(int32 value);
1873 static wchar to_wchar(int64 value);
1883 static wchar to_wchar(slong value);
1893 static wchar to_wchar(sbyte value);
1902 static wchar to_wchar(uint16 value) noexcept;
1912 static wchar to_wchar(uint32 value);
1922 static wchar to_wchar(uint64 value);
1942 static wchar to_wchar(const xtd::string& value);
1944 static wchar to_wchar(const std::string& value);
1945#if defined(__xtd__cpp_lib_char8_t)
1946 static wchar to_wchar(const std::u8string& value);
1947#endif
1948 static wchar to_wchar(const std::u16string& value);
1949 static wchar to_wchar(const std::u32string& value);
1950 static wchar to_wchar(const std::wstring& value);
1951 static wchar to_wchar(const char* value);
1952 static wchar to_wchar(char* value);
1953#if defined(__xtd__cpp_lib_char8_t)
1954 static wchar to_wchar(const char8* value);
1955 static wchar to_wchar(char8* value);
1956#endif
1957 static wchar to_wchar(const char16* value);
1958 static wchar to_wchar(char16* value);
1959 static wchar to_wchar(const char32* value);
1960 static wchar to_wchar(char32* value);
1961 static wchar to_wchar(const wchar* value);
1962 static wchar to_wchar(wchar* value);
1972 template<class type_t>
1973 static wchar to_wchar(type_t value) noexcept {
1974 return static_cast<wchar>(value);
1975 }
1976
1985 static decimal to_decimal(std::any value);
1994 static decimal to_decimal(bool value) noexcept;
2003 static decimal to_decimal(xtd::byte value) noexcept;
2012 static decimal to_decimal(char value) noexcept;
2013#if defined(__xtd__cpp_lib_char8_t)
2022 static decimal to_decimal(char8 value) noexcept;
2023#endif
2032 static decimal to_decimal(char16 value) noexcept;
2041 static decimal to_decimal(char32 value) noexcept;
2050 static decimal to_decimal(wchar value) noexcept;
2060 static decimal to_decimal(decimal value) noexcept;
2070 static decimal to_decimal(double value) noexcept;
2080 static decimal to_decimal(float value) noexcept;
2089 static decimal to_decimal(int16 value) noexcept;
2098 static decimal to_decimal(int32 value) noexcept;
2107 static decimal to_decimal(int64 value) noexcept;
2116 static decimal to_decimal(slong value) noexcept;
2125 static decimal to_decimal(sbyte value) noexcept;
2134 static decimal to_decimal(uint16 value) noexcept;
2143 static decimal to_decimal(uint32 value) noexcept;
2152 static decimal to_decimal(uint64 value) noexcept;
2161 static decimal to_decimal(xtd::ulong value) noexcept;
2171 static decimal to_decimal(const xtd::string& value);
2173 static decimal to_decimal(const std::string& value);
2174#if defined(__xtd__cpp_lib_char8_t)
2175 static decimal to_decimal(const std::u8string& value);
2176#endif
2177 static decimal to_decimal(const std::u16string& value);
2178 static decimal to_decimal(const std::u32string& value);
2179 static decimal to_decimal(const std::wstring& value);
2180 static decimal to_decimal(const char* value);
2181 static decimal to_decimal(char* value);
2182#if defined(__xtd__cpp_lib_char8_t)
2183 static decimal to_decimal(const char8* value);
2184 static decimal to_decimal(char8* value);
2185#endif
2186 static decimal to_decimal(const char16* value);
2187 static decimal to_decimal(char16* value);
2188 static decimal to_decimal(const char32* value);
2189 static decimal to_decimal(char32* value);
2190 static decimal to_decimal(const wchar* value);
2191 static decimal to_decimal(wchar* value);
2201 template<class type_t>
2202 static decimal to_decimal(type_t value) noexcept {
2203 return static_cast<decimal>(value);
2204 }
2205
2214 static double to_double(std::any value);
2223 static double to_double(bool value) noexcept;
2232 static double to_double(xtd::byte value) noexcept;
2241 static double to_double(char value) noexcept;
2242#if defined(__xtd__cpp_lib_char8_t)
2251 static double to_double(char8 value) noexcept;
2252#endif
2261 static double to_double(char16 value) noexcept;
2270 static double to_double(char32 value) noexcept;
2279 static double to_double(wchar value) noexcept;
2289 static double to_double(decimal value) noexcept;
2299 static double to_double(double value) noexcept;
2309 static double to_double(float value) noexcept;
2318 static double to_double(int16 value) noexcept;
2327 static double to_double(int32 value) noexcept;
2336 static double to_double(int64 value) noexcept;
2345 static double to_double(slong value) noexcept;
2354 static double to_double(sbyte value) noexcept;
2363 static double to_double(uint16 value) noexcept;
2372 static double to_double(uint32 value) noexcept;
2381 static double to_double(uint64 value) noexcept;
2390 static double to_double(xtd::ulong value) noexcept;
2400 static double to_double(const xtd::string& value);
2402 static double to_double(const std::string& value);
2403#if defined(__xtd__cpp_lib_char8_t)
2404 static double to_double(const std::u8string& value);
2405#endif
2406 static double to_double(const std::u16string& value);
2407 static double to_double(const std::u32string& value);
2408 static double to_double(const std::wstring& value);
2409 static double to_double(const char* value);
2410 static double to_double(char* value);
2411#if defined(__xtd__cpp_lib_char8_t)
2412 static double to_double(const char8* value);
2413 static double to_double(char8* value);
2414#endif
2415 static double to_double(const char16* value);
2416 static double to_double(char16* value);
2417 static double to_double(const char32* value);
2418 static double to_double(char32* value);
2419 static double to_double(const wchar* value);
2420 static double to_double(wchar* value);
2430 template<class type_t>
2431 static double to_double(type_t value) noexcept {
2432 return static_cast<double>(value);
2433 }
2434
2443 static float to_single(std::any value);
2452 static float to_single(bool value) noexcept;
2461 static float to_single(xtd::byte value) noexcept;
2470 static float to_single(char value) noexcept;
2471#if defined(__xtd__cpp_lib_char8_t)
2480 static float to_single(char8 value) noexcept;
2481#endif
2490 static float to_single(char16 value) noexcept;
2499 static float to_single(char32 value) noexcept;
2508 static float to_single(wchar value) noexcept;
2518 static float to_single(decimal value) noexcept;
2528 static float to_single(double value) noexcept;
2538 static float to_single(float value) noexcept;
2547 static float to_single(int16 value) noexcept;
2556 static float to_single(int32 value) noexcept;
2565 static float to_single(int64 value) noexcept;
2574 static float to_single(slong value) noexcept;
2583 static float to_single(sbyte value) noexcept;
2592 static float to_single(uint16 value) noexcept;
2601 static float to_single(uint32 value) noexcept;
2610 static float to_single(uint64 value) noexcept;
2619 static float to_single(xtd::ulong value) noexcept;
2629 static float to_single(const xtd::string& value);
2631 static float to_single(const std::string& value);
2632#if defined(__xtd__cpp_lib_char8_t)
2633 static float to_single(const std::u8string& value);
2634#endif
2635 static float to_single(const std::u16string& value);
2636 static float to_single(const std::u32string& value);
2637 static float to_single(const std::wstring& value);
2638 static float to_single(const char* value);
2639 static float to_single(char* value);
2640#if defined(__xtd__cpp_lib_char8_t)
2641 static float to_single(const char8* value);
2642 static float to_single(char8* value);
2643#endif
2644 static float to_single(const char16* value);
2645 static float to_single(char16* value);
2646 static float to_single(const char32* value);
2647 static float to_single(char32* value);
2648 static float to_single(const wchar* value);
2649 static float to_single(wchar* value);
2659 template<class type_t>
2660 static float to_single(type_t value) noexcept {
2661 return static_cast<float>(value);
2662 }
2663
2672 static int16 to_int16(std::any value);
2681 static int16 to_int16(bool value) noexcept;
2690 static int16 to_int16(xtd::byte value) noexcept;
2699 static int16 to_int16(char value) noexcept;
2700#if defined(__xtd__cpp_lib_char8_t)
2709 static int16 to_int16(char8 value) noexcept;
2710#endif
2719 static int16 to_int16(char16 value) noexcept;
2729 static int16 to_int16(char32 value);
2738 static int16 to_int16(wchar value) noexcept;
2749 static int16 to_int16(decimal value);
2760 static int16 to_int16(double value);
2771 static int16 to_int16(float value);
2780 static int16 to_int16(int16 value) noexcept;
2790 static int16 to_int16(int32 value);
2800 static int16 to_int16(int64 value);
2810 static int16 to_int16(slong value);
2819 static int16 to_int16(sbyte value) noexcept;
2829 static int16 to_int16(uint16 value);
2839 static int16 to_int16(uint32 value);
2849 static int16 to_int16(uint64 value);
2869 static int16 to_int16(const xtd::string& value);
2880 static int16 to_int16(const xtd::string& value, xtd::byte from_base);
2882 static int16 to_int16(const std::string& value);
2883#if defined(__xtd__cpp_lib_char8_t)
2884 static int16 to_int16(const std::u8string& value);
2885#endif
2886 static int16 to_int16(const std::u16string& value);
2887 static int16 to_int16(const std::u32string& value);
2888 static int16 to_int16(const std::wstring& value);
2889 static int16 to_int16(const char* value);
2890 static int16 to_int16(char* value);
2891#if defined(__xtd__cpp_lib_char8_t)
2892 static int16 to_int16(const char8* value);
2893 static int16 to_int16(char8* value);
2894#endif
2895 static int16 to_int16(const char16* value);
2896 static int16 to_int16(char16* value);
2897 static int16 to_int16(const char32* value);
2898 static int16 to_int16(char32* value);
2899 static int16 to_int16(const wchar* value);
2900 static int16 to_int16(wchar* value);
2910 template<class type_t>
2911 static int16 to_int16(type_t value) noexcept {
2912 return static_cast<int16>(value);
2913 }
2914
2923 static int32 to_int32(std::any value);
2932 static int32 to_int32(bool value) noexcept;
2941 static int32 to_int32(xtd::byte value) noexcept;
2950 static int32 to_int32(char value) noexcept;
2951#if defined(__xtd__cpp_lib_char8_t)
2960 static int32 to_int32(char8 value) noexcept;
2961#endif
2970 static int32 to_int32(char16 value) noexcept;
2979 static int32 to_int32(char32 value) noexcept;
2988 static int32 to_int32(wchar value) noexcept;
2999 static int32 to_int32(decimal value);
3010 static int32 to_int32(double value);
3020 static int32 to_int32(float value) noexcept;
3029 static int32 to_int32(int16 value) noexcept;
3039 static int32 to_int32(int32 value) noexcept;
3048 static int32 to_int32(int64 value);
3058 static int32 to_int32(slong value);
3067 static int32 to_int32(sbyte value) noexcept;
3076 static int32 to_int32(uint16 value) noexcept;
3086 static int32 to_int32(uint32 value);
3096 static int32 to_int32(uint64 value);
3116 static int32 to_int32(const xtd::string& value);
3127 static int32 to_int32(const xtd::string& value, xtd::byte from_base);
3129 static int32 to_int32(const std::string& value);
3130#if defined(__xtd__cpp_lib_char8_t)
3131 static int32 to_int32(const std::u8string& value);
3132#endif
3133 static int32 to_int32(const std::u16string& value);
3134 static int32 to_int32(const std::u32string& value);
3135 static int32 to_int32(const std::wstring& value);
3136 static int32 to_int32(const char* value);
3137 static int32 to_int32(char* value);
3138#if defined(__xtd__cpp_lib_char8_t)
3139 static int32 to_int32(const char8* value);
3140 static int32 to_int32(char8* value);
3141#endif
3142 static int32 to_int32(const char16* value);
3143 static int32 to_int32(char16* value);
3144 static int32 to_int32(const char32* value);
3145 static int32 to_int32(char32* value);
3146 static int32 to_int32(const wchar* value);
3147 static int32 to_int32(wchar* value);
3157 template<class type_t>
3158 static int32 to_int32(type_t value) noexcept {
3159 return static_cast<int32>(value);
3160 }
3161
3170 static int64 to_int64(std::any value);
3179 static int64 to_int64(bool value) noexcept;
3188 static int64 to_int64(xtd::byte value) noexcept;
3197 static int64 to_int64(char value) noexcept;
3198#if defined(__xtd__cpp_lib_char8_t)
3207 static int64 to_int64(char8 value) noexcept;
3208#endif
3217 static int64 to_int64(char16 value) noexcept;
3226 static int64 to_int64(char32 value) noexcept;
3235 static int64 to_int64(wchar value) noexcept;
3245 static int64 to_int64(decimal value) noexcept;
3255 static int64 to_int64(double value) noexcept;
3265 static int64 to_int64(float value) noexcept;
3274 static int64 to_int64(int16 value) noexcept;
3283 static int64 to_int64(int32 value) noexcept;
3292 static int64 to_int64(int64 value) noexcept;
3301 static int64 to_int64(slong value) noexcept;
3310 static int64 to_int64(sbyte value) noexcept;
3319 static int64 to_int64(uint16 value) noexcept;
3328 static int64 to_int64(uint32 value) noexcept;
3338 static int64 to_int64(uint64 value);
3358 static int64 to_int64(const xtd::string& value);
3369 static int64 to_int64(const xtd::string& value, xtd::byte from_base);
3371 static int64 to_int64(const std::string& value);
3372#if defined(__xtd__cpp_lib_char8_t)
3373 static int64 to_int64(const std::u8string& value);
3374#endif
3375 static int64 to_int64(const std::u16string& value);
3376 static int64 to_int64(const std::u32string& value);
3377 static int64 to_int64(const std::wstring& value);
3378 static int64 to_int64(const char* value);
3379 static int64 to_int64(char* value);
3380#if defined(__xtd__cpp_lib_char8_t)
3381 static int64 to_int64(const char8* value);
3382 static int64 to_int64(char8* value);
3383#endif
3384 static int64 to_int64(const char16* value);
3385 static int64 to_int64(char16* value);
3386 static int64 to_int64(const char32* value);
3387 static int64 to_int64(char32* value);
3388 static int64 to_int64(const wchar* value);
3389 static int64 to_int64(wchar* value);
3399 template<class type_t>
3400 static int64 to_int64(type_t value) noexcept {
3401 return static_cast<int64>(value);
3402 }
3403
3412 static slong to_llong(std::any value);
3421 static slong to_llong(bool value) noexcept;
3430 static slong to_llong(xtd::byte value) noexcept;
3439 static slong to_llong(char value) noexcept;
3440#if defined(__xtd__cpp_lib_char8_t)
3449 static slong to_llong(char8 value) noexcept;
3450#endif
3459 static slong to_llong(char16 value) noexcept;
3468 static slong to_llong(char32 value) noexcept;
3477 static slong to_llong(wchar value) noexcept;
3487 static slong to_llong(decimal value) noexcept;
3497 static slong to_llong(double value) noexcept;
3507 static slong to_llong(float value) noexcept;
3516 static slong to_llong(int16 value) noexcept;
3525 static slong to_llong(int32 value) noexcept;
3534 static slong to_llong(int64 value) noexcept;
3543 static slong to_llong(slong value) noexcept;
3552 static slong to_llong(sbyte value) noexcept;
3561 static slong to_llong(uint16 value) noexcept;
3570 static slong to_llong(uint32 value) noexcept;
3580 static slong to_llong(uint64 value);
3600 static slong to_llong(const xtd::string& value);
3611 static slong to_llong(const xtd::string& value, xtd::byte from_base);
3613 static slong to_llong(const std::string& value);
3614#if defined(__xtd__cpp_lib_char8_t)
3615 static slong to_llong(const std::u8string& value);
3616#endif
3617 static slong to_llong(const std::u16string& value);
3618 static slong to_llong(const std::u32string& value);
3619 static slong to_llong(const std::wstring& value);
3620 static slong to_llong(const char* value);
3621 static slong to_llong(char* value);
3622#if defined(__xtd__cpp_lib_char8_t)
3623 static slong to_llong(const char8* value);
3624 static slong to_llong(char8* value);
3625#endif
3626 static slong to_llong(const char16* value);
3627 static slong to_llong(char16* value);
3628 static slong to_llong(const char32* value);
3629 static slong to_llong(char32* value);
3630 static slong to_llong(const wchar* value);
3631 static slong to_llong(wchar* value);
3641 template<class type_t>
3642 static slong to_llong(type_t value) noexcept {
3643 return static_cast<slong>(value);
3644 }
3645
3654 static sbyte to_sbyte(std::any value);
3663 static sbyte to_sbyte(bool value) noexcept;
3672 static sbyte to_sbyte(xtd::byte value) noexcept;
3681 static sbyte to_sbyte(char value) noexcept;
3682#if defined(__xtd__cpp_lib_char8_t)
3691 static sbyte to_sbyte(char8 value) noexcept;
3692#endif
3702 static sbyte to_sbyte(char16 value);
3712 static sbyte to_sbyte(char32 value);
3722 static sbyte to_sbyte(wchar value);
3733 static sbyte to_sbyte(decimal value);
3744 static sbyte to_sbyte(double value);
3755 static sbyte to_sbyte(float value);
3765 static sbyte to_sbyte(int16 value);
3775 static sbyte to_sbyte(int32 value);
3785 static sbyte to_sbyte(int64 value);
3795 static sbyte to_sbyte(slong value);
3805 static sbyte to_sbyte(sbyte value);
3815 static sbyte to_sbyte(uint16 value);
3825 static sbyte to_sbyte(uint32 value);
3835 static sbyte to_sbyte(uint64 value);
3855 static sbyte to_sbyte(const xtd::string& value);
3866 static sbyte to_sbyte(const xtd::string& value, xtd::byte from_base);
3868 static sbyte to_sbyte(const std::string& value);
3869#if defined(__xtd__cpp_lib_char8_t)
3870 static sbyte to_sbyte(const std::u8string& value);
3871#endif
3872 static sbyte to_sbyte(const std::u16string& value);
3873 static sbyte to_sbyte(const std::u32string& value);
3874 static sbyte to_sbyte(const std::wstring& value);
3875 static sbyte to_sbyte(const char* value);
3876 static sbyte to_sbyte(char* value);
3877#if defined(__xtd__cpp_lib_char8_t)
3878 static sbyte to_sbyte(const char8* value);
3879 static sbyte to_sbyte(char8* value);
3880#endif
3881 static sbyte to_sbyte(const char16* value);
3882 static sbyte to_sbyte(char16* value);
3883 static sbyte to_sbyte(const char32* value);
3884 static sbyte to_sbyte(char32* value);
3885 static sbyte to_sbyte(const wchar* value);
3886 static sbyte to_sbyte(wchar* value);
3896 template<class type_t>
3897 static sbyte to_sbyte(type_t value) noexcept {
3898 return static_cast<sbyte>(value);
3899 }
3900
3909 static uint16 to_uint16(std::any value);
3918 static uint16 to_uint16(bool value) noexcept;
3927 static uint16 to_uint16(xtd::byte value) noexcept;
3936 static uint16 to_uint16(char value) noexcept;
3937#if defined(__xtd__cpp_lib_char8_t)
3946 static uint16 to_uint16(char8 value) noexcept;
3947#endif
3956 static uint16 to_uint16(char16 value) noexcept;
3966 static uint16 to_uint16(char32 value);
3975 static uint16 to_uint16(wchar value) noexcept;
3986 static uint16 to_uint16(decimal value);
3997 static uint16 to_uint16(double value);
4008 static uint16 to_uint16(float value);
4018 static uint16 to_uint16(int16 value);
4028 static uint16 to_uint16(int32 value);
4038 static uint16 to_uint16(int64 value);
4048 static uint16 to_uint16(slong value);
4058 static uint16 to_uint16(sbyte value);
4067 static uint16 to_uint16(uint16 value) noexcept;
4077 static uint16 to_uint16(uint32 value);
4087 static uint16 to_uint16(uint64 value);
4107 static uint16 to_uint16(const xtd::string& value);
4118 static uint16 to_uint16(const xtd::string& value, xtd::byte from_base);
4120 static uint16 to_uint16(const std::string& value);
4121#if defined(__xtd__cpp_lib_char8_t)
4122 static uint16 to_uint16(const std::u8string& value);
4123#endif
4124 static uint16 to_uint16(const std::u16string& value);
4125 static uint16 to_uint16(const std::u32string& value);
4126 static uint16 to_uint16(const std::wstring& value);
4127 static uint16 to_uint16(const char* value);
4128 static uint16 to_uint16(char* value);
4129#if defined(__xtd__cpp_lib_char8_t)
4130 static uint16 to_uint16(const char8* value);
4131 static uint16 to_uint16(char8* value);
4132#endif
4133 static uint16 to_uint16(const char16* value);
4134 static uint16 to_uint16(char16* value);
4135 static uint16 to_uint16(const char32* value);
4136 static uint16 to_uint16(char32* value);
4137 static uint16 to_uint16(const wchar* value);
4138 static uint16 to_uint16(wchar* value);
4148 template<class type_t>
4149 static uint16 to_uint16(type_t value) noexcept {
4150 return static_cast<uint16>(value);
4151 }
4152
4161 static uint32 to_uint32(std::any value);
4170 static uint32 to_uint32(bool value) noexcept;
4179 static uint32 to_uint32(xtd::byte value) noexcept;
4188 static uint32 to_uint32(char value) noexcept;
4189#if defined(__xtd__cpp_lib_char8_t)
4198 static uint32 to_uint32(char8 value) noexcept;
4199#endif
4208 static uint32 to_uint32(char16 value) noexcept;
4217 static uint32 to_uint32(char32 value) noexcept;
4226 static uint32 to_uint32(wchar value) noexcept;
4237 static uint32 to_uint32(decimal value);
4248 static uint32 to_uint32(double value);
4259 static uint32 to_uint32(float value);
4269 static uint32 to_uint32(int16 value);
4279 static uint32 to_uint32(int32 value);
4289 static uint32 to_uint32(int64 value);
4299 static uint32 to_uint32(slong value);
4309 static uint32 to_uint32(sbyte value);
4318 static uint32 to_uint32(uint16 value) noexcept;
4327 static uint32 to_uint32(uint32 value) noexcept;
4337 static uint32 to_uint32(uint64 value);
4357 static uint32 to_uint32(const xtd::string& value);
4368 static uint32 to_uint32(const xtd::string& value, xtd::byte from_base);
4370 static uint32 to_uint32(const std::string& value);
4371#if defined(__xtd__cpp_lib_char8_t)
4372 static uint32 to_uint32(const std::u8string& value);
4373#endif
4374 static uint32 to_uint32(const std::u16string& value);
4375 static uint32 to_uint32(const std::u32string& value);
4376 static uint32 to_uint32(const std::wstring& value);
4377 static uint32 to_uint32(const char* value);
4378 static uint32 to_uint32(char* value);
4379#if defined(__xtd__cpp_lib_char8_t)
4380 static uint32 to_uint32(const char8* value);
4381 static uint32 to_uint32(char8* value);
4382#endif
4383 static uint32 to_uint32(const char16* value);
4384 static uint32 to_uint32(char16* value);
4385 static uint32 to_uint32(const char32* value);
4386 static uint32 to_uint32(char32* value);
4387 static uint32 to_uint32(const wchar* value);
4388 static uint32 to_uint32(wchar* value);
4398 template<class type_t>
4399 static uint32 to_uint32(type_t value) noexcept {
4400 return static_cast<uint32>(value);
4401 }
4402
4411 static uint64 to_uint64(std::any value);
4420 static uint64 to_uint64(bool value) noexcept;
4429 static uint64 to_uint64(xtd::byte value) noexcept;
4438 static uint64 to_uint64(char value) noexcept;
4439#if defined(__xtd__cpp_lib_char8_t)
4448 static uint64 to_uint64(char8 value) noexcept;
4449#endif
4458 static uint64 to_uint64(char16 value) noexcept;
4467 static uint64 to_uint64(char32 value) noexcept;
4476 static uint64 to_uint64(wchar value) noexcept;
4487 static uint64 to_uint64(decimal value);
4498 static uint64 to_uint64(double value);
4509 static uint64 to_uint64(float value);
4519 static uint64 to_uint64(int16 value);
4529 static uint64 to_uint64(int32 value);
4539 static uint64 to_uint64(int64 value);
4549 static uint64 to_uint64(slong value);
4559 static uint64 to_uint64(sbyte value);
4568 static uint64 to_uint64(uint16 value) noexcept;
4577 static uint64 to_uint64(uint32 value) noexcept;
4587 static uint64 to_uint64(uint64 value) noexcept;
4596 static uint64 to_uint64(xtd::ulong value) noexcept;
4605 static uint64 to_uint64(const xtd::string& value);
4616 static uint64 to_uint64(const xtd::string& value, xtd::byte from_base);
4618 static uint64 to_uint64(const std::string& value);
4619#if defined(__xtd__cpp_lib_char8_t)
4620 static uint64 to_uint64(const std::u8string& value);
4621#endif
4622 static uint64 to_uint64(const std::u16string& value);
4623 static uint64 to_uint64(const std::u32string& value);
4624 static uint64 to_uint64(const std::wstring& value);
4625 static uint64 to_uint64(const char* value);
4626 static uint64 to_uint64(char* value);
4627#if defined(__xtd__cpp_lib_char8_t)
4628 static uint64 to_uint64(const char8* value);
4629 static uint64 to_uint64(char8* value);
4630#endif
4631 static uint64 to_uint64(const char16* value);
4632 static uint64 to_uint64(char16* value);
4633 static uint64 to_uint64(const char32* value);
4634 static uint64 to_uint64(char32* value);
4635 static uint64 to_uint64(const wchar* value);
4636 static uint64 to_uint64(wchar* value);
4646 template<class type_t>
4647 static uint64 to_uint64(type_t value) noexcept {
4648 return static_cast<uint64>(value);
4649 }
4650
4659 static xtd::ulong to_ullong(std::any value);
4668 static xtd::ulong to_ullong(bool value) noexcept;
4677 static xtd::ulong to_ullong(xtd::byte value) noexcept;
4686 static xtd::ulong to_ullong(char value) noexcept;
4687#if defined(__xtd__cpp_lib_char8_t)
4696 static xtd::ulong to_ullong(char8 value) noexcept;
4697#endif
4706 static xtd::ulong to_ullong(char16 value) noexcept;
4715 static xtd::ulong to_ullong(char32 value) noexcept;
4724 static xtd::ulong to_ullong(wchar value) noexcept;
4746 static xtd::ulong to_ullong(double value);
4757 static xtd::ulong to_ullong(float value);
4816 static xtd::ulong to_ullong(uint16 value) noexcept;
4825 static xtd::ulong to_ullong(uint32 value) noexcept;
4835 static xtd::ulong to_ullong(uint64 value) noexcept;
4844 static xtd::ulong to_ullong(xtd::ulong value) noexcept;
4853 static xtd::ulong to_ullong(const xtd::string& value);
4864 static xtd::ulong to_ullong(const xtd::string& value, xtd::byte from_base);
4866 static xtd::ulong to_ullong(const std::string& value);
4867#if defined(__xtd__cpp_lib_char8_t)
4868 static xtd::ulong to_ullong(const std::u8string& value);
4869#endif
4870 static xtd::ulong to_ullong(const std::u16string& value);
4871 static xtd::ulong to_ullong(const std::u32string& value);
4872 static xtd::ulong to_ullong(const std::wstring& value);
4873 static xtd::ulong to_ullong(const char* value);
4874 static xtd::ulong to_ullong(char* value);
4875#if defined(__xtd__cpp_lib_char8_t)
4876 static xtd::ulong to_ullong(const char8* value);
4877 static xtd::ulong to_ullong(char8* value);
4878#endif
4879 static xtd::ulong to_ullong(const char16* value);
4880 static xtd::ulong to_ullong(char16* value);
4881 static xtd::ulong to_ullong(const char32* value);
4882 static xtd::ulong to_ullong(char32* value);
4883 static xtd::ulong to_ullong(const wchar* value);
4884 static xtd::ulong to_ullong(wchar* value);
4894 template<class type_t>
4895 static xtd::ulong to_ullong(type_t value) noexcept {
4896 return static_cast<xtd::ulong>(value);
4897 }
4898
4907 static string to_string(std::any value);
4916 static string to_string(bool value) noexcept;
4925 static string to_string(xtd::byte value) noexcept;
4936 static string to_string(xtd::byte value, xtd::byte from_base);
4945 static string to_string(char value) noexcept;
4946#if defined(__xtd__cpp_lib_char8_t)
4955 static string to_string(char8 value) noexcept;
4956#endif
4965 static string to_string(char16 value) noexcept;
4974 static string to_string(char32 value) noexcept;
4983 static string to_string(wchar value) noexcept;
4994 static string to_string(decimal value);
5005 static string to_string(double value);
5016 static string to_string(float value);
5026 static string to_string(int16 value);
5037 static string to_string(int16 value, xtd::byte from_base);
5047 static string to_string(int32 value);
5058 static string to_string(int32 value, xtd::byte from_base);
5068 static string to_string(int64 value);
5079 static string to_string(int64 value, xtd::byte from_base);
5089 static string to_string(slong value);
5100 static string to_string(slong value, xtd::byte from_base);
5110 static string to_string(sbyte value);
5121 static string to_string(sbyte value, xtd::byte from_base);
5130 static string to_string(uint16 value) noexcept;
5141 static string to_string(uint16 value, xtd::byte from_base);
5150 static string to_string(uint32 value) noexcept;
5161 static string to_string(uint32 value, xtd::byte from_base);
5171 static string to_string(uint64 value) noexcept;
5182 static string to_string(uint64 value, xtd::byte from_base);
5191 static string to_string(xtd::ulong value) noexcept;
5202 static string to_string(xtd::ulong value, xtd::byte from_base);
5211 static string to_string(const xtd::string& value);
5213 static string to_string(const std::string& value);
5214#if defined(__xtd__cpp_lib_char8_t)
5215 static string to_string(const std::u8string& value);
5216#endif
5217 static string to_string(const std::u16string& value);
5218 static string to_string(const std::u32string& value);
5219 static string to_string(const std::wstring& value);
5220 static string to_string(const char* value);
5221 static string to_string(char* value);
5222#if defined(__xtd__cpp_lib_char8_t)
5223 static string to_string(const char8* value);
5224 static string to_string(char8* value);
5225#endif
5226 static string to_string(const char16* value);
5227 static string to_string(char16* value);
5228 static string to_string(const char32* value);
5229 static string to_string(char32* value);
5230 static string to_string(const wchar* value);
5231 static string to_string(wchar* value);
5241 template<class type_t>
5242 static string to_string(type_t value) noexcept {
5243 return string::format("{}", value);
5244 }
5245
5254 static string to_ustring(std::any value);
5263 static string to_ustring(bool value) noexcept;
5272 static string to_ustring(xtd::byte value) noexcept;
5283 static string to_ustring(xtd::byte value, xtd::byte from_base);
5292 static string to_ustring(char value) noexcept;
5293#if defined(__xtd__cpp_lib_char8_t)
5302 static string to_ustring(char8 value) noexcept;
5303#endif
5312 static string to_ustring(char16 value) noexcept;
5321 static string to_ustring(char32 value) noexcept;
5330 static string to_ustring(wchar value) noexcept;
5341 static string to_ustring(decimal value);
5352 static string to_ustring(double value);
5363 static string to_ustring(float value);
5373 static string to_ustring(int16 value);
5384 static string to_ustring(int16 value, xtd::byte from_base);
5394 static string to_ustring(int32 value);
5405 static string to_ustring(int32 value, xtd::byte from_base);
5415 static string to_ustring(int64 value);
5426 static string to_ustring(int64 value, xtd::byte from_base);
5436 static string to_ustring(slong value);
5447 static string to_ustring(slong value, xtd::byte from_base);
5457 static string to_ustring(sbyte value);
5468 static string to_ustring(sbyte value, xtd::byte from_base);
5477 static string to_ustring(uint16 value) noexcept;
5488 static string to_ustring(uint16 value, xtd::byte from_base);
5497 static string to_ustring(uint32 value) noexcept;
5508 static string to_ustring(uint32 value, xtd::byte from_base);
5518 static string to_ustring(uint64 value) noexcept;
5529 static string to_ustring(uint64 value, xtd::byte from_base);
5538 static string to_ustring(xtd::ulong value) noexcept;
5549 static string to_ustring(xtd::ulong value, xtd::byte from_base);
5558 static string to_ustring(const xtd::string& value);
5560 static string to_ustring(const std::string& value);
5561#if defined(__xtd__cpp_lib_char8_t)
5562 static string to_ustring(const std::u8string& value);
5563#endif
5564 static string to_ustring(const std::u16string& value);
5565 static string to_ustring(const std::u32string& value);
5566 static string to_ustring(const std::wstring& value);
5567 static string to_ustring(const char* value);
5568 static string to_ustring(char* value);
5569#if defined(__xtd__cpp_lib_char8_t)
5570 static string to_ustring(const char8* value);
5571 static string to_ustring(char8* value);
5572#endif
5573 static string to_ustring(const char16* value);
5574 static string to_ustring(char16* value);
5575 static string to_ustring(const char32* value);
5576 static string to_ustring(char32* value);
5577 static string to_ustring(const wchar* value);
5578 static string to_ustring(wchar* value);
5588 template<class type_t>
5589 static string to_ustring(type_t value) noexcept {
5590 return string::format("{}", value);
5591 }
5593 };
5594}
Contains __xtd_std_version definitions.
Contains std::any type and std::bad_any_cast exception.
Contains xtd::argument_exception exception.
Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the ba...
Definition array.hpp:59
Represents text as a sequence of character units.
Definition basic_string.hpp:71
Represents API to convert base type code.
Definition convert.hpp:31
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.hpp:1495
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.hpp:4399
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 xtd::string to_base64_string(const xtd::array< xtd::byte > &in_array)
Converts an array of 8-bit unsigned integers to its equivalent string representation that is encoded ...
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.hpp:2911
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 xtd::string to_base64_string(const xtd::read_only_span< xtd::byte > &bytes)
Converts a read only span of 8-bit unsigned integers to its equivalent string representation that is ...
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.hpp:1733
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.hpp:3158
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 xtd::array< xtd::byte > from_base64_string(const xtd::string &s)
Converts the specified string, which encodes binary data as base-64 digits, to an equivalent 8-bit un...
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.hpp:518
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.hpp:4895
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.hpp:2202
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.hpp:4647
static uint16 to_uint16(type_t value) noexcept
Convert type_t to uint16.
Definition convert.hpp:4149
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.hpp:773
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.hpp:1254
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.hpp:3642
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.hpp:270
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.hpp:2660
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.hpp:5589
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.hpp:3897
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.hpp:1973
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.hpp:1016
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.hpp:3400
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.hpp:2431
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.hpp:5242
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.
static void throws(xtd::helpers::exception_case exception_case, const source_location &location=source_location::current())
Throws an exption with specified exception case.
Represents a non-owning view over a contiguous sequence of objects.
Definition read_only_span.hpp:52
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 ...
@ invalid_cast
The cast is not valid.
#define static_
This keyword is use to represent a static object. A static object can't be instantiated (constructors...
Definition static.hpp:37
int16_t int16
Represents a 16-bit signed integer.
Definition int16.hpp:23
char8_t char8
Represents a 8-bit unicode character.
Definition char8.hpp:27
wchar_t wchar
Represents a wide character.
Definition wchar.hpp:24
int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:23
long double decimal
Represents a decimal-precision floating-point number.
Definition decimal.hpp:23
int64_t int64
Represents a 64-bit signed integer.
Definition int64.hpp:23
__ulong__ ulong
Represents a 32-bit or 64-bit unsigned integer.
Definition ulong.hpp:27
int8_t sbyte
Represents a 8-bit signed integer.
Definition sbyte.hpp:23
char16_t char16
Represents a 16-bit unicode character.
Definition char16.hpp:26
uint32_t uint32
Represents a 32-bit unsigned integer.
Definition uint32.hpp:23
char32_t char32
Represents a 32-bit unicode character.
Definition char32.hpp:26
uint64_t uint64
Represents a 64-bit unsigned integer.
Definition uint64.hpp:23
uint8_t byte
Represents a 8-bit unsigned integer.
Definition byte.hpp:23
uint16_t uint16
Represents a 16-bit unsigned integer.
Definition uint16.hpp:23
__slong__ slong
Represents a 32-bit or 64-bit signed integer.
Definition slong.hpp:27
@ s
The S key.
Contains xtd::invalid_cast_exception exception.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10
Contains xtd::overflow_exception exception.
Contains xtd::read_only_span class.
Contains xtd::static_object class.
Contains xtd::string alias.
Contains xtd fundamental types.