xtd - Reference Guide  0.1.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
convert.h
Go to the documentation of this file.
1
4#pragma once
5#include <any>
7#include "static.h"
8#include "types.h"
9#include "ustring.h"
10
12namespace xtd {
21 public:
30 static std::any to_any(std::any value) noexcept;
38 static std::any to_any(bool value) noexcept;
46 static std::any to_any(byte_t value) noexcept;
54 static std::any to_any(char value) noexcept;
63 static std::any to_any(char8_t value);
71 static std::any to_any(char16_t value) noexcept;
79 static std::any to_any(char32_t value) noexcept;
87 static std::any to_any(wchar_t value) noexcept;
95 static std::any to_any(decimal_t value) noexcept;
104 static std::any to_any(double value) noexcept;
116 static std::any to_any(float value) noexcept;
125 static std::any to_any(int16_t value) noexcept;
134 static std::any to_any(int32_t value) noexcept;
143 static std::any to_any(int64_t value) noexcept;
152 static std::any to_any(llong_t value) noexcept;
161 static std::any to_any(sbyte_t value) noexcept;
170 static std::any to_any(uint16_t value) noexcept;
179 static std::any to_any(uint32_t value) noexcept;
188 static std::any to_any(uint64_t value) noexcept;
197 static std::any to_any(ullong_t value) noexcept;
206 static std::any to_any(const xtd::ustring& value) noexcept;
208 static std::any to_any(const std::string& value) noexcept;
209 static std::any to_any(const std::u8string& value) noexcept;
210 static std::any to_any(const std::u16string& value) noexcept;
211 static std::any to_any(const std::u32string& value) noexcept;
212 static std::any to_any(const std::wstring& value) noexcept;
213 static std::any to_any(const char* value) noexcept;
214 static std::any to_any(char* value) noexcept;
215 static std::any to_any(const char8_t* value);
216 static std::any to_any(char8_t* value);
217 static std::any to_any(const char16_t* value) noexcept;
218 static std::any to_any(char16_t* value) noexcept;
219 static std::any to_any(const char32_t* value) noexcept;
220 static std::any to_any(char32_t* value) noexcept;
221 static std::any to_any(const wchar_t* value) noexcept;
222 static std::any to_any(wchar_t* value) noexcept;
232 template<typename type_t>
233 static std::any to_any(type_t value) {
234 try {
235 return std::any(value);
236 } catch(...) {
238 }
239 }
240
250 static bool to_boolean(std::any value);
258 static bool to_boolean(bool value) noexcept;
266 static bool to_boolean(byte_t value) noexcept;
275 static bool to_boolean(char value);
284 static bool to_boolean(char8_t value);
293 static bool to_boolean(char16_t value);
302 static bool to_boolean(char32_t value);
311 static bool to_boolean(wchar_t value);
319 static bool to_boolean(decimal_t value) noexcept;
328 static bool to_boolean(double value) noexcept;
340 static bool to_boolean(float value) noexcept;
349 static bool to_boolean(int16_t value) noexcept;
358 static bool to_boolean(int32_t value) noexcept;
367 static bool to_boolean(int64_t value) noexcept;
376 static bool to_boolean(llong_t value) noexcept;
385 static bool to_boolean(sbyte_t value) noexcept;
394 static bool to_boolean(uint16_t value) noexcept;
403 static bool to_boolean(uint32_t value) noexcept;
412 static bool to_boolean(uint64_t value) noexcept;
421 static bool to_boolean(ullong_t value) noexcept;
431 static bool to_boolean(const xtd::ustring& value);
433 static bool to_boolean(const std::string& value);
434 static bool to_boolean(const std::u8string& value);
435 static bool to_boolean(const std::u16string& value);
436 static bool to_boolean(const std::u32string& value);
437 static bool to_boolean(const std::wstring& value);
438 static bool to_boolean(const char* value);
439 static bool to_boolean(char* value);
440 static bool to_boolean(const char8_t* value);
441 static bool to_boolean(char8_t* value);
442 static bool to_boolean(const char16_t* value);
443 static bool to_boolean(char16_t* value);
444 static bool to_boolean(const char32_t* value);
445 static bool to_boolean(char32_t* value);
446 static bool to_boolean(const wchar_t* value);
447 static bool to_boolean(wchar_t* value);
457 template<typename type_t>
458 static bool to_boolean(type_t value) noexcept {
459 return static_cast<bool>(value);
460 }
461
470 static byte_t to_byte(std::any value);
479 static byte_t to_byte(bool value) noexcept;
488 static byte_t to_byte(byte_t value) noexcept;
497 static byte_t to_byte(char value) noexcept;
506 static byte_t to_byte(char8_t value) noexcept;
516 static byte_t to_byte(char16_t value);
526 static byte_t to_byte(char32_t value);
536 static byte_t to_byte(wchar_t value);
547 static byte_t to_byte(decimal_t value);
558 static byte_t to_byte(double value);
569 static byte_t to_byte(float value);
579 static byte_t to_byte(int16_t value);
589 static byte_t to_byte(int32_t value);
599 static byte_t to_byte(int64_t value);
609 static byte_t to_byte(llong_t value);
619 static byte_t to_byte(sbyte_t value);
629 static byte_t to_byte(uint16_t value);
639 static byte_t to_byte(uint32_t value);
649 static byte_t to_byte(uint64_t value);
659 static byte_t to_byte(ullong_t value);
669 static byte_t to_byte(const xtd::ustring& value);
680 static byte_t to_byte(const xtd::ustring& value, byte_t from_base);
682 static byte_t to_byte(const std::string& value);
683 static byte_t to_byte(const std::u8string& value);
684 static byte_t to_byte(const std::u16string& value);
685 static byte_t to_byte(const std::u32string& value);
686 static byte_t to_byte(const std::wstring& value);
687 static byte_t to_byte(const char* value);
688 static byte_t to_byte(char* value);
689 static byte_t to_byte(const char8_t* value);
690 static byte_t to_byte(char8_t* value);
691 static byte_t to_byte(const char16_t* value);
692 static byte_t to_byte(char16_t* value);
693 static byte_t to_byte(const char32_t* value);
694 static byte_t to_byte(char32_t* value);
695 static byte_t to_byte(const wchar_t* value);
696 static byte_t to_byte(wchar_t* value);
706 template<typename type_t>
707 static byte_t to_byte(type_t value) noexcept {
708 return static_cast<byte_t>(value);
709 }
710
719 static char to_char(std::any value);
728 static char to_char(bool value);
737 static char to_char(byte_t value) noexcept;
746 static char to_char(char value) noexcept;
755 static char to_char(char8_t value) noexcept;
765 static char to_char(char16_t value);
775 static char to_char(char32_t value);
785 static char to_char(wchar_t value);
795 static char to_char(decimal_t value);
806 static char to_char(double value);
817 static char to_char(float value);
827 static char to_char(int16_t value);
837 static char to_char(int32_t value);
847 static char to_char(int64_t value);
857 static char to_char(llong_t value);
867 static char to_char(sbyte_t value);
877 static char to_char(uint16_t value);
887 static char to_char(uint32_t value);
897 static char to_char(uint64_t value);
907 static char to_char(ullong_t value);
917 static char to_char(const xtd::ustring& value);
919 static char to_char(const std::string& value);
920 static char to_char(const std::u8string& value);
921 static char to_char(const std::u16string& value);
922 static char to_char(const std::u32string& value);
923 static char to_char(const std::wstring& value);
924 static char to_char(const char* value);
925 static char to_char(char* value);
926 static char to_char(const char8_t* value);
927 static char to_char(char8_t* value);
928 static char to_char(const char16_t* value);
929 static char to_char(char16_t* value);
930 static char to_char(const char32_t* value);
931 static char to_char(char32_t* value);
932 static char to_char(const wchar_t* value);
933 static char to_char(wchar_t* value);
943 template<typename type_t>
944 static char to_char(type_t value) noexcept {
945 return static_cast<char>(value);
946 }
947
956 static char8_t to_char8(std::any value);
965 static char8_t to_char8(bool value);
974 static char8_t to_char8(byte_t value) noexcept;
983 static char8_t to_char8(char value) noexcept;
992 static char8_t to_char8(char8_t value) noexcept;
1002 static char8_t to_char8(char16_t value);
1012 static char8_t to_char8(char32_t value);
1022 static char8_t to_char8(wchar_t value);
1032 static char8_t to_char8(decimal_t value);
1043 static char8_t to_char8(double value);
1054 static char8_t to_char8(float value);
1064 static char8_t to_char8(int16_t value);
1074 static char8_t to_char8(int32_t value);
1084 static char8_t to_char8(int64_t value);
1094 static char8_t to_char8(llong_t value);
1104 static char8_t to_char8(sbyte_t value);
1114 static char8_t to_char8(uint16_t value);
1124 static char8_t to_char8(uint32_t value);
1134 static char8_t to_char8(uint64_t value);
1144 static char8_t to_char8(ullong_t value);
1154 static char8_t to_char8(const xtd::ustring& value);
1156 static char8_t to_char8(const std::string& value);
1157 static char8_t to_char8(const std::u8string& value);
1158 static char8_t to_char8(const std::u16string& value);
1159 static char8_t to_char8(const std::u32string& value);
1160 static char8_t to_char8(const std::wstring& value);
1161 static char8_t to_char8(const char* value);
1162 static char8_t to_char8(char* value);
1163 static char8_t to_char8(const char8_t* value);
1164 static char8_t to_char8(char8_t* value);
1165 static char8_t to_char8(const char16_t* value);
1166 static char8_t to_char8(char16_t* value);
1167 static char8_t to_char8(const char32_t* value);
1168 static char8_t to_char8(char32_t* value);
1169 static char8_t to_char8(const wchar_t* value);
1170 static char8_t to_char8(wchar_t* value);
1180 template<typename type_t>
1181 static char8_t to_char8(type_t value) noexcept {
1182 return static_cast<char8_t>(value);
1183 }
1184
1193 static char16_t to_char16(std::any value);
1202 static char16_t to_char16(bool value);
1211 static char16_t to_char16(byte_t value) noexcept;
1220 static char16_t to_char16(char value) noexcept;
1229 static char16_t to_char16(char8_t value) noexcept;
1238 static char16_t to_char16(char16_t value) noexcept;
1248 static char16_t to_char16(char32_t value);
1257 static char16_t to_char16(wchar_t value) noexcept;
1267 static char16_t to_char16(decimal_t value);
1278 static char16_t to_char16(double value);
1289 static char16_t to_char16(float value);
1299 static char16_t to_char16(int16_t value);
1309 static char16_t to_char16(int32_t value);
1319 static char16_t to_char16(int64_t value);
1329 static char16_t to_char16(llong_t value);
1339 static char16_t to_char16(sbyte_t value);
1348 static char16_t to_char16(uint16_t value) noexcept;
1358 static char16_t to_char16(uint32_t value);
1368 static char16_t to_char16(uint64_t value);
1378 static char16_t to_char16(ullong_t value);
1388 static char16_t to_char16(const xtd::ustring& value);
1390 static char16_t to_char16(const std::string& value);
1391 static char16_t to_char16(const std::u8string& value);
1392 static char16_t to_char16(const std::u16string& value);
1393 static char16_t to_char16(const std::u32string& value);
1394 static char16_t to_char16(const std::wstring& value);
1395 static char16_t to_char16(const char* value);
1396 static char16_t to_char16(char* value);
1397 static char16_t to_char16(const char8_t* value);
1398 static char16_t to_char16(char8_t* value);
1399 static char16_t to_char16(const char16_t* value);
1400 static char16_t to_char16(char16_t* value);
1401 static char16_t to_char16(const char32_t* value);
1402 static char16_t to_char16(char32_t* value);
1403 static char16_t to_char16(const wchar_t* value);
1404 static char16_t to_char16(wchar_t* value);
1414 template<typename type_t>
1415 static char16_t to_char16(type_t value) noexcept {
1416 return static_cast<char16_t>(value);
1417 }
1418
1427 static char32_t to_char32(std::any value);
1436 static char32_t to_char32(bool value);
1445 static char32_t to_char32(byte_t value) noexcept;
1454 static char32_t to_char32(char value) noexcept;
1463 static char32_t to_char32(char8_t value) noexcept;
1472 static char32_t to_char32(char16_t value) noexcept;
1481 static char32_t to_char32(char32_t value) noexcept;
1490 static char32_t to_char32(wchar_t value) noexcept;
1500 static char32_t to_char32(decimal_t value);
1511 static char32_t to_char32(double value);
1522 static char32_t to_char32(float value);
1532 static char32_t to_char32(int16_t value);
1542 static char32_t to_char32(int32_t value);
1552 static char32_t to_char32(int64_t value);
1562 static char32_t to_char32(llong_t value);
1572 static char32_t to_char32(sbyte_t value);
1581 static char32_t to_char32(uint16_t value) noexcept;
1590 static char32_t to_char32(uint32_t value) noexcept;
1600 static char32_t to_char32(uint64_t value);
1610 static char32_t to_char32(ullong_t value);
1620 static char32_t to_char32(const xtd::ustring& value);
1622 static char32_t to_char32(const std::string& value);
1623 static char32_t to_char32(const std::u8string& value);
1624 static char32_t to_char32(const std::u16string& value);
1625 static char32_t to_char32(const std::u32string& value);
1626 static char32_t to_char32(const std::wstring& value);
1627 static char32_t to_char32(const char* value);
1628 static char32_t to_char32(char* value);
1629 static char32_t to_char32(const char8_t* value);
1630 static char32_t to_char32(char8_t* value);
1631 static char32_t to_char32(const char16_t* value);
1632 static char32_t to_char32(char16_t* value);
1633 static char32_t to_char32(const char32_t* value);
1634 static char32_t to_char32(char32_t* value);
1635 static char32_t to_char32(const wchar_t* value);
1636 static char32_t to_char32(wchar_t* value);
1646 template<typename type_t>
1647 static char32_t to_char32(type_t value) noexcept {
1648 return static_cast<char32_t>(value);
1649 }
1650
1659 static wchar_t to_wchar(std::any value);
1668 static wchar_t to_wchar(bool value);
1677 static wchar_t to_wchar(byte_t value) noexcept;
1686 static wchar_t to_wchar(char value) noexcept;
1695 static wchar_t to_wchar(char8_t value) noexcept;
1704 static wchar_t to_wchar(char16_t value) noexcept;
1714 static wchar_t to_wchar(char32_t value);
1723 static wchar_t to_wchar(wchar_t value) noexcept;
1733 static wchar_t to_wchar(decimal_t value);
1744 static wchar_t to_wchar(double value);
1755 static wchar_t to_wchar(float value);
1765 static wchar_t to_wchar(int16_t value);
1775 static wchar_t to_wchar(int32_t value);
1785 static wchar_t to_wchar(int64_t value);
1795 static wchar_t to_wchar(llong_t value);
1805 static wchar_t to_wchar(sbyte_t value);
1814 static wchar_t to_wchar(uint16_t value) noexcept;
1824 static wchar_t to_wchar(uint32_t value);
1834 static wchar_t to_wchar(uint64_t value);
1844 static wchar_t to_wchar(ullong_t value);
1854 static wchar_t to_wchar(const xtd::ustring& value);
1856 static wchar_t to_wchar(const std::string& value);
1857 static wchar_t to_wchar(const std::u8string& value);
1858 static wchar_t to_wchar(const std::u16string& value);
1859 static wchar_t to_wchar(const std::u32string& value);
1860 static wchar_t to_wchar(const std::wstring& value);
1861 static wchar_t to_wchar(const char* value);
1862 static wchar_t to_wchar(char* value);
1863 static wchar_t to_wchar(const char8_t* value);
1864 static wchar_t to_wchar(char8_t* value);
1865 static wchar_t to_wchar(const char16_t* value);
1866 static wchar_t to_wchar(char16_t* value);
1867 static wchar_t to_wchar(const char32_t* value);
1868 static wchar_t to_wchar(char32_t* value);
1869 static wchar_t to_wchar(const wchar_t* value);
1870 static wchar_t to_wchar(wchar_t* value);
1880 template<typename type_t>
1881 static wchar_t to_wchar(type_t value) noexcept {
1882 return static_cast<wchar_t>(value);
1883 }
1884
1893 static decimal_t to_decimal(std::any value);
1902 static decimal_t to_decimal(bool value) noexcept;
1911 static decimal_t to_decimal(byte_t value) noexcept;
1920 static decimal_t to_decimal(char value) noexcept;
1929 static decimal_t to_decimal(char8_t value) noexcept;
1938 static decimal_t to_decimal(char16_t value) noexcept;
1947 static decimal_t to_decimal(char32_t value) noexcept;
1956 static decimal_t to_decimal(wchar_t value) noexcept;
1966 static decimal_t to_decimal(decimal_t value) noexcept;
1976 static decimal_t to_decimal(double value) noexcept;
1986 static decimal_t to_decimal(float value) noexcept;
1995 static decimal_t to_decimal(int16_t value) noexcept;
2004 static decimal_t to_decimal(int32_t value) noexcept;
2013 static decimal_t to_decimal(int64_t value) noexcept;
2022 static decimal_t to_decimal(llong_t value) noexcept;
2031 static decimal_t to_decimal(sbyte_t value) noexcept;
2040 static decimal_t to_decimal(uint16_t value) noexcept;
2049 static decimal_t to_decimal(uint32_t value) noexcept;
2058 static decimal_t to_decimal(uint64_t value) noexcept;
2067 static decimal_t to_decimal(ullong_t value) noexcept;
2077 static decimal_t to_decimal(const xtd::ustring& value);
2079 static decimal_t to_decimal(const std::string& value);
2080 static decimal_t to_decimal(const std::u8string& value);
2081 static decimal_t to_decimal(const std::u16string& value);
2082 static decimal_t to_decimal(const std::u32string& value);
2083 static decimal_t to_decimal(const std::wstring& value);
2084 static decimal_t to_decimal(const char* value);
2085 static decimal_t to_decimal(char* value);
2086 static decimal_t to_decimal(const char8_t* value);
2087 static decimal_t to_decimal(char8_t* value);
2088 static decimal_t to_decimal(const char16_t* value);
2089 static decimal_t to_decimal(char16_t* value);
2090 static decimal_t to_decimal(const char32_t* value);
2091 static decimal_t to_decimal(char32_t* value);
2092 static decimal_t to_decimal(const wchar_t* value);
2093 static decimal_t to_decimal(wchar_t* value);
2103 template<typename type_t>
2104 static decimal_t to_decimal(type_t value) noexcept {
2105 return static_cast<decimal_t>(value);
2106 }
2107
2116 static double to_double(std::any value);
2125 static double to_double(bool value) noexcept;
2134 static double to_double(byte_t value) noexcept;
2143 static double to_double(char value) noexcept;
2152 static double to_double(char8_t value) noexcept;
2161 static double to_double(char16_t value) noexcept;
2170 static double to_double(char32_t value) noexcept;
2179 static double to_double(wchar_t value) noexcept;
2189 static double to_double(decimal_t value) noexcept;
2199 static double to_double(double value) noexcept;
2209 static double to_double(float value) noexcept;
2218 static double to_double(int16_t value) noexcept;
2227 static double to_double(int32_t value) noexcept;
2236 static double to_double(int64_t value) noexcept;
2245 static double to_double(llong_t value) noexcept;
2254 static double to_double(sbyte_t value) noexcept;
2263 static double to_double(uint16_t value) noexcept;
2272 static double to_double(uint32_t value) noexcept;
2281 static double to_double(uint64_t value) noexcept;
2290 static double to_double(ullong_t value) noexcept;
2300 static double to_double(const xtd::ustring& value);
2302 static double to_double(const std::string& value);
2303 static double to_double(const std::u8string& value);
2304 static double to_double(const std::u16string& value);
2305 static double to_double(const std::u32string& value);
2306 static double to_double(const std::wstring& value);
2307 static double to_double(const char* value);
2308 static double to_double(char* value);
2309 static double to_double(const char8_t* value);
2310 static double to_double(char8_t* value);
2311 static double to_double(const char16_t* value);
2312 static double to_double(char16_t* value);
2313 static double to_double(const char32_t* value);
2314 static double to_double(char32_t* value);
2315 static double to_double(const wchar_t* value);
2316 static double to_double(wchar_t* value);
2326 template<typename type_t>
2327 static double to_double(type_t value) noexcept {
2328 return static_cast<double>(value);
2329 }
2330
2339 static float to_single(std::any value);
2348 static float to_single(bool value) noexcept;
2357 static float to_single(byte_t value) noexcept;
2366 static float to_single(char value) noexcept;
2375 static float to_single(char8_t value) noexcept;
2384 static float to_single(char16_t value) noexcept;
2393 static float to_single(char32_t value) noexcept;
2402 static float to_single(wchar_t value) noexcept;
2412 static float to_single(decimal_t value) noexcept;
2422 static float to_single(double value) noexcept;
2432 static float to_single(float value) noexcept;
2441 static float to_single(int16_t value) noexcept;
2450 static float to_single(int32_t value) noexcept;
2459 static float to_single(int64_t value) noexcept;
2468 static float to_single(llong_t value) noexcept;
2477 static float to_single(sbyte_t value) noexcept;
2486 static float to_single(uint16_t value) noexcept;
2495 static float to_single(uint32_t value) noexcept;
2504 static float to_single(uint64_t value) noexcept;
2513 static float to_single(ullong_t value) noexcept;
2523 static float to_single(const xtd::ustring& value);
2525 static float to_single(const std::string& value);
2526 static float to_single(const std::u8string& value);
2527 static float to_single(const std::u16string& value);
2528 static float to_single(const std::u32string& value);
2529 static float to_single(const std::wstring& value);
2530 static float to_single(const char* value);
2531 static float to_single(char* value);
2532 static float to_single(const char8_t* value);
2533 static float to_single(char8_t* value);
2534 static float to_single(const char16_t* value);
2535 static float to_single(char16_t* value);
2536 static float to_single(const char32_t* value);
2537 static float to_single(char32_t* value);
2538 static float to_single(const wchar_t* value);
2539 static float to_single(wchar_t* value);
2549 template<typename type_t>
2550 static float to_single(type_t value) noexcept {
2551 return static_cast<float>(value);
2552 }
2553
2562 static int16_t to_int16(std::any value);
2571 static int16_t to_int16(bool value) noexcept;
2580 static int16_t to_int16(byte_t value) noexcept;
2589 static int16_t to_int16(char value) noexcept;
2598 static int16_t to_int16(char8_t value) noexcept;
2607 static int16_t to_int16(char16_t value) noexcept;
2617 static int16_t to_int16(char32_t value);
2626 static int16_t to_int16(wchar_t value) noexcept;
2637 static int16_t to_int16(decimal_t value);
2648 static int16_t to_int16(double value);
2659 static int16_t to_int16(float value);
2668 static int16_t to_int16(int16_t value) noexcept;
2678 static int16_t to_int16(int32_t value);
2688 static int16_t to_int16(int64_t value);
2698 static int16_t to_int16(llong_t value);
2707 static int16_t to_int16(sbyte_t value) noexcept;
2717 static int16_t to_int16(uint16_t value);
2727 static int16_t to_int16(uint32_t value);
2737 static int16_t to_int16(uint64_t value);
2747 static int16_t to_int16(ullong_t value);
2757 static int16_t to_int16(const xtd::ustring& value);
2768 static int16_t to_int16(const xtd::ustring& value, byte_t from_base);
2770 static int16_t to_int16(const std::string& value);
2771 static int16_t to_int16(const std::u8string& value);
2772 static int16_t to_int16(const std::u16string& value);
2773 static int16_t to_int16(const std::u32string& value);
2774 static int16_t to_int16(const std::wstring& value);
2775 static int16_t to_int16(const char* value);
2776 static int16_t to_int16(char* value);
2777 static int16_t to_int16(const char8_t* value);
2778 static int16_t to_int16(char8_t* value);
2779 static int16_t to_int16(const char16_t* value);
2780 static int16_t to_int16(char16_t* value);
2781 static int16_t to_int16(const char32_t* value);
2782 static int16_t to_int16(char32_t* value);
2783 static int16_t to_int16(const wchar_t* value);
2784 static int16_t to_int16(wchar_t* value);
2794 template<typename type_t>
2795 static int16_t to_int16(type_t value) noexcept {
2796 return static_cast<int16_t>(value);
2797 }
2798
2807 static int32_t to_int32(std::any value);
2816 static int32_t to_int32(bool value) noexcept;
2825 static int32_t to_int32(byte_t value) noexcept;
2834 static int32_t to_int32(char value) noexcept;
2843 static int32_t to_int32(char8_t value) noexcept;
2852 static int32_t to_int32(char16_t value) noexcept;
2861 static int32_t to_int32(char32_t value) noexcept;
2870 static int32_t to_int32(wchar_t value) noexcept;
2881 static int32_t to_int32(decimal_t value);
2892 static int32_t to_int32(double value);
2902 static int32_t to_int32(float value) noexcept;
2911 static int32_t to_int32(int16_t value) noexcept;
2921 static int32_t to_int32(int32_t value) noexcept;
2930 static int32_t to_int32(int64_t value);
2940 static int32_t to_int32(llong_t value);
2949 static int32_t to_int32(sbyte_t value) noexcept;
2958 static int32_t to_int32(uint16_t value) noexcept;
2968 static int32_t to_int32(uint32_t value);
2978 static int32_t to_int32(uint64_t value);
2988 static int32_t to_int32(ullong_t value);
2998 static int32_t to_int32(const xtd::ustring& value);
3009 static int32_t to_int32(const xtd::ustring& value, byte_t from_base);
3011 static int32_t to_int32(const std::string& value);
3012 static int32_t to_int32(const std::u8string& value);
3013 static int32_t to_int32(const std::u16string& value);
3014 static int32_t to_int32(const std::u32string& value);
3015 static int32_t to_int32(const std::wstring& value);
3016 static int32_t to_int32(const char* value);
3017 static int32_t to_int32(char* value);
3018 static int32_t to_int32(const char8_t* value);
3019 static int32_t to_int32(char8_t* value);
3020 static int32_t to_int32(const char16_t* value);
3021 static int32_t to_int32(char16_t* value);
3022 static int32_t to_int32(const char32_t* value);
3023 static int32_t to_int32(char32_t* value);
3024 static int32_t to_int32(const wchar_t* value);
3025 static int32_t to_int32(wchar_t* value);
3035 template<typename type_t>
3036 static int32_t to_int32(type_t value) noexcept {
3037 return static_cast<int32_t>(value);
3038 }
3039
3048 static int64_t to_int64(std::any value);
3057 static int64_t to_int64(bool value) noexcept;
3066 static int64_t to_int64(byte_t value) noexcept;
3075 static int64_t to_int64(char value) noexcept;
3084 static int64_t to_int64(char8_t value) noexcept;
3093 static int64_t to_int64(char16_t value) noexcept;
3102 static int64_t to_int64(char32_t value) noexcept;
3111 static int64_t to_int64(wchar_t value) noexcept;
3121 static int64_t to_int64(decimal_t value) noexcept;
3131 static int64_t to_int64(double value) noexcept;
3141 static int64_t to_int64(float value) noexcept;
3150 static int64_t to_int64(int16_t value) noexcept;
3159 static int64_t to_int64(int32_t value) noexcept;
3168 static int64_t to_int64(int64_t value) noexcept;
3177 static int64_t to_int64(llong_t value) noexcept;
3186 static int64_t to_int64(sbyte_t value) noexcept;
3195 static int64_t to_int64(uint16_t value) noexcept;
3204 static int64_t to_int64(uint32_t value) noexcept;
3214 static int64_t to_int64(uint64_t value);
3224 static int64_t to_int64(ullong_t value);
3234 static int64_t to_int64(const xtd::ustring& value);
3245 static int64_t to_int64(const xtd::ustring& value, byte_t from_base);
3247 static int64_t to_int64(const std::string& value);
3248 static int64_t to_int64(const std::u8string& value);
3249 static int64_t to_int64(const std::u16string& value);
3250 static int64_t to_int64(const std::u32string& value);
3251 static int64_t to_int64(const std::wstring& value);
3252 static int64_t to_int64(const char* value);
3253 static int64_t to_int64(char* value);
3254 static int64_t to_int64(const char8_t* value);
3255 static int64_t to_int64(char8_t* value);
3256 static int64_t to_int64(const char16_t* value);
3257 static int64_t to_int64(char16_t* value);
3258 static int64_t to_int64(const char32_t* value);
3259 static int64_t to_int64(char32_t* value);
3260 static int64_t to_int64(const wchar_t* value);
3261 static int64_t to_int64(wchar_t* value);
3271 template<typename type_t>
3272 static int64_t to_int64(type_t value) noexcept {
3273 return static_cast<int64_t>(value);
3274 }
3275
3284 static llong_t to_llong(std::any value);
3293 static llong_t to_llong(bool value) noexcept;
3302 static llong_t to_llong(byte_t value) noexcept;
3311 static llong_t to_llong(char value) noexcept;
3320 static llong_t to_llong(char8_t value) noexcept;
3329 static llong_t to_llong(char16_t value) noexcept;
3338 static llong_t to_llong(char32_t value) noexcept;
3347 static llong_t to_llong(wchar_t value) noexcept;
3357 static llong_t to_llong(decimal_t value) noexcept;
3367 static llong_t to_llong(double value) noexcept;
3377 static llong_t to_llong(float value) noexcept;
3386 static llong_t to_llong(int16_t value) noexcept;
3395 static llong_t to_llong(int32_t value) noexcept;
3404 static llong_t to_llong(int64_t value) noexcept;
3413 static llong_t to_llong(llong_t value) noexcept;
3422 static llong_t to_llong(sbyte_t value) noexcept;
3431 static llong_t to_llong(uint16_t value) noexcept;
3440 static llong_t to_llong(uint32_t value) noexcept;
3450 static llong_t to_llong(uint64_t value);
3460 static llong_t to_llong(ullong_t value);
3470 static llong_t to_llong(const xtd::ustring& value);
3481 static llong_t to_llong(const xtd::ustring& value, byte_t from_base);
3483 static llong_t to_llong(const std::string& value);
3484 static llong_t to_llong(const std::u8string& value);
3485 static llong_t to_llong(const std::u16string& value);
3486 static llong_t to_llong(const std::u32string& value);
3487 static llong_t to_llong(const std::wstring& value);
3488 static llong_t to_llong(const char* value);
3489 static llong_t to_llong(char* value);
3490 static llong_t to_llong(const char8_t* value);
3491 static llong_t to_llong(char8_t* value);
3492 static llong_t to_llong(const char16_t* value);
3493 static llong_t to_llong(char16_t* value);
3494 static llong_t to_llong(const char32_t* value);
3495 static llong_t to_llong(char32_t* value);
3496 static llong_t to_llong(const wchar_t* value);
3497 static llong_t to_llong(wchar_t* value);
3507 template<typename type_t>
3508 static llong_t to_llong(type_t value) noexcept {
3509 return static_cast<llong_t>(value);
3510 }
3511
3520 static sbyte_t to_sbyte(std::any value);
3529 static sbyte_t to_sbyte(bool value) noexcept;
3538 static sbyte_t to_sbyte(byte_t value) noexcept;
3547 static sbyte_t to_sbyte(char value) noexcept;
3556 static sbyte_t to_sbyte(char8_t value) noexcept;
3566 static sbyte_t to_sbyte(char16_t value);
3576 static sbyte_t to_sbyte(char32_t value);
3586 static sbyte_t to_sbyte(wchar_t value);
3597 static sbyte_t to_sbyte(decimal_t value);
3608 static sbyte_t to_sbyte(double value);
3619 static sbyte_t to_sbyte(float value);
3629 static sbyte_t to_sbyte(int16_t value);
3639 static sbyte_t to_sbyte(int32_t value);
3649 static sbyte_t to_sbyte(int64_t value);
3659 static sbyte_t to_sbyte(llong_t value);
3669 static sbyte_t to_sbyte(sbyte_t value);
3679 static sbyte_t to_sbyte(uint16_t value);
3689 static sbyte_t to_sbyte(uint32_t value);
3699 static sbyte_t to_sbyte(uint64_t value);
3709 static sbyte_t to_sbyte(ullong_t value);
3719 static sbyte_t to_sbyte(const xtd::ustring& value);
3730 static sbyte_t to_sbyte(const xtd::ustring& value, byte_t from_base);
3732 static sbyte_t to_sbyte(const std::string& value);
3733 static sbyte_t to_sbyte(const std::u8string& value);
3734 static sbyte_t to_sbyte(const std::u16string& value);
3735 static sbyte_t to_sbyte(const std::u32string& value);
3736 static sbyte_t to_sbyte(const std::wstring& value);
3737 static sbyte_t to_sbyte(const char* value);
3738 static sbyte_t to_sbyte(char* value);
3739 static sbyte_t to_sbyte(const char8_t* value);
3740 static sbyte_t to_sbyte(char8_t* value);
3741 static sbyte_t to_sbyte(const char16_t* value);
3742 static sbyte_t to_sbyte(char16_t* value);
3743 static sbyte_t to_sbyte(const char32_t* value);
3744 static sbyte_t to_sbyte(char32_t* value);
3745 static sbyte_t to_sbyte(const wchar_t* value);
3746 static sbyte_t to_sbyte(wchar_t* value);
3756 template<typename type_t>
3757 static sbyte_t to_sbyte(type_t value) noexcept {
3758 return static_cast<sbyte_t>(value);
3759 }
3760
3769 static uint16_t to_uint16(std::any value);
3778 static uint16_t to_uint16(bool value) noexcept;
3787 static uint16_t to_uint16(byte_t value) noexcept;
3796 static uint16_t to_uint16(char value) noexcept;
3805 static uint16_t to_uint16(char8_t value) noexcept;
3814 static uint16_t to_uint16(char16_t value) noexcept;
3824 static uint16_t to_uint16(char32_t value);
3833 static uint16_t to_uint16(wchar_t value) noexcept;
3844 static uint16_t to_uint16(decimal_t value);
3855 static uint16_t to_uint16(double value);
3866 static uint16_t to_uint16(float value);
3876 static uint16_t to_uint16(int16_t value);
3886 static uint16_t to_uint16(int32_t value);
3896 static uint16_t to_uint16(int64_t value);
3906 static uint16_t to_uint16(llong_t value);
3916 static uint16_t to_uint16(sbyte_t value);
3925 static uint16_t to_uint16(uint16_t value) noexcept;
3935 static uint16_t to_uint16(uint32_t value);
3945 static uint16_t to_uint16(uint64_t value);
3955 static uint16_t to_uint16(ullong_t value);
3965 static uint16_t to_uint16(const xtd::ustring& value);
3976 static uint16_t to_uint16(const xtd::ustring& value, byte_t from_base);
3978 static uint16_t to_uint16(const std::string& value);
3979 static uint16_t to_uint16(const std::u8string& value);
3980 static uint16_t to_uint16(const std::u16string& value);
3981 static uint16_t to_uint16(const std::u32string& value);
3982 static uint16_t to_uint16(const std::wstring& value);
3983 static uint16_t to_uint16(const char* value);
3984 static uint16_t to_uint16(char* value);
3985 static uint16_t to_uint16(const char8_t* value);
3986 static uint16_t to_uint16(char8_t* value);
3987 static uint16_t to_uint16(const char16_t* value);
3988 static uint16_t to_uint16(char16_t* value);
3989 static uint16_t to_uint16(const char32_t* value);
3990 static uint16_t to_uint16(char32_t* value);
3991 static uint16_t to_uint16(const wchar_t* value);
3992 static uint16_t to_uint16(wchar_t* value);
4002 template<typename type_t>
4003 static uint16_t to_uint16(type_t value) noexcept {
4004 return static_cast<uint16_t>(value);
4005 }
4006
4015 static uint32_t to_uint32(std::any value);
4024 static uint32_t to_uint32(bool value) noexcept;
4033 static uint32_t to_uint32(byte_t value) noexcept;
4042 static uint32_t to_uint32(char value) noexcept;
4051 static uint32_t to_uint32(char8_t value) noexcept;
4060 static uint32_t to_uint32(char16_t value) noexcept;
4069 static uint32_t to_uint32(char32_t value) noexcept;
4078 static uint32_t to_uint32(wchar_t value) noexcept;
4089 static uint32_t to_uint32(decimal_t value);
4100 static uint32_t to_uint32(double value);
4111 static uint32_t to_uint32(float value);
4121 static uint32_t to_uint32(int16_t value);
4131 static uint32_t to_uint32(int32_t value);
4141 static uint32_t to_uint32(int64_t value);
4151 static uint32_t to_uint32(llong_t value);
4161 static uint32_t to_uint32(sbyte_t value);
4170 static uint32_t to_uint32(uint16_t value) noexcept;
4179 static uint32_t to_uint32(uint32_t value) noexcept;
4189 static uint32_t to_uint32(uint64_t value);
4199 static uint32_t to_uint32(ullong_t value);
4209 static uint32_t to_uint32(const xtd::ustring& value);
4220 static uint32_t to_uint32(const xtd::ustring& value, byte_t from_base);
4222 static uint32_t to_uint32(const std::string& value);
4223 static uint32_t to_uint32(const std::u8string& value);
4224 static uint32_t to_uint32(const std::u16string& value);
4225 static uint32_t to_uint32(const std::u32string& value);
4226 static uint32_t to_uint32(const std::wstring& value);
4227 static uint32_t to_uint32(const char* value);
4228 static uint32_t to_uint32(char* value);
4229 static uint32_t to_uint32(const char8_t* value);
4230 static uint32_t to_uint32(char8_t* value);
4231 static uint32_t to_uint32(const char16_t* value);
4232 static uint32_t to_uint32(char16_t* value);
4233 static uint32_t to_uint32(const char32_t* value);
4234 static uint32_t to_uint32(char32_t* value);
4235 static uint32_t to_uint32(const wchar_t* value);
4236 static uint32_t to_uint32(wchar_t* value);
4246 template<typename type_t>
4247 static uint32_t to_uint32(type_t value) noexcept {
4248 return static_cast<uint32_t>(value);
4249 }
4250
4259 static uint64_t to_uint64(std::any value);
4268 static uint64_t to_uint64(bool value) noexcept;
4277 static uint64_t to_uint64(byte_t value) noexcept;
4286 static uint64_t to_uint64(char value) noexcept;
4295 static uint64_t to_uint64(char8_t value) noexcept;
4304 static uint64_t to_uint64(char16_t value) noexcept;
4313 static uint64_t to_uint64(char32_t value) noexcept;
4322 static uint64_t to_uint64(wchar_t value) noexcept;
4333 static uint64_t to_uint64(decimal_t value);
4344 static uint64_t to_uint64(double value);
4355 static uint64_t to_uint64(float value);
4365 static uint64_t to_uint64(int16_t value);
4375 static uint64_t to_uint64(int32_t value);
4385 static uint64_t to_uint64(int64_t value);
4395 static uint64_t to_uint64(llong_t value);
4405 static uint64_t to_uint64(sbyte_t value);
4414 static uint64_t to_uint64(uint16_t value) noexcept;
4423 static uint64_t to_uint64(uint32_t value) noexcept;
4433 static uint64_t to_uint64(uint64_t value) noexcept;
4442 static uint64_t to_uint64(ullong_t value) noexcept;
4451 static uint64_t to_uint64(const xtd::ustring& value);
4462 static uint64_t to_uint64(const xtd::ustring& value, byte_t from_base);
4464 static uint64_t to_uint64(const std::string& value);
4465 static uint64_t to_uint64(const std::u8string& value);
4466 static uint64_t to_uint64(const std::u16string& value);
4467 static uint64_t to_uint64(const std::u32string& value);
4468 static uint64_t to_uint64(const std::wstring& value);
4469 static uint64_t to_uint64(const char* value);
4470 static uint64_t to_uint64(char* value);
4471 static uint64_t to_uint64(const char8_t* value);
4472 static uint64_t to_uint64(char8_t* value);
4473 static uint64_t to_uint64(const char16_t* value);
4474 static uint64_t to_uint64(char16_t* value);
4475 static uint64_t to_uint64(const char32_t* value);
4476 static uint64_t to_uint64(char32_t* value);
4477 static uint64_t to_uint64(const wchar_t* value);
4478 static uint64_t to_uint64(wchar_t* value);
4488 template<typename type_t>
4489 static uint64_t to_uint64(type_t value) noexcept {
4490 return static_cast<uint64_t>(value);
4491 }
4492
4501 static ullong_t to_ullong(std::any value);
4510 static ullong_t to_ullong(bool value) noexcept;
4519 static ullong_t to_ullong(byte_t value) noexcept;
4528 static ullong_t to_ullong(char value) noexcept;
4537 static ullong_t to_ullong(char8_t value) noexcept;
4546 static ullong_t to_ullong(char16_t value) noexcept;
4555 static ullong_t to_ullong(char32_t value) noexcept;
4564 static ullong_t to_ullong(wchar_t value) noexcept;
4575 static ullong_t to_ullong(decimal_t value);
4586 static ullong_t to_ullong(double value);
4597 static ullong_t to_ullong(float value);
4607 static ullong_t to_ullong(int16_t value);
4617 static ullong_t to_ullong(int32_t value);
4627 static ullong_t to_ullong(int64_t value);
4637 static ullong_t to_ullong(llong_t value);
4647 static ullong_t to_ullong(sbyte_t value);
4656 static ullong_t to_ullong(uint16_t value) noexcept;
4665 static ullong_t to_ullong(uint32_t value) noexcept;
4675 static ullong_t to_ullong(uint64_t value) noexcept;
4684 static ullong_t to_ullong(ullong_t value) noexcept;
4693 static ullong_t to_ullong(const xtd::ustring& value);
4704 static ullong_t to_ullong(const xtd::ustring& value, byte_t from_base);
4706 static ullong_t to_ullong(const std::string& value);
4707 static ullong_t to_ullong(const std::u8string& value);
4708 static ullong_t to_ullong(const std::u16string& value);
4709 static ullong_t to_ullong(const std::u32string& value);
4710 static ullong_t to_ullong(const std::wstring& value);
4711 static ullong_t to_ullong(const char* value);
4712 static ullong_t to_ullong(char* value);
4713 static ullong_t to_ullong(const char8_t* value);
4714 static ullong_t to_ullong(char8_t* value);
4715 static ullong_t to_ullong(const char16_t* value);
4716 static ullong_t to_ullong(char16_t* value);
4717 static ullong_t to_ullong(const char32_t* value);
4718 static ullong_t to_ullong(char32_t* value);
4719 static ullong_t to_ullong(const wchar_t* value);
4720 static ullong_t to_ullong(wchar_t* value);
4730 template<typename type_t>
4731 static ullong_t to_ullong(type_t value) noexcept {
4732 return static_cast<ullong_t>(value);
4733 }
4734
4743 static ustring to_string(std::any value);
4752 static ustring to_string(bool value) noexcept;
4761 static ustring to_string(byte_t value) noexcept;
4772 static ustring to_string(byte_t value, byte_t from_base);
4781 static ustring to_string(char value) noexcept;
4790 static ustring to_string(char8_t value) noexcept;
4799 static ustring to_string(char16_t value) noexcept;
4808 static ustring to_string(char32_t value) noexcept;
4817 static ustring to_string(wchar_t value) noexcept;
4828 static ustring to_string(decimal_t value);
4839 static ustring to_string(double value);
4850 static ustring to_string(float value);
4860 static ustring to_string(int16_t value);
4871 static ustring to_string(int16_t value, byte_t from_base);
4881 static ustring to_string(int32_t value);
4892 static ustring to_string(int32_t value, byte_t from_base);
4902 static ustring to_string(int64_t value);
4913 static ustring to_string(int64_t value, byte_t from_base);
4923 static ustring to_string(llong_t value);
4934 static ustring to_string(llong_t value, byte_t from_base);
4944 static ustring to_string(sbyte_t value);
4955 static ustring to_string(sbyte_t value, byte_t from_base);
4964 static ustring to_string(uint16_t value) noexcept;
4975 static ustring to_string(uint16_t value, byte_t from_base);
4984 static ustring to_string(uint32_t value) noexcept;
4995 static ustring to_string(uint32_t value, byte_t from_base);
5005 static ustring to_string(uint64_t value) noexcept;
5016 static ustring to_string(uint64_t value, byte_t from_base);
5025 static ustring to_string(ullong_t value) noexcept;
5036 static ustring to_string(ullong_t value, byte_t from_base);
5045 static ustring to_string(const xtd::ustring& value);
5047 static ustring to_string(const std::string& value);
5048 static ustring to_string(const std::u8string& value);
5049 static ustring to_string(const std::u16string& value);
5050 static ustring to_string(const std::u32string& value);
5051 static ustring to_string(const std::wstring& value);
5052 static ustring to_string(const char* value);
5053 static ustring to_string(char* value);
5054 static ustring to_string(const char8_t* value);
5055 static ustring to_string(char8_t* value);
5056 static ustring to_string(const char16_t* value);
5057 static ustring to_string(char16_t* value);
5058 static ustring to_string(const char32_t* value);
5059 static ustring to_string(char32_t* value);
5060 static ustring to_string(const wchar_t* value);
5061 static ustring to_string(wchar_t* value);
5071 template<typename type_t>
5072 static ustring to_string(type_t value) noexcept {
5073 return ustring::format("{}", value);
5074 }
5075
5084 static ustring to_ustring(std::any value);
5093 static ustring to_ustring(bool value) noexcept;
5102 static ustring to_ustring(byte_t value) noexcept;
5113 static ustring to_ustring(byte_t value, byte_t from_base);
5122 static ustring to_ustring(char value) noexcept;
5131 static ustring to_ustring(char8_t value) noexcept;
5140 static ustring to_ustring(char16_t value) noexcept;
5149 static ustring to_ustring(char32_t value) noexcept;
5158 static ustring to_ustring(wchar_t value) noexcept;
5169 static ustring to_ustring(decimal_t value);
5180 static ustring to_ustring(double value);
5191 static ustring to_ustring(float value);
5201 static ustring to_ustring(int16_t value);
5212 static ustring to_ustring(int16_t value, byte_t from_base);
5222 static ustring to_ustring(int32_t value);
5233 static ustring to_ustring(int32_t value, byte_t from_base);
5243 static ustring to_ustring(int64_t value);
5254 static ustring to_ustring(int64_t value, byte_t from_base);
5264 static ustring to_ustring(llong_t value);
5275 static ustring to_ustring(llong_t value, byte_t from_base);
5285 static ustring to_ustring(sbyte_t value);
5296 static ustring to_ustring(sbyte_t value, byte_t from_base);
5305 static ustring to_ustring(uint16_t value) noexcept;
5316 static ustring to_ustring(uint16_t value, byte_t from_base);
5325 static ustring to_ustring(uint32_t value) noexcept;
5336 static ustring to_ustring(uint32_t value, byte_t from_base);
5346 static ustring to_ustring(uint64_t value) noexcept;
5357 static ustring to_ustring(uint64_t value, byte_t from_base);
5366 static ustring to_ustring(ullong_t value) noexcept;
5377 static ustring to_ustring(ullong_t value, byte_t from_base);
5386 static ustring to_ustring(const xtd::ustring& value);
5388 static ustring to_ustring(const std::string& value);
5389 static ustring to_ustring(const std::u8string& value);
5390 static ustring to_ustring(const std::u16string& value);
5391 static ustring to_ustring(const std::u32string& value);
5392 static ustring to_ustring(const std::wstring& value);
5393 static ustring to_ustring(const char* value);
5394 static ustring to_ustring(char* value);
5395 static ustring to_ustring(const char8_t* value);
5396 static ustring to_ustring(char8_t* value);
5397 static ustring to_ustring(const char16_t* value);
5398 static ustring to_ustring(char16_t* value);
5399 static ustring to_ustring(const char32_t* value);
5400 static ustring to_ustring(char32_t* value);
5401 static ustring to_ustring(const wchar_t* value);
5402 static ustring to_ustring(wchar_t* value);
5412 template<typename type_t>
5413 static ustring to_ustring(type_t value) noexcept {
5414 return ustring::format("{}", value);
5415 }
5416 };
5417}
Represents API to convert base type code.
Definition: convert.h:20
static std::any to_any(int32_t value) noexcept
Convert int32_t to std::any.
static ustring to_ustring(sbyte_t value, byte_t from_base)
Convert string to ustring.
static char to_char(byte_t value) noexcept
Convert byte_t to char.
static llong_t to_llong(ullong_t value)
Convert llong_t to llong.
static bool to_boolean(char32_t value)
Convert char32_t to bool.
static wchar_t to_wchar(char8_t value) noexcept
Convert char8_t to wchar.
static llong_t to_llong(double value) noexcept
Convert double to llong.
static std::any to_any(char32_t value) noexcept
Convert char32_t to std::any.
static int16_t to_int16(uint64_t value)
Convert uint64_t to int16.
static uint32_t to_uint32(const xtd::ustring &value, byte_t from_base)
Convert string to uint32.
static llong_t to_llong(const xtd::ustring &value)
Convert string to llong.
static std::any to_any(const xtd::ustring &value) noexcept
Convert string to std::any.
static int16_t to_int16(byte_t value) noexcept
Convert byte_t to int16.
static char to_char(wchar_t value)
Convert char32_t to char.
static byte_t to_byte(ullong_t value)
Convert llong_t to byte.
static uint32_t to_uint32(char16_t value) noexcept
Convert char16_t to uint32.
static decimal_t to_decimal(wchar_t value) noexcept
Convert char32_t to decimal.
static ustring to_string(sbyte_t value, byte_t from_base)
Convert string to ustring.
static wchar_t to_wchar(int32_t value)
Convert int32_t to wchar.
static char to_char(int32_t value)
Convert int32_t to char.
static char8_t to_char8(uint16_t value)
Convert uint16_t to char8.
static int16_t to_int16(llong_t value)
Convert llong_t to int16.
static int16_t to_int16(char value) noexcept
Convert char to int16.
static int32_t to_int32(decimal_t value)
Convert decimal_t to int32.
static uint64_t to_uint64(char32_t value) noexcept
Convert char32_t to uint64.
static ustring to_string(uint32_t value, byte_t from_base)
Convert string to ustring.
static ustring to_string(int64_t value)
Convert int64_t to ustring.
static double to_double(ullong_t value) noexcept
Convert llong_t to double.
static double to_double(std::any value)
Convert std::any to double.
static char16_t to_char16(float value)
Convert float to char16.
static byte_t to_byte(uint32_t value)
Convert uint32_t to byte.
static char32_t to_char32(float value)
Convert float to char32.
static bool to_boolean(wchar_t value)
Convert wchar_t to bool.
static ustring to_string(bool value) noexcept
Convert bool to ustring.
static char8_t to_char8(char8_t value) noexcept
Convert char8_t to char8.
static ustring to_ustring(llong_t value)
Convert llong_t to ustring.
static uint64_t to_uint64(uint32_t value) noexcept
Convert uint32_t to uint64.
static char32_t to_char32(uint64_t value)
Convert uint64_t to char32.
static byte_t to_byte(char value) noexcept
Convert char to byte.
static int16_t to_int16(char8_t value) noexcept
Convert char8_t to int16.
static int16_t to_int16(float value)
Convert float to int16.
static int64_t to_int64(wchar_t value) noexcept
Convert char32_t to int64.
static sbyte_t to_sbyte(char16_t value)
Convert char16_t to sbyte.
static int32_t to_int32(uint16_t value) noexcept
Convert uint16_t to int32.
static float to_single(uint16_t value) noexcept
Convert uint16_t to single.
static int32_t to_int32(int32_t value) noexcept
Convert int32_t to int32.
static char16_t to_char16(std::any value)
Convert std::any to char16.
static ustring to_ustring(std::any value)
Convert std::any to ustring.
static ustring to_string(uint64_t value, byte_t from_base)
Convert string to ustring.
static int16_t to_int16(type_t value) noexcept
Convert type_t to int16.
Definition: convert.h:2795
static int16_t to_int16(ullong_t value)
Convert llong_t to int16.
static char16_t to_char16(byte_t value) noexcept
Convert byte_t to char16.
static uint32_t to_uint32(uint64_t value)
Convert uint64_t to uint32.
static float to_single(char value) noexcept
Convert char to single.
static double to_double(wchar_t value) noexcept
Convert char32_t to double.
static ustring to_string(std::any value)
Convert std::any to ustring.
static char32_t to_char32(const xtd::ustring &value)
Convert string to char32.
static float to_single(double value) noexcept
Convert double to single.
static char to_char(uint16_t value)
Convert uint16_t to char.
static int32_t to_int32(double value)
Convert double to int32.
static wchar_t to_wchar(byte_t value) noexcept
Convert byte_t to wchar.
static sbyte_t to_sbyte(decimal_t value)
Convert decimal_t to sbyte.
static int64_t to_int64(double value) noexcept
Convert double to int64.
static float to_single(uint32_t value) noexcept
Convert uint32_t to single.
static uint32_t to_uint32(int16_t value)
Convert int16_t to uint32.
static int64_t to_int64(std::any value)
Convert std::any to int64.
static byte_t to_byte(decimal_t value)
Convert decimal_t to byte.
static int64_t to_int64(int32_t value) noexcept
Convert int32_t to int64.
static int16_t to_int16(uint16_t value)
Convert uint16_t to int16.
static ustring to_string(char16_t value) noexcept
Convert char16_t to ustring.
static bool to_boolean(uint64_t value) noexcept
Convert uint64_t to bool.
static decimal_t to_decimal(uint16_t value) noexcept
Convert uint16_t to decimal.
static uint16_t to_uint16(llong_t value)
Convert llong_t to uint16.
static int16_t to_int16(char16_t value) noexcept
Convert char16_t to int16.
static std::any to_any(ullong_t value) noexcept
Convert llong_t to std::any.
static sbyte_t to_sbyte(char8_t value) noexcept
Convert char8_t to sbyte.
static bool to_boolean(std::any value)
Convert std::any to bool.
static ustring to_string(type_t value) noexcept
Convert type_t to ustring.
Definition: convert.h:5072
static sbyte_t to_sbyte(char value) noexcept
Convert char to sbyte.
static uint32_t to_uint32(char32_t value) noexcept
Convert char32_t to uint32.
static int32_t to_int32(char16_t value) noexcept
Convert char16_t to int32.
static decimal_t to_decimal(type_t value) noexcept
Convert type_t to decimal.
Definition: convert.h:2104
static uint32_t to_uint32(const xtd::ustring &value)
Convert string to uint32.
static int16_t to_int16(sbyte_t value) noexcept
Convert sbyte_t to int16.
static bool to_boolean(char8_t value)
Convert char8_t to bool.
static uint16_t to_uint16(bool value) noexcept
Convert bool to uint16.
static ustring to_string(wchar_t value) noexcept
Convert char32_t to ustring.
static byte_t to_byte(std::any value)
Convert std::any to byte.
static char8_t to_char8(std::any value)
Convert std::any to char8.
static char8_t to_char8(ullong_t value)
Convert llong_t to char8.
static float to_single(std::any value)
Convert std::any to single.
static double to_double(int16_t value) noexcept
Convert int16_t to double.
static ustring to_string(uint32_t value) noexcept
Convert uint32_t to ustring.
static uint32_t to_uint32(double value)
Convert double to uint32.
static ustring to_ustring(uint32_t value, byte_t from_base)
Convert string to ustring.
static uint16_t to_uint16(int32_t value)
Convert int32_t to uint16.
static double to_double(double value) noexcept
Convert double to double.
static uint16_t to_uint16(type_t value) noexcept
Convert type_t to uint16.
Definition: convert.h:4003
static sbyte_t to_sbyte(std::any value)
Convert std::any to sbyte.
static llong_t to_llong(char value) noexcept
Convert char to llong.
static double to_double(char32_t value) noexcept
Convert char32_t to double.
static int16_t to_int16(std::any value)
Convert std::any to int16.
static ustring to_ustring(const xtd::ustring &value)
Convert string to ustring.
static ustring to_string(byte_t value) noexcept
Convert byte_t to ustring.
static char8_t to_char8(wchar_t value)
Convert char32_t to char8.
static sbyte_t to_sbyte(ullong_t value)
Convert llong_t to sbyte.
static char8_t to_char8(char value) noexcept
Convert char to char8.
static llong_t to_llong(char16_t value) noexcept
Convert char16_t to llong.
static uint16_t to_uint16(decimal_t value)
Convert decimal_t to uint16.
static float to_single(wchar_t value) noexcept
Convert char32_t to single.
static uint16_t to_uint16(uint16_t value) noexcept
Convert uint16_t to uint16.
static int64_t to_int64(int64_t value) noexcept
Convert int64_t to int64.
static ustring to_ustring(uint16_t value, byte_t from_base)
Convert string to ustring.
static char32_t to_char32(byte_t value) noexcept
Convert byte_t to char32.
static byte_t to_byte(sbyte_t value)
Convert sbyte_t to byte.
static ustring to_string(int16_t value)
Convert int16_t to ustring.
static sbyte_t to_sbyte(wchar_t value)
Convert char32_t to sbyte.
static ustring to_ustring(double value)
Convert double to ustring.
static int32_t to_int32(char value) noexcept
Convert char to int32.
static float to_single(int32_t value) noexcept
Convert int32_t to single.
static float to_single(bool value) noexcept
Convert bool to single.
static ullong_t to_ullong(type_t value) noexcept
Convert type_t to ullong.
Definition: convert.h:4731
static uint32_t to_uint32(std::any value)
Convert std::any to uint32.
static char32_t to_char32(ullong_t value)
Convert llong_t to char32.
static int64_t to_int64(uint64_t value)
Convert uint64_t to int64.
static ustring to_ustring(uint32_t value) noexcept
Convert uint32_t to ustring.
static bool to_boolean(char value)
Convert char to bool.
static float to_single(char8_t value) noexcept
Convert char8_t to single.
static decimal_t to_decimal(ullong_t value) noexcept
Convert llong_t to decimal.
static uint64_t to_uint64(decimal_t value)
Convert decimal_t to uint64.
static uint16_t to_uint16(char value) noexcept
Convert char to uint16.
static int64_t to_int64(char value) noexcept
Convert char to int64.
static decimal_t to_decimal(char32_t value) noexcept
Convert char32_t to decimal.
static int64_t to_int64(uint16_t value) noexcept
Convert uint16_t to int64.
static uint64_t to_uint64(float value)
Convert float to uint64.
static int16_t to_int16(decimal_t value)
Convert decimal_t to int16.
static uint64_t to_uint64(std::any value)
Convert std::any to uint64.
static uint16_t to_uint16(sbyte_t value)
Convert sbyte_t to uint16.
static float to_single(byte_t value) noexcept
Convert byte_t to single.
static float to_single(int64_t value) noexcept
Convert int64_t to single.
static std::any to_any(byte_t value) noexcept
Convert byte_t to std::any.
static decimal_t to_decimal(decimal_t value) noexcept
Convert decimal_t to decimal.
static ustring to_string(double value)
Convert double to ustring.
static decimal_t to_decimal(int64_t value) noexcept
Convert int64_t to decimal.
static bool to_boolean(sbyte_t value) noexcept
Convert sbyte_t to bool.
static char8_t to_char8(double value)
Convert double to char8.
static int32_t to_int32(std::any value)
Convert std::any to int32.
static sbyte_t to_sbyte(uint64_t value)
Convert uint64_t to sbyte.
static int64_t to_int64(byte_t value) noexcept
Convert byte_t to int64.
static ustring to_string(sbyte_t value)
Convert sbyte_t to ustring.
static int32_t to_int32(uint32_t value)
Convert uint32_t to int32.
static ustring to_string(decimal_t value)
Convert decimal_t to ustring.
static int16_t to_int16(uint32_t value)
Convert uint32_t to int16.
static wchar_t to_wchar(std::any value)
Convert std::any to wchar.
static int16_t to_int16(char32_t value)
Convert char32_t to int16.
static uint32_t to_uint32(wchar_t value) noexcept
Convert char32_t to uint32.
static uint32_t to_uint32(sbyte_t value)
Convert sbyte_t to uint32.
static char32_t to_char32(char32_t value) noexcept
Convert char32_t to char32.
static byte_t to_byte(int32_t value)
Convert int32_t to byte.
static uint16_t to_uint16(double value)
Convert double to uint16.
static llong_t to_llong(uint64_t value)
Convert uint64_t to llong.
static char32_t to_char32(char8_t value) noexcept
Convert char8_t to char32.
static std::any to_any(std::any value) noexcept
Convert std::any to std::any.
static std::any to_any(char8_t value)
Convert char8_t to std::any.
static ustring to_string(int16_t value, byte_t from_base)
Convert string to ustring.
static char to_char(char16_t value)
Convert char16_t to char.
static llong_t to_llong(wchar_t value) noexcept
Convert char32_t to llong.
static byte_t to_byte(llong_t value)
Convert llong_t to byte.
static ustring to_string(llong_t value, byte_t from_base)
Convert string to ustring.
static float to_single(char16_t value) noexcept
Convert char16_t to single.
static int64_t to_int64(const xtd::ustring &value, byte_t from_base)
Convert string to int64.
static uint64_t to_uint64(uint16_t value) noexcept
Convert uint16_t to uint64.
static char to_char(char value) noexcept
Convert char to char.
static char to_char(char32_t value)
Convert char32_t to char.
static decimal_t to_decimal(char8_t value) noexcept
Convert char8_t to decimal.
static ustring to_ustring(llong_t value, byte_t from_base)
Convert string to ustring.
static ustring to_string(int64_t value, byte_t from_base)
Convert string to ustring.
static uint16_t to_uint16(char16_t value) noexcept
Convert char16_t to uint16.
static uint64_t to_uint64(int16_t value)
Convert int16_t to uint64.
static std::any to_any(int16_t value) noexcept
Convert int16_t to std::any.
static int32_t to_int32(bool value) noexcept
Convert bool to int32.
static double to_double(int64_t value) noexcept
Convert int64_t to double.
static sbyte_t to_sbyte(float value)
Convert float to sbyte.
static ustring to_string(int32_t value)
Convert int32_t to ustring.
static char to_char(uint64_t value)
Convert uint64_t to char.
static sbyte_t to_sbyte(int32_t value)
Convert int32_t to sbyte.
static char8_t to_char8(llong_t value)
Convert llong_t to char8.
static byte_t to_byte(const xtd::ustring &value, byte_t from_base)
Convert string to byte.
static decimal_t to_decimal(float value) noexcept
Convert float to decimal.
static ustring to_ustring(char16_t value) noexcept
Convert char16_t to ustring.
static sbyte_t to_sbyte(uint32_t value)
Convert uint32_t to sbyte.
static int64_t to_int64(float value) noexcept
Convert float to int64.
static uint32_t to_uint32(bool value) noexcept
Convert bool to uint32.
static ustring to_string(uint64_t value) noexcept
Convert uint64_t to ustring.
static char32_t to_char32(uint32_t value) noexcept
Convert uint32_t to char32.
static bool to_boolean(ullong_t value) noexcept
Convert llong_t to bool.
static llong_t to_llong(uint32_t value) noexcept
Convert uint32_t to llong.
static decimal_t to_decimal(uint64_t value) noexcept
Convert uint64_t to decimal.
static char32_t to_char32(char16_t value) noexcept
Convert char16_t to char32.
static int64_t to_int64(llong_t value) noexcept
Convert llong_t to int64.
static byte_t to_byte(uint16_t value)
Convert uint16_t to byte.
static char32_t to_char32(double value)
Convert double to char32.
static wchar_t to_wchar(wchar_t value) noexcept
Convert char32_t to wchar.
static char8_t to_char8(bool value)
Convert bool to char8.
static wchar_t to_wchar(uint16_t value) noexcept
Convert uint16_t to wchar.
static char to_char(char8_t value) noexcept
Convert char8_t to char.
static sbyte_t to_sbyte(byte_t value) noexcept
Convert byte_t to sbyte.
static bool to_boolean(char16_t value)
Convert char16_t to bool.
static int32_t to_int32(uint64_t value)
Convert uint64_t to int32.
static char8_t to_char8(char16_t value)
Convert char16_t to char8.
static uint16_t to_uint16(char32_t value)
Convert char32_t to uint16.
static byte_t to_byte(const xtd::ustring &value)
Convert string to byte.
static std::any to_any(wchar_t value) noexcept
Convert wchar_t to std::any.
static int16_t to_int16(bool value) noexcept
Convert bool to int16.
static uint64_t to_uint64(double value)
Convert double to uint64.
static char to_char(bool value)
Convert bool to char.
static uint16_t to_uint16(ullong_t value)
Convert llong_t to uint16.
static std::any to_any(char value) noexcept
Convert char to std::any.
static ustring to_ustring(float value)
Convert float to ustring.
static char8_t to_char8(uint64_t value)
Convert uint64_t to char8.
static char to_char(const xtd::ustring &value)
Convert string to char.
static llong_t to_llong(int16_t value) noexcept
Convert int16_t to llong.
static bool to_boolean(uint32_t value) noexcept
Convert uint32_t to bool.
static char to_char(int16_t value)
Convert int16_t to char.
static byte_t to_byte(type_t value) noexcept
Convert type_t to byte.
Definition: convert.h:707
static ustring to_ustring(char32_t value) noexcept
Convert char32_t to ustring.
static llong_t to_llong(float value) noexcept
Convert float to llong.
static llong_t to_llong(int32_t value) noexcept
Convert int32_t to llong.
static double to_double(llong_t value) noexcept
Convert llong_t to double.
static char to_char(sbyte_t value)
Convert sbyte_t to char.
static ustring to_ustring(sbyte_t value)
Convert sbyte_t to ustring.
static bool to_boolean(const xtd::ustring &value)
Convert string to bool.
static ustring to_ustring(uint16_t value) noexcept
Convert uint16_t to ustring.
static sbyte_t to_sbyte(bool value) noexcept
Convert bool to sbyte.
static ustring to_ustring(byte_t value) noexcept
Convert byte_t to ustring.
static bool to_boolean(type_t value) noexcept
Convert type_t to bool.
Definition: convert.h:458
static int64_t to_int64(uint32_t value) noexcept
Convert uint32_t to int64.
static int32_t to_int32(char8_t value) noexcept
Convert char8_t to int32.
static int32_t to_int32(wchar_t value) noexcept
Convert char32_t to int32.
static wchar_t to_wchar(float value)
Convert float to wchar.
static uint64_t to_uint64(int64_t value)
Convert int64_t to uint64.
static int64_t to_int64(char32_t value) noexcept
Convert char32_t to int64.
static double to_double(sbyte_t value) noexcept
Convert sbyte_t to double.
static double to_double(int32_t value) noexcept
Convert int32_t to double.
static double to_double(bool value) noexcept
Convert bool to double.
static uint32_t to_uint32(uint32_t value) noexcept
Convert uint32_t to uint32.
static int16_t to_int16(int16_t value) noexcept
Convert int16_t to int16.
static sbyte_t to_sbyte(sbyte_t value)
Convert sbyte_t to sbyte.
static std::any to_any(decimal_t value) noexcept
Convert decimal_t to std::any.
static ustring to_ustring(char value) noexcept
Convert char to ustring.
static int32_t to_int32(const xtd::ustring &value, byte_t from_base)
Convert string to int32.
static uint32_t to_uint32(type_t value) noexcept
Convert type_t to uint32.
Definition: convert.h:4247
static int32_t to_int32(char32_t value) noexcept
Convert char32_t to int32.
static wchar_t to_wchar(int64_t value)
Convert int64_t to wchar.
static uint32_t to_uint32(char8_t value) noexcept
Convert char8_t to uint32.
static llong_t to_llong(llong_t value) noexcept
Convert llong_t to llong.
static uint32_t to_uint32(byte_t value) noexcept
Convert byte_t to uint32.
static char32_t to_char32(wchar_t value) noexcept
Convert char32_t to char32.
static char16_t to_char16(char32_t value)
Convert char32_t to char16.
static char32_t to_char32(decimal_t value)
Convert decimal_t to char32.
static ustring to_ustring(wchar_t value) noexcept
Convert char32_t to ustring.
static double to_double(uint64_t value) noexcept
Convert uint64_t to double.
static int32_t to_int32(byte_t value) noexcept
Convert byte_t to int32.
static ustring to_ustring(bool value) noexcept
Convert bool to ustring.
static char16_t to_char16(uint16_t value) noexcept
Convert uint16_t to char16.
static uint64_t to_uint64(char value) noexcept
Convert char to uint64.
static ustring to_string(char value) noexcept
Convert char to ustring.
static uint32_t to_uint32(llong_t value)
Convert llong_t to uint32.
static double to_double(uint16_t value) noexcept
Convert uint16_t to double.
static char32_t to_char32(std::any value)
Convert std::any to char32.
static int64_t to_int64(char16_t value) noexcept
Convert char16_t to int64.
static llong_t to_llong(char32_t value) noexcept
Convert char32_t to llong.
static sbyte_t to_sbyte(double value)
Convert double to sbyte.
static std::any to_any(bool value) noexcept
Convert bool to std::any.
static int32_t to_int32(int16_t value) noexcept
Convert int16_t to int32.
static sbyte_t to_sbyte(type_t value) noexcept
Convert type_t to sbyte.
Definition: convert.h:3757
static ustring to_ustring(int16_t value)
Convert int16_t to ustring.
static wchar_t to_wchar(double value)
Convert double to wchar.
static uint16_t to_uint16(byte_t value) noexcept
Convert byte_t to uint16.
static uint64_t to_uint64(const xtd::ustring &value, byte_t from_base)
Convert string to uint64.
static ustring to_ustring(byte_t value, byte_t from_base)
Convert string to ustring.
static bool to_boolean(int16_t value) noexcept
Convert int16_t to bool.
static decimal_t to_decimal(char16_t value) noexcept
Convert char16_t to decimal.
static char32_t to_char32(int64_t value)
Convert int64_t to char32.
static uint64_t to_uint64(byte_t value) noexcept
Convert byte_t to uint64.
static float to_single(uint64_t value) noexcept
Convert uint64_t to single.
static uint64_t to_uint64(bool value) noexcept
Convert bool to uint64.
static bool to_boolean(bool value) noexcept
Convert bool to bool.
static char32_t to_char32(uint16_t value) noexcept
Convert uint16_t to char32.
static double to_double(uint32_t value) noexcept
Convert uint32_t to double.
static char16_t to_char16(char16_t value) noexcept
Convert char16_t to char16.
static char16_t to_char16(sbyte_t value)
Convert sbyte_t to char16.
static wchar_t to_wchar(llong_t value)
Convert llong_t to wchar.
static int32_t to_int32(sbyte_t value) noexcept
Convert sbyte_t to int32.
static char16_t to_char16(char8_t value) noexcept
Convert char8_t to char16.
static uint64_t to_uint64(const xtd::ustring &value)
Convert string to uint64.
static char16_t to_char16(double value)
Convert double to char16.
static llong_t to_llong(type_t value) noexcept
Convert type_t to llong.
Definition: convert.h:3508
static llong_t to_llong(char8_t value) noexcept
Convert char8_t to llong.
static byte_t to_byte(wchar_t value)
Convert char32_t to byte.
static wchar_t to_wchar(decimal_t value)
Convert decimal_t to wchar.
static double to_double(decimal_t value) noexcept
Convert decimal_t to double.
static int32_t to_int32(ullong_t value)
Convert llong_t to int32.
static char8_t to_char8(int16_t value)
Convert int16_t to char8.
static int64_t to_int64(sbyte_t value) noexcept
Convert sbyte_t to int64.
static char8_t to_char8(type_t value) noexcept
Convert type_t to char8.
Definition: convert.h:1181
static uint64_t to_uint64(uint64_t value) noexcept
Convert uint64_t to uint64.
static char32_t to_char32(int32_t value)
Convert int32_t to char32.
static wchar_t to_wchar(char32_t value)
Convert char32_t to wchar.
static ustring to_ustring(uint64_t value) noexcept
Convert uint64_t to ustring.
static byte_t to_byte(int64_t value)
Convert int64_t to byte.
static char to_char(float value)
Convert float to char.
static int16_t to_int16(int32_t value)
Convert int32_t to int16.
static ustring to_ustring(int32_t value, byte_t from_base)
Convert string to ustring.
static int64_t to_int64(ullong_t value)
Convert llong_t to int64.
static llong_t to_llong(int64_t value) noexcept
Convert int64_t to llong.
static wchar_t to_wchar(ullong_t value)
Convert llong_t to wchar.
static double to_double(char value) noexcept
Convert char to double.
static char to_char(uint32_t value)
Convert uint32_t to char.
static llong_t to_llong(sbyte_t value) noexcept
Convert sbyte_t to llong.
static double to_double(const xtd::ustring &value)
Convert string to double.
static ustring to_string(ullong_t value) noexcept
Convert llong_t to ustring.
static byte_t to_byte(double value)
Convert double to byte.
static std::any to_any(char16_t value) noexcept
Convert char16_t to std::any.
static bool to_boolean(llong_t value) noexcept
Convert llong_t to bool.
static int16_t to_int16(double value)
Convert double to int16.
static uint64_t to_uint64(char16_t value) noexcept
Convert char16_t to uint64.
static uint32_t to_uint32(int32_t value)
Convert int32_t to uint32.
static char16_t to_char16(bool value)
Convert bool to char16.
static uint64_t to_uint64(llong_t value)
Convert llong_t to uint64.
static char32_t to_char32(sbyte_t value)
Convert sbyte_t to char32.
static sbyte_t to_sbyte(const xtd::ustring &value)
Convert string to sbyte.
static char16_t to_char16(int32_t value)
Convert int32_t to char16.
static ustring to_string(const xtd::ustring &value)
Convert string to ustring.
static int32_t to_int32(llong_t value)
Convert llong_t to int32.
static ustring to_ustring(type_t value) noexcept
Convert type_t to ustring.
Definition: convert.h:5413
static wchar_t to_wchar(type_t value) noexcept
Convert type_t to wchar.
Definition: convert.h:1881
static uint64_t to_uint64(char8_t value) noexcept
Convert char8_t to uint64.
static ustring to_ustring(int16_t value, byte_t from_base)
Convert string to ustring.
static ustring to_ustring(int32_t value)
Convert int32_t to ustring.
static wchar_t to_wchar(sbyte_t value)
Convert sbyte_t to wchar.
static int64_t to_int64(int16_t value) noexcept
Convert int16_t to int64.
static int64_t to_int64(bool value) noexcept
Convert bool to int64.
static float to_single(const xtd::ustring &value)
Convert string to single.
static bool to_boolean(double value) noexcept
Convert double to bool.
static ustring to_string(int32_t value, byte_t from_base)
Convert string to ustring.
static int16_t to_int16(const xtd::ustring &value)
Convert string to int16.
static char8_t to_char8(char32_t value)
Convert char32_t to char8.
static uint16_t to_uint16(const xtd::ustring &value, byte_t from_base)
Convert string to uint16.
static uint32_t to_uint32(uint16_t value) noexcept
Convert uint16_t to uint32.
static ustring to_string(float value)
Convert float to ustring.
static uint32_t to_uint32(ullong_t value)
Convert llong_t to uint32.
static llong_t to_llong(byte_t value) noexcept
Convert byte_t to llong.
static uint16_t to_uint16(int64_t value)
Convert int64_t to uint16.
static ustring to_string(byte_t value, byte_t from_base)
Convert string to ustring.
static char to_char(int64_t value)
Convert int64_t to char.
static char16_t to_char16(int16_t value)
Convert int16_t to char16.
static wchar_t to_wchar(char value) noexcept
Convert char to wchar.
static char16_t to_char16(uint32_t value)
Convert uint32_t to char16.
static decimal_t to_decimal(bool value) noexcept
Convert bool to decimal.
static ustring to_string(char32_t value) noexcept
Convert char32_t to ustring.
static byte_t to_byte(char32_t value)
Convert char32_t to byte.
static char8_t to_char8(sbyte_t value)
Convert sbyte_t to char8.
static sbyte_t to_sbyte(llong_t value)
Convert llong_t to sbyte.
static uint16_t to_uint16(char8_t value) noexcept
Convert char8_t to uint16.
static bool to_boolean(int64_t value) noexcept
Convert int64_t to bool.
static double to_double(char16_t value) noexcept
Convert char16_t to double.
static char16_t to_char16(wchar_t value) noexcept
Convert char32_t to char16.
static ustring to_ustring(decimal_t value)
Convert decimal_t to ustring.
static int16_t to_int16(wchar_t value) noexcept
Convert char32_t to int16.
static char8_t to_char8(decimal_t value)
Convert decimal_t to char8.
static double to_double(byte_t value) noexcept
Convert byte_t to double.
static ustring to_ustring(char8_t value) noexcept
Convert char8_t to ustring.
static std::any to_any(sbyte_t value) noexcept
Convert sbyte_t to std::any.
static int64_t to_int64(const xtd::ustring &value)
Convert string to int64.
static ustring to_string(uint16_t value) noexcept
Convert uint16_t to ustring.
static bool to_boolean(float value) noexcept
Convert float to bool.
static char8_t to_char8(float value)
Convert float to char8.
static int64_t to_int64(char8_t value) noexcept
Convert char8_t to int64.
static wchar_t to_wchar(bool value)
Convert bool to wchar.
static int32_t to_int32(const xtd::ustring &value)
Convert string to int32.
static std::any to_any(float value) noexcept
Convert float to std::any.
static char16_t to_char16(char value) noexcept
Convert char to char16.
static byte_t to_byte(float value)
Convert float to byte.
static char16_t to_char16(uint64_t value)
Convert uint64_t to char16.
static char32_t to_char32(int16_t value)
Convert int16_t to char32.
static float to_single(char32_t value) noexcept
Convert char32_t to single.
static byte_t to_byte(char16_t value)
Convert char16_t to byte.
static wchar_t to_wchar(char16_t value) noexcept
Convert char16_t to wchar.
static decimal_t to_decimal(std::any value)
Convert std::any to decimal.
static ustring to_string(ullong_t value, byte_t from_base)
Convert string to ustring.
static std::any to_any(uint64_t value) noexcept
Convert uint64_t to std::any.
static wchar_t to_wchar(const xtd::ustring &value)
Convert string to wchar.
static char8_t to_char8(const xtd::ustring &value)
Convert string to char8.
static wchar_t to_wchar(int16_t value)
Convert int16_t to wchar.
static float to_single(decimal_t value) noexcept
Convert decimal_t to single.
static uint16_t to_uint16(uint32_t value)
Convert uint32_t to uint16.
static llong_t to_llong(const xtd::ustring &value, byte_t from_base)
Convert string to llong.
static wchar_t to_wchar(uint64_t value)
Convert uint64_t to wchar.
static char to_char(std::any value)
Convert std::any to char.
static char32_t to_char32(llong_t value)
Convert llong_t to char32.
static ustring to_string(uint16_t value, byte_t from_base)
Convert string to ustring.
static decimal_t to_decimal(double value) noexcept
Convert double to decimal.
static char16_t to_char16(int64_t value)
Convert int64_t to char16.
static char to_char(llong_t value)
Convert llong_t to char.
static wchar_t to_wchar(uint32_t value)
Convert uint32_t to wchar.
static char16_t to_char16(const xtd::ustring &value)
Convert string to char16.
static bool to_boolean(byte_t value) noexcept
Convert byte_t to bool.
static ustring to_string(llong_t value)
Convert llong_t to ustring.
static uint64_t to_uint64(ullong_t value) noexcept
Convert llong_t to uint64.
static uint32_t to_uint32(decimal_t value)
Convert decimal_t to uint32.
static uint16_t to_uint16(wchar_t value) noexcept
Convert char32_t to uint16.
static char16_t to_char16(llong_t value)
Convert llong_t to char16.
static byte_t to_byte(char8_t value) noexcept
Convert char8_t to byte.
static char8_t to_char8(uint32_t value)
Convert uint32_t to char8.
static uint16_t to_uint16(std::any value)
Convert std::any to uint16.
static std::any to_any(type_t value)
Convert type_t to bool.
Definition: convert.h:233
static decimal_t to_decimal(byte_t value) noexcept
Convert byte_t to decimal.
static llong_t to_llong(std::any value)
Convert std::any to llong.
static uint32_t to_uint32(char value) noexcept
Convert char to uint32.
static bool to_boolean(decimal_t value) noexcept
Convert decimal_t to bool.
static char32_t to_char32(bool value)
Convert bool to char32.
static char to_char(ullong_t value)
Convert llong_t to char.
static sbyte_t to_sbyte(const xtd::ustring &value, byte_t from_base)
Convert string to sbyte.
static char32_t to_char32(char value) noexcept
Convert char to char32.
static char16_t to_char16(type_t value) noexcept
Convert type_t to char16.
Definition: convert.h:1415
static char16_t to_char16(decimal_t value)
Convert decimal_t to char16.
static decimal_t to_decimal(int32_t value) noexcept
Convert int32_t to decimal.
static char to_char(double value)
Convert double to char.
static int64_t to_int64(type_t value) noexcept
Convert type_t to int64.
Definition: convert.h:3272
static uint16_t to_uint16(float value)
Convert float to uint16.
static uint16_t to_uint16(uint64_t value)
Convert uint64_t to uint16.
static float to_single(float value) noexcept
Convert float to single.
static char8_t to_char8(int64_t value)
Convert int64_t to char8.
static float to_single(type_t value) noexcept
Convert type_t to single.
Definition: convert.h:2550
static uint64_t to_uint64(wchar_t value) noexcept
Convert char32_t to uint64.
static llong_t to_llong(uint16_t value) noexcept
Convert uint16_t to llong.
static ustring to_ustring(ullong_t value, byte_t from_base)
Convert string to ustring.
static int32_t to_int32(type_t value) noexcept
Convert type_t to int32.
Definition: convert.h:3036
static uint16_t to_uint16(int16_t value)
Convert int16_t to uint16.
static llong_t to_llong(decimal_t value) noexcept
Convert decimal_t to llong.
static double to_double(char8_t value) noexcept
Convert char8_t to double.
static char8_t to_char8(int32_t value)
Convert int32_t to char8.
static std::any to_any(int64_t value) noexcept
Convert int64_t to std::any.
static byte_t to_byte(int16_t value)
Convert int16_t to byte.
static decimal_t to_decimal(char value) noexcept
Convert char to decimal.
static std::any to_any(llong_t value) noexcept
Convert llong_t to std::any.
static char to_char(type_t value) noexcept
Convert type_t to char.
Definition: convert.h:944
static llong_t to_llong(bool value) noexcept
Convert bool to llong.
static uint32_t to_uint32(int64_t value)
Convert int64_t to uint32.
static char to_char(decimal_t value)
Convert decimal_t to char.
static uint64_t to_uint64(sbyte_t value)
Convert sbyte_t to uint64.
static decimal_t to_decimal(sbyte_t value) noexcept
Convert sbyte_t to decimal.
static sbyte_t to_sbyte(char32_t value)
Convert char32_t to sbyte.
static ustring to_ustring(uint64_t value, byte_t from_base)
Convert string to ustring.
static decimal_t to_decimal(uint32_t value) noexcept
Convert uint32_t to decimal.
static bool to_boolean(int32_t value) noexcept
Convert int32_t to bool.
static uint16_t to_uint16(const xtd::ustring &value)
Convert string to uint16.
static ustring to_ustring(int64_t value)
Convert int64_t to ustring.
static byte_t to_byte(uint64_t value)
Convert uint64_t to byte.
static ustring to_ustring(ullong_t value) noexcept
Convert llong_t to ustring.
static float to_single(int16_t value) noexcept
Convert int16_t to single.
static ustring to_string(char8_t value) noexcept
Convert char8_t to ustring.
static ustring to_ustring(int64_t value, byte_t from_base)
Convert string to ustring.
static byte_t to_byte(byte_t value) noexcept
Convert byte_t to byte.
static std::any to_any(double value) noexcept
Convert double to std::any.
static float to_single(llong_t value) noexcept
Convert llong_t to single.
static int64_t to_int64(decimal_t value) noexcept
Convert decimal_t to int64.
static sbyte_t to_sbyte(uint16_t value)
Convert uint16_t to sbyte.
static double to_double(type_t value) noexcept
Convert type_t to double.
Definition: convert.h:2327
static char16_t to_char16(ullong_t value)
Convert llong_t to char16.
static float to_single(sbyte_t value) noexcept
Convert sbyte_t to single.
static float to_single(ullong_t value) noexcept
Convert llong_t to single.
static int32_t to_int32(int64_t value)
Convert int64_t to int32.
static char8_t to_char8(byte_t value) noexcept
Convert byte_t to char8.
static decimal_t to_decimal(llong_t value) noexcept
Convert llong_t to decimal.
static int16_t to_int16(int64_t value)
Convert int64_t to int16.
static decimal_t to_decimal(const xtd::ustring &value)
Convert string to decimal.
static std::any to_any(uint32_t value) noexcept
Convert uint32_t to std::any.
static sbyte_t to_sbyte(int64_t value)
Convert int64_t to sbyte.
static int16_t to_int16(const xtd::ustring &value, byte_t from_base)
Convert string to int16.
static uint32_t to_uint32(float value)
Convert float to uint32.
static int32_t to_int32(float value) noexcept
Convert float to int32.
static bool to_boolean(uint16_t value) noexcept
Convert uint16_t to bool.
static byte_t to_byte(bool value) noexcept
Convert bool to byte.
static std::any to_any(uint16_t value) noexcept
Convert uint16_t to std::any.
static uint64_t to_uint64(int32_t value)
Convert int32_t to uint64.
static char32_t to_char32(type_t value) noexcept
Convert type_t to char32.
Definition: convert.h:1647
static decimal_t to_decimal(int16_t value) noexcept
Convert int16_t to decimal.
static sbyte_t to_sbyte(int16_t value)
Convert int16_t to sbyte.
static double to_double(float value) noexcept
Convert float to double.
The exception that is thrown for invalid casting or explicit conversion.
Definition: invalid_cast_exception.h:18
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:48
static ustring format(const ustring &fmt, args_t &&... args)
Writes the text representation of the specified arguments list, to string using the specified format ...
Definition: ustring.h:689
#define static_
This keyword is use to represent a static object. A static object can't be instantiated (constructors...
Definition: static.h:38
#define csf_
Provides information about the current stack frame.
Definition: stack_frame.h:213
Contains xtd::invalid_cast_exception exception.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17
Contains xtd::static_object class.
Contains xtd fundamental types.
Contains xtd::ustring class.