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 xtd::any to_any(xtd::any value) noexcept;
62 static xtd::any to_any(bool value) noexcept;
71 static xtd::any to_any(xtd::byte value) noexcept;
80 static xtd::any to_any(char value) noexcept;
90 static xtd::any to_any(char8 value);
99 static xtd::any to_any(char16 value) noexcept;
108 static xtd::any to_any(char32 value) noexcept;
117 static xtd::any to_any(wchar value) noexcept;
126 static xtd::any to_any(decimal value) noexcept;
135 static xtd::any to_any(double value) noexcept;
147 static xtd::any to_any(float value) noexcept;
156 static xtd::any to_any(int16 value) noexcept;
165 static xtd::any to_any(int32 value) noexcept;
174 static xtd::any to_any(int64 value) noexcept;
183 static xtd::any to_any(slong value) noexcept;
192 static xtd::any to_any(sbyte value) noexcept;
201 static xtd::any to_any(uint16 value) noexcept;
210 static xtd::any to_any(uint32 value) noexcept;
219 static xtd::any to_any(uint64 value) noexcept;
228 static xtd::any to_any(xtd::ulong value) noexcept;
237 static xtd::any to_any(const xtd::string& value) noexcept;
239 static xtd::any to_any(const std::string& value) noexcept;
240 static xtd::any to_any(const std::u8string& value) noexcept;
241 static xtd::any to_any(const std::u16string& value) noexcept;
242 static xtd::any to_any(const std::u32string& value) noexcept;
243 static xtd::any to_any(const std::wstring& value) noexcept;
244 static xtd::any to_any(const char* value) noexcept;
245 static xtd::any to_any(char* value) noexcept;
246 static xtd::any to_any(const char8* value);
247 static xtd::any to_any(char8* value);
248 static xtd::any to_any(const char16* value) noexcept;
249 static xtd::any to_any(char16* value) noexcept;
250 static xtd::any to_any(const char32* value) noexcept;
251 static xtd::any to_any(char32* value) noexcept;
252 static xtd::any to_any(const wchar* value) noexcept;
253 static xtd::any to_any(wchar* value) noexcept;
263 template<class type_t>
264 static xtd::any to_any(type_t value) {
265 try {
266 return xtd::any(value);
267 } catch (...) {
269 }
270 }
271
280
290 static bool to_boolean(xtd::any value);
299 static bool to_boolean(bool value) noexcept;
308 static bool to_boolean(xtd::byte value) noexcept;
318 static bool to_boolean(char value);
328 static bool to_boolean(char8 value);
338 static bool to_boolean(char16 value);
348 static bool to_boolean(char32 value);
358 static bool to_boolean(wchar value);
367 static bool to_boolean(decimal value) noexcept;
376 static bool to_boolean(double value) noexcept;
388 static bool to_boolean(float value) noexcept;
397 static bool to_boolean(int16 value) noexcept;
406 static bool to_boolean(int32 value) noexcept;
415 static bool to_boolean(int64 value) noexcept;
424 static bool to_boolean(slong value) noexcept;
433 static bool to_boolean(sbyte value) noexcept;
442 static bool to_boolean(uint16 value) noexcept;
451 static bool to_boolean(uint32 value) noexcept;
460 static bool to_boolean(uint64 value) noexcept;
469 static bool to_boolean(xtd::ulong value) noexcept;
479 static bool to_boolean(const xtd::string& value);
481 static bool to_boolean(const std::string& value);
482 static bool to_boolean(const std::u8string& value);
483 static bool to_boolean(const std::u16string& value);
484 static bool to_boolean(const std::u32string& value);
485 static bool to_boolean(const std::wstring& value);
486 static bool to_boolean(const char* value);
487 static bool to_boolean(char* value);
488 static bool to_boolean(const char8* value);
489 static bool to_boolean(char8* value);
490 static bool to_boolean(const char16* value);
491 static bool to_boolean(char16* value);
492 static bool to_boolean(const char32* value);
493 static bool to_boolean(char32* value);
494 static bool to_boolean(const wchar* value);
495 static bool to_boolean(wchar* value);
505 template<class type_t>
506 static bool to_boolean(type_t value) noexcept {
507 return static_cast<bool>(value);
508 }
509
527 static xtd::byte to_byte(bool value) noexcept;
536 static xtd::byte to_byte(xtd::byte value) noexcept;
545 static xtd::byte to_byte(char value) noexcept;
554 static xtd::byte to_byte(char8 value) noexcept;
564 static xtd::byte to_byte(char16 value);
574 static xtd::byte to_byte(char32 value);
584 static xtd::byte to_byte(wchar value);
595 static xtd::byte to_byte(decimal value);
606 static xtd::byte to_byte(double value);
617 static xtd::byte to_byte(float value);
627 static xtd::byte to_byte(int16 value);
637 static xtd::byte to_byte(int32 value);
647 static xtd::byte to_byte(int64 value);
657 static xtd::byte to_byte(slong value);
667 static xtd::byte to_byte(sbyte value);
677 static xtd::byte to_byte(uint16 value);
687 static xtd::byte to_byte(uint32 value);
697 static xtd::byte to_byte(uint64 value);
717 static xtd::byte to_byte(const xtd::string& value);
728 static xtd::byte to_byte(const xtd::string& value, xtd::byte from_base);
730 static xtd::byte to_byte(const std::string& value);
731 static xtd::byte to_byte(const std::u8string& value);
732 static xtd::byte to_byte(const std::u16string& value);
733 static xtd::byte to_byte(const std::u32string& value);
734 static xtd::byte to_byte(const std::wstring& value);
735 static xtd::byte to_byte(const char* value);
736 static xtd::byte to_byte(char* value);
737 static xtd::byte to_byte(const char8* value);
738 static xtd::byte to_byte(char8* value);
739 static xtd::byte to_byte(const char16* value);
740 static xtd::byte to_byte(char16* value);
741 static xtd::byte to_byte(const char32* value);
742 static xtd::byte to_byte(char32* value);
743 static xtd::byte to_byte(const wchar* value);
744 static xtd::byte to_byte(wchar* value);
754 template<class type_t>
755 static xtd::byte to_byte(type_t value) noexcept {
756 return static_cast<xtd::byte>(value);
757 }
758
767 static char to_char(xtd::any value);
776 static char to_char(bool value);
785 static char to_char(xtd::byte value) noexcept;
794 static char to_char(char value) noexcept;
803 static char to_char(char8 value) noexcept;
813 static char to_char(char16 value);
823 static char to_char(char32 value);
833 static char to_char(wchar value);
843 static char to_char(decimal value);
854 static char to_char(double value);
865 static char to_char(float value);
875 static char to_char(int16 value);
885 static char to_char(int32 value);
895 static char to_char(int64 value);
905 static char to_char(slong value);
915 static char to_char(sbyte value);
925 static char to_char(uint16 value);
935 static char to_char(uint32 value);
945 static char to_char(uint64 value);
955 static char to_char(xtd::ulong value);
965 static char to_char(const xtd::string& value);
967 static char to_char(const std::string& value);
968 static char to_char(const std::u8string& value);
969 static char to_char(const std::u16string& value);
970 static char to_char(const std::u32string& value);
971 static char to_char(const std::wstring& value);
972 static char to_char(const char* value);
973 static char to_char(char* value);
974 static char to_char(const char8* value);
975 static char to_char(char8* value);
976 static char to_char(const char16* value);
977 static char to_char(char16* value);
978 static char to_char(const char32* value);
979 static char to_char(char32* value);
980 static char to_char(const wchar* value);
981 static char to_char(wchar* value);
991 template<class type_t>
992 static char to_char(type_t value) noexcept {
993 return static_cast<char>(value);
994 }
995
1004 static char8 to_char8(xtd::any value);
1013 static char8 to_char8(bool value);
1022 static char8 to_char8(xtd::byte value) noexcept;
1031 static char8 to_char8(char value) noexcept;
1040 static char8 to_char8(char8 value) noexcept;
1050 static char8 to_char8(char16 value);
1060 static char8 to_char8(char32 value);
1070 static char8 to_char8(wchar value);
1080 static char8 to_char8(decimal value);
1091 static char8 to_char8(double value);
1102 static char8 to_char8(float value);
1112 static char8 to_char8(int16 value);
1122 static char8 to_char8(int32 value);
1132 static char8 to_char8(int64 value);
1142 static char8 to_char8(slong value);
1152 static char8 to_char8(sbyte value);
1162 static char8 to_char8(uint16 value);
1172 static char8 to_char8(uint32 value);
1182 static char8 to_char8(uint64 value);
1202 static char8 to_char8(const xtd::string& value);
1204 static char8 to_char8(const std::string& value);
1205 static char8 to_char8(const std::u8string& value);
1206 static char8 to_char8(const std::u16string& value);
1207 static char8 to_char8(const std::u32string& value);
1208 static char8 to_char8(const std::wstring& value);
1209 static char8 to_char8(const char* value);
1210 static char8 to_char8(char* value);
1211 static char8 to_char8(const char8* value);
1212 static char8 to_char8(char8* value);
1213 static char8 to_char8(const char16* value);
1214 static char8 to_char8(char16* value);
1215 static char8 to_char8(const char32* value);
1216 static char8 to_char8(char32* value);
1217 static char8 to_char8(const wchar* value);
1218 static char8 to_char8(wchar* value);
1228 template<class type_t>
1229 static char8 to_char8(type_t value) noexcept {
1230 return static_cast<char8>(value);
1231 }
1232
1250 static char16 to_char16(bool value);
1259 static char16 to_char16(xtd::byte value) noexcept;
1268 static char16 to_char16(char value) noexcept;
1277 static char16 to_char16(char8 value) noexcept;
1286 static char16 to_char16(char16 value) noexcept;
1296 static char16 to_char16(char32 value);
1305 static char16 to_char16(wchar value) noexcept;
1315 static char16 to_char16(decimal value);
1326 static char16 to_char16(double value);
1337 static char16 to_char16(float value);
1347 static char16 to_char16(int16 value);
1357 static char16 to_char16(int32 value);
1367 static char16 to_char16(int64 value);
1377 static char16 to_char16(slong value);
1387 static char16 to_char16(sbyte value);
1396 static char16 to_char16(uint16 value) noexcept;
1406 static char16 to_char16(uint32 value);
1416 static char16 to_char16(uint64 value);
1436 static char16 to_char16(const xtd::string& value);
1438 static char16 to_char16(const std::string& value);
1439 static char16 to_char16(const std::u8string& value);
1440 static char16 to_char16(const std::u16string& value);
1441 static char16 to_char16(const std::u32string& value);
1442 static char16 to_char16(const std::wstring& value);
1443 static char16 to_char16(const char* value);
1444 static char16 to_char16(char* value);
1445 static char16 to_char16(const char8* value);
1446 static char16 to_char16(char8* value);
1447 static char16 to_char16(const char16* value);
1448 static char16 to_char16(char16* value);
1449 static char16 to_char16(const char32* value);
1450 static char16 to_char16(char32* value);
1451 static char16 to_char16(const wchar* value);
1452 static char16 to_char16(wchar* value);
1462 template<class type_t>
1463 static char16 to_char16(type_t value) noexcept {
1464 return static_cast<char16>(value);
1465 }
1466
1484 static char32 to_char32(bool value);
1493 static char32 to_char32(xtd::byte value) noexcept;
1502 static char32 to_char32(char value) noexcept;
1511 static char32 to_char32(char8 value) noexcept;
1520 static char32 to_char32(char16 value) noexcept;
1529 static char32 to_char32(char32 value) noexcept;
1538 static char32 to_char32(wchar value) noexcept;
1548 static char32 to_char32(decimal value);
1559 static char32 to_char32(double value);
1570 static char32 to_char32(float value);
1580 static char32 to_char32(int16 value);
1590 static char32 to_char32(int32 value);
1600 static char32 to_char32(int64 value);
1610 static char32 to_char32(slong value);
1620 static char32 to_char32(sbyte value);
1629 static char32 to_char32(uint16 value) noexcept;
1638 static char32 to_char32(uint32 value) noexcept;
1648 static char32 to_char32(uint64 value);
1668 static char32 to_char32(const xtd::string& value);
1670 static char32 to_char32(const std::string& value);
1671 static char32 to_char32(const std::u8string& value);
1672 static char32 to_char32(const std::u16string& value);
1673 static char32 to_char32(const std::u32string& value);
1674 static char32 to_char32(const std::wstring& value);
1675 static char32 to_char32(const char* value);
1676 static char32 to_char32(char* value);
1677 static char32 to_char32(const char8* value);
1678 static char32 to_char32(char8* value);
1679 static char32 to_char32(const char16* value);
1680 static char32 to_char32(char16* value);
1681 static char32 to_char32(const char32* value);
1682 static char32 to_char32(char32* value);
1683 static char32 to_char32(const wchar* value);
1684 static char32 to_char32(wchar* value);
1694 template<class type_t>
1695 static char32 to_char32(type_t value) noexcept {
1696 return static_cast<char32>(value);
1697 }
1698
1707 static wchar to_wchar(xtd::any value);
1716 static wchar to_wchar(bool value);
1725 static wchar to_wchar(xtd::byte value) noexcept;
1734 static wchar to_wchar(char value) noexcept;
1743 static wchar to_wchar(char8 value) noexcept;
1752 static wchar to_wchar(char16 value) noexcept;
1762 static wchar to_wchar(char32 value);
1771 static wchar to_wchar(wchar value) noexcept;
1781 static wchar to_wchar(decimal value);
1792 static wchar to_wchar(double value);
1803 static wchar to_wchar(float value);
1813 static wchar to_wchar(int16 value);
1823 static wchar to_wchar(int32 value);
1833 static wchar to_wchar(int64 value);
1843 static wchar to_wchar(slong value);
1853 static wchar to_wchar(sbyte value);
1862 static wchar to_wchar(uint16 value) noexcept;
1872 static wchar to_wchar(uint32 value);
1882 static wchar to_wchar(uint64 value);
1902 static wchar to_wchar(const xtd::string& value);
1904 static wchar to_wchar(const std::string& value);
1905 static wchar to_wchar(const std::u8string& value);
1906 static wchar to_wchar(const std::u16string& value);
1907 static wchar to_wchar(const std::u32string& value);
1908 static wchar to_wchar(const std::wstring& value);
1909 static wchar to_wchar(const char* value);
1910 static wchar to_wchar(char* value);
1911 static wchar to_wchar(const char8* value);
1912 static wchar to_wchar(char8* value);
1913 static wchar to_wchar(const char16* value);
1914 static wchar to_wchar(char16* value);
1915 static wchar to_wchar(const char32* value);
1916 static wchar to_wchar(char32* value);
1917 static wchar to_wchar(const wchar* value);
1918 static wchar to_wchar(wchar* value);
1928 template<class type_t>
1929 static wchar to_wchar(type_t value) noexcept {
1930 return static_cast<wchar>(value);
1931 }
1932
1950 static decimal to_decimal(bool value) noexcept;
1959 static decimal to_decimal(xtd::byte value) noexcept;
1968 static decimal to_decimal(char value) noexcept;
1977 static decimal to_decimal(char8 value) noexcept;
1986 static decimal to_decimal(char16 value) noexcept;
1995 static decimal to_decimal(char32 value) noexcept;
2004 static decimal to_decimal(wchar value) noexcept;
2014 static decimal to_decimal(decimal value) noexcept;
2024 static decimal to_decimal(double value) noexcept;
2034 static decimal to_decimal(float value) noexcept;
2043 static decimal to_decimal(int16 value) noexcept;
2052 static decimal to_decimal(int32 value) noexcept;
2061 static decimal to_decimal(int64 value) noexcept;
2070 static decimal to_decimal(slong value) noexcept;
2079 static decimal to_decimal(sbyte value) noexcept;
2088 static decimal to_decimal(uint16 value) noexcept;
2097 static decimal to_decimal(uint32 value) noexcept;
2106 static decimal to_decimal(uint64 value) noexcept;
2115 static decimal to_decimal(xtd::ulong value) noexcept;
2125 static decimal to_decimal(const xtd::string& value);
2127 static decimal to_decimal(const std::string& value);
2128 static decimal to_decimal(const std::u8string& value);
2129 static decimal to_decimal(const std::u16string& value);
2130 static decimal to_decimal(const std::u32string& value);
2131 static decimal to_decimal(const std::wstring& value);
2132 static decimal to_decimal(const char* value);
2133 static decimal to_decimal(char* value);
2134 static decimal to_decimal(const char8* value);
2135 static decimal to_decimal(char8* value);
2136 static decimal to_decimal(const char16* value);
2137 static decimal to_decimal(char16* value);
2138 static decimal to_decimal(const char32* value);
2139 static decimal to_decimal(char32* value);
2140 static decimal to_decimal(const wchar* value);
2141 static decimal to_decimal(wchar* value);
2151 template<class type_t>
2152 static decimal to_decimal(type_t value) noexcept {
2153 return static_cast<decimal>(value);
2154 }
2155
2164 static double to_double(xtd::any value);
2173 static double to_double(bool value) noexcept;
2182 static double to_double(xtd::byte value) noexcept;
2191 static double to_double(char value) noexcept;
2200 static double to_double(char8 value) noexcept;
2209 static double to_double(char16 value) noexcept;
2218 static double to_double(char32 value) noexcept;
2227 static double to_double(wchar value) noexcept;
2237 static double to_double(decimal value) noexcept;
2247 static double to_double(double value) noexcept;
2257 static double to_double(float value) noexcept;
2266 static double to_double(int16 value) noexcept;
2275 static double to_double(int32 value) noexcept;
2284 static double to_double(int64 value) noexcept;
2293 static double to_double(slong value) noexcept;
2302 static double to_double(sbyte value) noexcept;
2311 static double to_double(uint16 value) noexcept;
2320 static double to_double(uint32 value) noexcept;
2329 static double to_double(uint64 value) noexcept;
2338 static double to_double(xtd::ulong value) noexcept;
2348 static double to_double(const xtd::string& value);
2350 static double to_double(const std::string& value);
2351 static double to_double(const std::u8string& value);
2352 static double to_double(const std::u16string& value);
2353 static double to_double(const std::u32string& value);
2354 static double to_double(const std::wstring& value);
2355 static double to_double(const char* value);
2356 static double to_double(char* value);
2357 static double to_double(const char8* value);
2358 static double to_double(char8* value);
2359 static double to_double(const char16* value);
2360 static double to_double(char16* value);
2361 static double to_double(const char32* value);
2362 static double to_double(char32* value);
2363 static double to_double(const wchar* value);
2364 static double to_double(wchar* value);
2374 template<class type_t>
2375 static double to_double(type_t value) noexcept {
2376 return static_cast<double>(value);
2377 }
2378
2387 static float to_single(xtd::any value);
2396 static float to_single(bool value) noexcept;
2405 static float to_single(xtd::byte value) noexcept;
2414 static float to_single(char value) noexcept;
2423 static float to_single(char8 value) noexcept;
2432 static float to_single(char16 value) noexcept;
2441 static float to_single(char32 value) noexcept;
2450 static float to_single(wchar value) noexcept;
2460 static float to_single(decimal value) noexcept;
2470 static float to_single(double value) noexcept;
2480 static float to_single(float value) noexcept;
2489 static float to_single(int16 value) noexcept;
2498 static float to_single(int32 value) noexcept;
2507 static float to_single(int64 value) noexcept;
2516 static float to_single(slong value) noexcept;
2525 static float to_single(sbyte value) noexcept;
2534 static float to_single(uint16 value) noexcept;
2543 static float to_single(uint32 value) noexcept;
2552 static float to_single(uint64 value) noexcept;
2561 static float to_single(xtd::ulong value) noexcept;
2571 static float to_single(const xtd::string& value);
2573 static float to_single(const std::string& value);
2574 static float to_single(const std::u8string& value);
2575 static float to_single(const std::u16string& value);
2576 static float to_single(const std::u32string& value);
2577 static float to_single(const std::wstring& value);
2578 static float to_single(const char* value);
2579 static float to_single(char* value);
2580 static float to_single(const char8* value);
2581 static float to_single(char8* value);
2582 static float to_single(const char16* value);
2583 static float to_single(char16* value);
2584 static float to_single(const char32* value);
2585 static float to_single(char32* value);
2586 static float to_single(const wchar* value);
2587 static float to_single(wchar* value);
2597 template<class type_t>
2598 static float to_single(type_t value) noexcept {
2599 return static_cast<float>(value);
2600 }
2601
2610 static int16 to_int16(xtd::any value);
2619 static int16 to_int16(bool value) noexcept;
2628 static int16 to_int16(xtd::byte value) noexcept;
2637 static int16 to_int16(char value) noexcept;
2646 static int16 to_int16(char8 value) noexcept;
2655 static int16 to_int16(char16 value) noexcept;
2665 static int16 to_int16(char32 value);
2674 static int16 to_int16(wchar value) noexcept;
2685 static int16 to_int16(decimal value);
2696 static int16 to_int16(double value);
2707 static int16 to_int16(float value);
2716 static int16 to_int16(int16 value) noexcept;
2726 static int16 to_int16(int32 value);
2736 static int16 to_int16(int64 value);
2746 static int16 to_int16(slong value);
2755 static int16 to_int16(sbyte value) noexcept;
2765 static int16 to_int16(uint16 value);
2775 static int16 to_int16(uint32 value);
2785 static int16 to_int16(uint64 value);
2805 static int16 to_int16(const xtd::string& value);
2816 static int16 to_int16(const xtd::string& value, xtd::byte from_base);
2818 static int16 to_int16(const std::string& value);
2819 static int16 to_int16(const std::u8string& value);
2820 static int16 to_int16(const std::u16string& value);
2821 static int16 to_int16(const std::u32string& value);
2822 static int16 to_int16(const std::wstring& value);
2823 static int16 to_int16(const char* value);
2824 static int16 to_int16(char* value);
2825 static int16 to_int16(const char8* value);
2826 static int16 to_int16(char8* value);
2827 static int16 to_int16(const char16* value);
2828 static int16 to_int16(char16* value);
2829 static int16 to_int16(const char32* value);
2830 static int16 to_int16(char32* value);
2831 static int16 to_int16(const wchar* value);
2832 static int16 to_int16(wchar* value);
2842 template<class type_t>
2843 static int16 to_int16(type_t value) noexcept {
2844 return static_cast<int16>(value);
2845 }
2846
2855 static int32 to_int32(xtd::any value);
2864 static int32 to_int32(bool value) noexcept;
2873 static int32 to_int32(xtd::byte value) noexcept;
2882 static int32 to_int32(char value) noexcept;
2891 static int32 to_int32(char8 value) noexcept;
2900 static int32 to_int32(char16 value) noexcept;
2909 static int32 to_int32(char32 value) noexcept;
2918 static int32 to_int32(wchar value) noexcept;
2929 static int32 to_int32(decimal value);
2940 static int32 to_int32(double value);
2950 static int32 to_int32(float value) noexcept;
2959 static int32 to_int32(int16 value) noexcept;
2969 static int32 to_int32(int32 value) noexcept;
2978 static int32 to_int32(int64 value);
2988 static int32 to_int32(slong value);
2997 static int32 to_int32(sbyte value) noexcept;
3006 static int32 to_int32(uint16 value) noexcept;
3016 static int32 to_int32(uint32 value);
3026 static int32 to_int32(uint64 value);
3046 static int32 to_int32(const xtd::string& value);
3057 static int32 to_int32(const xtd::string& value, xtd::byte from_base);
3059 static int32 to_int32(const std::string& value);
3060 static int32 to_int32(const std::u8string& value);
3061 static int32 to_int32(const std::u16string& value);
3062 static int32 to_int32(const std::u32string& value);
3063 static int32 to_int32(const std::wstring& value);
3064 static int32 to_int32(const char* value);
3065 static int32 to_int32(char* value);
3066 static int32 to_int32(const char8* value);
3067 static int32 to_int32(char8* value);
3068 static int32 to_int32(const char16* value);
3069 static int32 to_int32(char16* value);
3070 static int32 to_int32(const char32* value);
3071 static int32 to_int32(char32* value);
3072 static int32 to_int32(const wchar* value);
3073 static int32 to_int32(wchar* value);
3083 template<class type_t>
3084 static int32 to_int32(type_t value) noexcept {
3085 return static_cast<int32>(value);
3086 }
3087
3096 static int64 to_int64(xtd::any value);
3105 static int64 to_int64(bool value) noexcept;
3114 static int64 to_int64(xtd::byte value) noexcept;
3123 static int64 to_int64(char value) noexcept;
3132 static int64 to_int64(char8 value) noexcept;
3141 static int64 to_int64(char16 value) noexcept;
3150 static int64 to_int64(char32 value) noexcept;
3159 static int64 to_int64(wchar value) noexcept;
3169 static int64 to_int64(decimal value) noexcept;
3179 static int64 to_int64(double value) noexcept;
3189 static int64 to_int64(float value) noexcept;
3198 static int64 to_int64(int16 value) noexcept;
3207 static int64 to_int64(int32 value) noexcept;
3216 static int64 to_int64(int64 value) noexcept;
3225 static int64 to_int64(slong value) noexcept;
3234 static int64 to_int64(sbyte value) noexcept;
3243 static int64 to_int64(uint16 value) noexcept;
3252 static int64 to_int64(uint32 value) noexcept;
3262 static int64 to_int64(uint64 value);
3282 static int64 to_int64(const xtd::string& value);
3293 static int64 to_int64(const xtd::string& value, xtd::byte from_base);
3295 static int64 to_int64(const std::string& value);
3296 static int64 to_int64(const std::u8string& value);
3297 static int64 to_int64(const std::u16string& value);
3298 static int64 to_int64(const std::u32string& value);
3299 static int64 to_int64(const std::wstring& value);
3300 static int64 to_int64(const char* value);
3301 static int64 to_int64(char* value);
3302 static int64 to_int64(const char8* value);
3303 static int64 to_int64(char8* value);
3304 static int64 to_int64(const char16* value);
3305 static int64 to_int64(char16* value);
3306 static int64 to_int64(const char32* value);
3307 static int64 to_int64(char32* value);
3308 static int64 to_int64(const wchar* value);
3309 static int64 to_int64(wchar* value);
3319 template<class type_t>
3320 static int64 to_int64(type_t value) noexcept {
3321 return static_cast<int64>(value);
3322 }
3323
3332 static slong to_llong(xtd::any value);
3341 static slong to_llong(bool value) noexcept;
3350 static slong to_llong(xtd::byte value) noexcept;
3359 static slong to_llong(char value) noexcept;
3368 static slong to_llong(char8 value) noexcept;
3377 static slong to_llong(char16 value) noexcept;
3386 static slong to_llong(char32 value) noexcept;
3395 static slong to_llong(wchar value) noexcept;
3405 static slong to_llong(decimal value) noexcept;
3415 static slong to_llong(double value) noexcept;
3425 static slong to_llong(float value) noexcept;
3434 static slong to_llong(int16 value) noexcept;
3443 static slong to_llong(int32 value) noexcept;
3452 static slong to_llong(int64 value) noexcept;
3461 static slong to_llong(slong value) noexcept;
3470 static slong to_llong(sbyte value) noexcept;
3479 static slong to_llong(uint16 value) noexcept;
3488 static slong to_llong(uint32 value) noexcept;
3498 static slong to_llong(uint64 value);
3518 static slong to_llong(const xtd::string& value);
3529 static slong to_llong(const xtd::string& value, xtd::byte from_base);
3531 static slong to_llong(const std::string& value);
3532 static slong to_llong(const std::u8string& value);
3533 static slong to_llong(const std::u16string& value);
3534 static slong to_llong(const std::u32string& value);
3535 static slong to_llong(const std::wstring& value);
3536 static slong to_llong(const char* value);
3537 static slong to_llong(char* value);
3538 static slong to_llong(const char8* value);
3539 static slong to_llong(char8* value);
3540 static slong to_llong(const char16* value);
3541 static slong to_llong(char16* value);
3542 static slong to_llong(const char32* value);
3543 static slong to_llong(char32* value);
3544 static slong to_llong(const wchar* value);
3545 static slong to_llong(wchar* value);
3555 template<class type_t>
3556 static slong to_llong(type_t value) noexcept {
3557 return static_cast<slong>(value);
3558 }
3559
3568 static sbyte to_sbyte(xtd::any value);
3577 static sbyte to_sbyte(bool value) noexcept;
3586 static sbyte to_sbyte(xtd::byte value) noexcept;
3595 static sbyte to_sbyte(char value) noexcept;
3604 static sbyte to_sbyte(char8 value) noexcept;
3614 static sbyte to_sbyte(char16 value);
3624 static sbyte to_sbyte(char32 value);
3634 static sbyte to_sbyte(wchar value);
3645 static sbyte to_sbyte(decimal value);
3656 static sbyte to_sbyte(double value);
3667 static sbyte to_sbyte(float value);
3677 static sbyte to_sbyte(int16 value);
3687 static sbyte to_sbyte(int32 value);
3697 static sbyte to_sbyte(int64 value);
3707 static sbyte to_sbyte(slong value);
3717 static sbyte to_sbyte(sbyte value);
3727 static sbyte to_sbyte(uint16 value);
3737 static sbyte to_sbyte(uint32 value);
3747 static sbyte to_sbyte(uint64 value);
3767 static sbyte to_sbyte(const xtd::string& value);
3778 static sbyte to_sbyte(const xtd::string& value, xtd::byte from_base);
3780 static sbyte to_sbyte(const std::string& value);
3781 static sbyte to_sbyte(const std::u8string& value);
3782 static sbyte to_sbyte(const std::u16string& value);
3783 static sbyte to_sbyte(const std::u32string& value);
3784 static sbyte to_sbyte(const std::wstring& value);
3785 static sbyte to_sbyte(const char* value);
3786 static sbyte to_sbyte(char* value);
3787 static sbyte to_sbyte(const char8* value);
3788 static sbyte to_sbyte(char8* value);
3789 static sbyte to_sbyte(const char16* value);
3790 static sbyte to_sbyte(char16* value);
3791 static sbyte to_sbyte(const char32* value);
3792 static sbyte to_sbyte(char32* value);
3793 static sbyte to_sbyte(const wchar* value);
3794 static sbyte to_sbyte(wchar* value);
3804 template<class type_t>
3805 static sbyte to_sbyte(type_t value) noexcept {
3806 return static_cast<sbyte>(value);
3807 }
3808
3826 static uint16 to_uint16(bool value) noexcept;
3835 static uint16 to_uint16(xtd::byte value) noexcept;
3844 static uint16 to_uint16(char value) noexcept;
3853 static uint16 to_uint16(char8 value) noexcept;
3862 static uint16 to_uint16(char16 value) noexcept;
3872 static uint16 to_uint16(char32 value);
3881 static uint16 to_uint16(wchar value) noexcept;
3892 static uint16 to_uint16(decimal value);
3903 static uint16 to_uint16(double value);
3914 static uint16 to_uint16(float value);
3924 static uint16 to_uint16(int16 value);
3934 static uint16 to_uint16(int32 value);
3944 static uint16 to_uint16(int64 value);
3954 static uint16 to_uint16(slong value);
3964 static uint16 to_uint16(sbyte value);
3973 static uint16 to_uint16(uint16 value) noexcept;
3983 static uint16 to_uint16(uint32 value);
3993 static uint16 to_uint16(uint64 value);
4013 static uint16 to_uint16(const xtd::string& value);
4024 static uint16 to_uint16(const xtd::string& value, xtd::byte from_base);
4026 static uint16 to_uint16(const std::string& value);
4027 static uint16 to_uint16(const std::u8string& value);
4028 static uint16 to_uint16(const std::u16string& value);
4029 static uint16 to_uint16(const std::u32string& value);
4030 static uint16 to_uint16(const std::wstring& value);
4031 static uint16 to_uint16(const char* value);
4032 static uint16 to_uint16(char* value);
4033 static uint16 to_uint16(const char8* value);
4034 static uint16 to_uint16(char8* value);
4035 static uint16 to_uint16(const char16* value);
4036 static uint16 to_uint16(char16* value);
4037 static uint16 to_uint16(const char32* value);
4038 static uint16 to_uint16(char32* value);
4039 static uint16 to_uint16(const wchar* value);
4040 static uint16 to_uint16(wchar* value);
4050 template<class type_t>
4051 static uint16 to_uint16(type_t value) noexcept {
4052 return static_cast<uint16>(value);
4053 }
4054
4072 static uint32 to_uint32(bool value) noexcept;
4081 static uint32 to_uint32(xtd::byte value) noexcept;
4090 static uint32 to_uint32(char value) noexcept;
4099 static uint32 to_uint32(char8 value) noexcept;
4108 static uint32 to_uint32(char16 value) noexcept;
4117 static uint32 to_uint32(char32 value) noexcept;
4126 static uint32 to_uint32(wchar value) noexcept;
4137 static uint32 to_uint32(decimal value);
4148 static uint32 to_uint32(double value);
4159 static uint32 to_uint32(float value);
4169 static uint32 to_uint32(int16 value);
4179 static uint32 to_uint32(int32 value);
4189 static uint32 to_uint32(int64 value);
4199 static uint32 to_uint32(slong value);
4209 static uint32 to_uint32(sbyte value);
4218 static uint32 to_uint32(uint16 value) noexcept;
4227 static uint32 to_uint32(uint32 value) noexcept;
4237 static uint32 to_uint32(uint64 value);
4257 static uint32 to_uint32(const xtd::string& value);
4268 static uint32 to_uint32(const xtd::string& value, xtd::byte from_base);
4270 static uint32 to_uint32(const std::string& value);
4271 static uint32 to_uint32(const std::u8string& value);
4272 static uint32 to_uint32(const std::u16string& value);
4273 static uint32 to_uint32(const std::u32string& value);
4274 static uint32 to_uint32(const std::wstring& value);
4275 static uint32 to_uint32(const char* value);
4276 static uint32 to_uint32(char* value);
4277 static uint32 to_uint32(const char8* value);
4278 static uint32 to_uint32(char8* value);
4279 static uint32 to_uint32(const char16* value);
4280 static uint32 to_uint32(char16* value);
4281 static uint32 to_uint32(const char32* value);
4282 static uint32 to_uint32(char32* value);
4283 static uint32 to_uint32(const wchar* value);
4284 static uint32 to_uint32(wchar* value);
4294 template<class type_t>
4295 static uint32 to_uint32(type_t value) noexcept {
4296 return static_cast<uint32>(value);
4297 }
4298
4316 static uint64 to_uint64(bool value) noexcept;
4325 static uint64 to_uint64(xtd::byte value) noexcept;
4334 static uint64 to_uint64(char value) noexcept;
4343 static uint64 to_uint64(char8 value) noexcept;
4352 static uint64 to_uint64(char16 value) noexcept;
4361 static uint64 to_uint64(char32 value) noexcept;
4370 static uint64 to_uint64(wchar value) noexcept;
4381 static uint64 to_uint64(decimal value);
4392 static uint64 to_uint64(double value);
4403 static uint64 to_uint64(float value);
4413 static uint64 to_uint64(int16 value);
4423 static uint64 to_uint64(int32 value);
4433 static uint64 to_uint64(int64 value);
4443 static uint64 to_uint64(slong value);
4453 static uint64 to_uint64(sbyte value);
4462 static uint64 to_uint64(uint16 value) noexcept;
4471 static uint64 to_uint64(uint32 value) noexcept;
4481 static uint64 to_uint64(uint64 value) noexcept;
4490 static uint64 to_uint64(xtd::ulong value) noexcept;
4499 static uint64 to_uint64(const xtd::string& value);
4510 static uint64 to_uint64(const xtd::string& value, xtd::byte from_base);
4512 static uint64 to_uint64(const std::string& value);
4513 static uint64 to_uint64(const std::u8string& value);
4514 static uint64 to_uint64(const std::u16string& value);
4515 static uint64 to_uint64(const std::u32string& value);
4516 static uint64 to_uint64(const std::wstring& value);
4517 static uint64 to_uint64(const char* value);
4518 static uint64 to_uint64(char* value);
4519 static uint64 to_uint64(const char8* value);
4520 static uint64 to_uint64(char8* value);
4521 static uint64 to_uint64(const char16* value);
4522 static uint64 to_uint64(char16* value);
4523 static uint64 to_uint64(const char32* value);
4524 static uint64 to_uint64(char32* value);
4525 static uint64 to_uint64(const wchar* value);
4526 static uint64 to_uint64(wchar* value);
4536 template<class type_t>
4537 static uint64 to_uint64(type_t value) noexcept {
4538 return static_cast<uint64>(value);
4539 }
4540
4558 static xtd::ulong to_ullong(bool value) noexcept;
4567 static xtd::ulong to_ullong(xtd::byte value) noexcept;
4576 static xtd::ulong to_ullong(char value) noexcept;
4585 static xtd::ulong to_ullong(char8 value) noexcept;
4594 static xtd::ulong to_ullong(char16 value) noexcept;
4603 static xtd::ulong to_ullong(char32 value) noexcept;
4612 static xtd::ulong to_ullong(wchar value) noexcept;
4634 static xtd::ulong to_ullong(double value);
4645 static xtd::ulong to_ullong(float value);
4704 static xtd::ulong to_ullong(uint16 value) noexcept;
4713 static xtd::ulong to_ullong(uint32 value) noexcept;
4723 static xtd::ulong to_ullong(uint64 value) noexcept;
4732 static xtd::ulong to_ullong(xtd::ulong value) noexcept;
4741 static xtd::ulong to_ullong(const xtd::string& value);
4752 static xtd::ulong to_ullong(const xtd::string& value, xtd::byte from_base);
4754 static xtd::ulong to_ullong(const std::string& value);
4755 static xtd::ulong to_ullong(const std::u8string& value);
4756 static xtd::ulong to_ullong(const std::u16string& value);
4757 static xtd::ulong to_ullong(const std::u32string& value);
4758 static xtd::ulong to_ullong(const std::wstring& value);
4759 static xtd::ulong to_ullong(const char* value);
4760 static xtd::ulong to_ullong(char* value);
4761 static xtd::ulong to_ullong(const char8* value);
4762 static xtd::ulong to_ullong(char8* value);
4763 static xtd::ulong to_ullong(const char16* value);
4764 static xtd::ulong to_ullong(char16* value);
4765 static xtd::ulong to_ullong(const char32* value);
4766 static xtd::ulong to_ullong(char32* value);
4767 static xtd::ulong to_ullong(const wchar* value);
4768 static xtd::ulong to_ullong(wchar* value);
4778 template<class type_t>
4779 static xtd::ulong to_ullong(type_t value) noexcept {
4780 return static_cast<xtd::ulong>(value);
4781 }
4782
4791 static string to_string(xtd::any value);
4800 static string to_string(bool value) noexcept;
4809 static string to_string(xtd::byte value) noexcept;
4820 static string to_string(xtd::byte value, xtd::byte from_base);
4829 static string to_string(char value) noexcept;
4838 static string to_string(char8 value) noexcept;
4847 static string to_string(char16 value) noexcept;
4856 static string to_string(char32 value) noexcept;
4865 static string to_string(wchar value) noexcept;
4876 static string to_string(decimal value);
4887 static string to_string(double value);
4898 static string to_string(float value);
4908 static string to_string(int16 value);
4919 static string to_string(int16 value, xtd::byte from_base);
4929 static string to_string(int32 value);
4940 static string to_string(int32 value, xtd::byte from_base);
4950 static string to_string(int64 value);
4961 static string to_string(int64 value, xtd::byte from_base);
4971 static string to_string(slong value);
4982 static string to_string(slong value, xtd::byte from_base);
4992 static string to_string(sbyte value);
5003 static string to_string(sbyte value, xtd::byte from_base);
5012 static string to_string(uint16 value) noexcept;
5023 static string to_string(uint16 value, xtd::byte from_base);
5032 static string to_string(uint32 value) noexcept;
5043 static string to_string(uint32 value, xtd::byte from_base);
5053 static string to_string(uint64 value) noexcept;
5064 static string to_string(uint64 value, xtd::byte from_base);
5073 static string to_string(xtd::ulong value) noexcept;
5084 static string to_string(xtd::ulong value, xtd::byte from_base);
5093 static string to_string(const xtd::string& value);
5095 static string to_string(const std::string& value);
5096 static string to_string(const std::u8string& value);
5097 static string to_string(const std::u16string& value);
5098 static string to_string(const std::u32string& value);
5099 static string to_string(const std::wstring& value);
5100 static string to_string(const char* value);
5101 static string to_string(char* value);
5102 static string to_string(const char8* value);
5103 static string to_string(char8* value);
5104 static string to_string(const char16* value);
5105 static string to_string(char16* value);
5106 static string to_string(const char32* value);
5107 static string to_string(char32* value);
5108 static string to_string(const wchar* value);
5109 static string to_string(wchar* value);
5119 template<class type_t>
5120 static string to_string(type_t value) noexcept {
5121 return string::format("{}", value);
5122 }
5123
5130 template<class type_t>
5131 [[deprecated("Replaced by xtd::convert::to_string - Will be removed in version 0.4.0.")]] static string to_ustring(type_t value, xtd::byte from_base) {return to_string(value, from_base);}
5136 template<class string_t>
5137 [[deprecated("Replaced by xtd::convert::to_string - Will be removed in version 0.4.0.")]] static string to_ustring(const string_t& value) {return to_string(value);}
5139 template<class char_t>
5140 [[deprecated("Replaced by xtd::convert::to_string - Will be removed in version 0.4.0.")]] static string to_ustring(const char_t* value) {return to_string(value);}
5141 template<class char_t>
5142 [[deprecated("Replaced by xtd::convert::to_string - Will be removed in version 0.4.0.")]] static string to_ustring(char_t* value) {return to_string(value);}
5145 };
5146}
Contains __xtd_std_version definitions.
Contains xtd::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:61
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 char16 to_char16(xtd::byte value) noexcept
Convert xtd::byte to char16.
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 slong to_llong(slong value) noexcept
Convert slong to slong.
static char32 to_char32(const xtd::string &value)
Convert string to char32.
static xtd::any to_any(wchar value) noexcept
Convert wchar to xtd::any.
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 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_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 xtd::any to_any(const xtd::string &value) noexcept
Convert string to xtd::any.
static wchar to_wchar(xtd::byte value) noexcept
Convert xtd::byte to wchar.
static xtd::any to_any(int16 value) noexcept
Convert int16 to xtd::any.
static string to_string(xtd::any value)
Convert xtd::any to string.
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 uint32 to_uint32(xtd::any value)
Convert xtd::any to uint32.
static float to_single(char value) noexcept
Convert char to single.
static bool to_boolean(int16 value) noexcept
Convert int16 to bool.
static 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 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 xtd::any to_any(char8 value)
Convert char8 to xtd::any.
static float to_single(char32 value) noexcept
Convert char32 to single.
static uint64 to_uint64(uint32 value) noexcept
Convert uint32 to uint64.
static double to_double(int64 value) noexcept
Convert int64 to double.
static double to_double(char8 value) noexcept
Convert char8 to double.
static decimal to_decimal(xtd::any value)
Convert xtd::any to decimal.
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:1463
static char16 to_char16(xtd::any value)
Convert xtd::any to char16.
static string to_string(char value) noexcept
Convert char to string.
static char to_char(xtd::any value)
Convert xtd::any to char.
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 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 uint32 to_uint32(char32 value) noexcept
Convert char32 to uint32.
static double to_double(xtd::byte value) noexcept
Convert xtd::byte to double.
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 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 uint32 to_uint32(wchar value) noexcept
Convert char32 to uint32.
static int32 to_int32(char8 value) noexcept
Convert char8 to int32.
static xtd::any to_any(double value) noexcept
Convert double to xtd::any.
static char32 to_char32(uint16 value) noexcept
Convert uint16 to char32.
static int32 to_int32(xtd::any value)
Convert xtd::any to int32.
static int32 to_int32(xtd::ulong value)
Convert slong to int32.
static char to_char(slong value)
Convert slong to char.
static decimal to_decimal(xtd::byte value) noexcept
Convert xtd::byte to decimal.
static uint32 to_uint32(double value)
Convert double to uint32.
static sbyte to_sbyte(int32 value)
Convert int32 to sbyte.
static xtd::byte to_byte(double value)
Convert double to byte.
static xtd::any to_any(int32 value) noexcept
Convert int32 to xtd::any.
static xtd::byte to_byte(const xtd::string &value)
Convert string to byte.
static int64 to_int64(xtd::any value)
Convert xtd::any to int64.
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 float to_single(xtd::any value)
Convert xtd::any to single.
static decimal to_decimal(char8 value) noexcept
Convert char8 to decimal.
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:4295
static bool to_boolean(char value)
Convert char to bool.
static float to_single(uint32 value) noexcept
Convert uint32 to single.
static wchar to_wchar(double value)
Convert double to wchar.
static slong to_llong(char16 value) noexcept
Convert char16 to slong.
static xtd::byte to_byte(bool value) noexcept
Convert bool to byte.
static char to_char(decimal value)
Convert decimal to char.
static float to_single(slong value) noexcept
Convert slong to single.
static 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(xtd::any value)
Convert xtd::any to sbyte.
static sbyte to_sbyte(const xtd::string &value)
Convert string to sbyte.
static uint16 to_uint16(int32 value)
Convert int32 to uint16.
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:2843
static bool to_boolean(wchar value)
Convert wchar to bool.
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 char32 to_char32(xtd::any value)
Convert xtd::any to char32.
static bool to_boolean(decimal value) noexcept
Convert decimal to bool.
static slong to_llong(xtd::byte value) noexcept
Convert xtd::byte to slong.
static wchar to_wchar(slong value)
Convert slong to wchar.
static xtd::byte to_byte(int64 value)
Convert int64 to byte.
static uint32 to_uint32(const xtd::string &value, xtd::byte from_base)
Convert string to uint32.
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 xtd::any to_any(bool value) noexcept
Convert bool to xtd::any.
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 xtd::ulong to_ullong(xtd::any value)
Convert xtd::any to xtd::ulong.
static sbyte to_sbyte(char16 value)
Convert char16 to sbyte.
static int16 to_int16(xtd::ulong value)
Convert slong to int16.
static xtd::any to_any(sbyte value) noexcept
Convert sbyte to xtd::any.
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 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 xtd::any to_any(type_t value)
Convert type_t to bool.
Definition convert.hpp:264
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:1695
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 xtd::any to_any(decimal value) noexcept
Convert decimal to xtd::any.
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 xtd::any to_any(xtd::any value) noexcept
Convert xtd::any to xtd::any.
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 double to_double(xtd::any value)
Convert xtd::any to double.
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 string to_string(double value)
Convert double to string.
static int32 to_int32(uint32 value)
Convert uint32 to int32.
static int32 to_int32(type_t value) noexcept
Convert type_t to int32.
Definition convert.hpp:3084
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 char to_char(bool value)
Convert bool to char.
static int16 to_int16(xtd::byte value) noexcept
Convert xtd::byte to int16.
static xtd::any to_any(xtd::ulong value) noexcept
Convert slong to xtd::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 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 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:506
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 xtd::any to_any(char16 value) noexcept
Convert char16 to xtd::any.
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 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 xtd::any to_any(uint16 value) noexcept
Convert uint16 to xtd::any.
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:4779
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 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 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 xtd::any to_any(xtd::byte value) noexcept
Convert xtd::byte to xtd::any.
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:2152
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 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:4537
static uint16 to_uint16(type_t value) noexcept
Convert type_t to uint16.
Definition convert.hpp:4051
static char to_char(float value)
Convert float to char.
static xtd::any to_any(float value) noexcept
Convert float to xtd::any.
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 slong to_llong(xtd::any value)
Convert xtd::any to slong.
static uint16 to_uint16(xtd::any value)
Convert xtd::any to uint16.
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 xtd::byte to_byte(type_t value) noexcept
Convert type_t to byte.
Definition convert.hpp:755
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 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 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 xtd::any to_any(uint64 value) noexcept
Convert uint64 to xtd::any.
static char8 to_char8(xtd::any value)
Convert xtd::any to char8.
static wchar to_wchar(xtd::any value)
Convert xtd::any to wchar.
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 xtd::byte to_byte(xtd::any value)
Convert xtd::any to byte.
static string to_string(int64 value)
Convert int64 to string.
static xtd::any to_any(int64 value) noexcept
Convert int64 to xtd::any.
static char8 to_char8(type_t value) noexcept
Convert type_t to char8.
Definition convert.hpp:1229
static decimal to_decimal(uint16 value) noexcept
Convert uint16 to decimal.
static xtd::any to_any(uint32 value) noexcept
Convert uint32 to xtd::any.
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:3556
static decimal to_decimal(char16 value) noexcept
Convert char16 to decimal.
static xtd::any to_any(char32 value) noexcept
Convert char32 to xtd::any.
static uint32 to_uint32(xtd::ulong value)
Convert slong to uint32.
static int32 to_int32(const xtd::string &value)
Convert string to int32.
static uint64 to_uint64(xtd::any value)
Convert xtd::any to uint64.
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 string to_ustring(type_t value, xtd::byte from_base)
Convert type_t to string.
Definition convert.hpp:5131
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 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 xtd::any to_any(slong value) noexcept
Convert slong to xtd::any.
static uint16 to_uint16(float value)
Convert float to uint16.
static char32 to_char32(int64 value)
Convert int64 to char32.
static int16 to_int16(xtd::any value)
Convert xtd::any to int16.
static int16 to_int16(uint16 value)
Convert uint16 to int16.
static bool to_boolean(xtd::any value)
Convert xtd::any to bool.
static int16 to_int16(sbyte value) noexcept
Convert sbyte to int16.
static char to_char(double value)
Convert double to char.
static uint64 to_uint64(float value)
Convert float to uint64.
static uint16 to_uint16(uint16 value) noexcept
Convert uint16 to uint16.
static uint32 to_uint32(int16 value)
Convert int16 to uint32.
static uint64 to_uint64(slong value)
Convert slong to uint64.
static slong to_llong(decimal value) noexcept
Convert decimal to slong.
static float to_single(float value) noexcept
Convert float to single.
static uint32 to_uint32(xtd::byte value) noexcept
Convert xtd::byte to uint32.
static char to_char(int32 value)
Convert int32 to char.
static int32 to_int32(decimal value)
Convert decimal to int32.
static float to_single(type_t value) noexcept
Convert type_t to single.
Definition convert.hpp:2598
static char32 to_char32(bool value)
Convert bool to char32.
static int64 to_int64(xtd::ulong value)
Convert slong to int64.
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:3805
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:1929
static char8 to_char8(decimal value)
Convert decimal to char8.
static decimal to_decimal(int64 value) noexcept
Convert int64 to decimal.
static char32 to_char32(slong value)
Convert slong to char32.
static char to_char(type_t value) noexcept
Convert type_t to char.
Definition convert.hpp:992
static sbyte to_sbyte(bool value) noexcept
Convert bool to sbyte.
static sbyte to_sbyte(sbyte value)
Convert sbyte to sbyte.
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:3320
static char8 to_char8(uint16 value)
Convert uint16 to char8.
static int16 to_int16(double value)
Convert double to int16.
static xtd::any to_any(char value) noexcept
Convert char to xtd::any.
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:2375
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 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 string to_ustring(const string_t &value)
Convert string_t to string.
Definition convert.hpp:5137
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:5120
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.
Contains xtd::format_exception exception.
@ invalid_cast
The cast is not valid.
Definition exception_case.hpp:61
#define static_
This keyword is use to represent a static object. A static object can't be instantiated (constructors...
Definition static.hpp:37
xtd::basic_string< char > string
Represents text as a sequence of UTF-8 code units.
Definition __string_definitions.hpp:43
char8_t char8
Represents a 8-bit unicode character.
Definition char8.hpp:26
__slong__ slong
Represents a 32-bit or 64-bit signed integer.
Definition slong.hpp:27
int8_t sbyte
Represents a 8-bit signed integer.
Definition sbyte.hpp:23
wchar_t wchar
Represents a wide character.
Definition wchar.hpp:24
int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:23
__ulong__ ulong
Represents a 32-bit or 64-bit unsigned integer.
Definition ulong.hpp:27
long double decimal
Represents a decimal-precision floating-point number.
Definition decimal.hpp:23
uint8_t byte
Represents a 8-bit unsigned integer.
Definition byte.hpp:23
char16_t char16
Represents a 16-bit unicode character.
Definition char16.hpp:26
int64_t int64
Represents a 64-bit signed integer.
Definition int64.hpp:23
int16_t int16
Represents a 16-bit signed integer.
Definition int16.hpp:23
uint16_t uint16
Represents a 16-bit unsigned integer.
Definition uint16.hpp:23
uint32_t uint32
Represents a 32-bit unsigned integer.
Definition uint32.hpp:23
uint64_t uint64
Represents a 64-bit unsigned integer.
Definition uint64.hpp:23
char32_t char32
Represents a 32-bit unicode character.
Definition char32.hpp:23
std::any any
Represents the any alias on std::any.
Definition any.hpp:24
@ s
The S key.
Definition console_key.hpp:124
Contains xtd::invalid_cast_exception exception.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
constexpr read_only_span(const element_type(&array)[len]) noexcept
Creates an xtd::read_only_span with specified native array.
Definition read_only_span.hpp:112
string to_string() const noexcept override
Returns the string representation of this xtd::read_only_span <type_t> object.
Definition read_only_span.hpp:375
Contains xtd::overflow_exception exception.
Contains xtd::read_only_span class.
Contains xtd::static_object class.
Contains xtd::string alias.
Contains xtd fundamental types.