xtd 1.0.0
Loading...
Searching...
No Matches
convert.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "any.hpp"
6#include "read_only_span.hpp"
7#include "static.hpp"
8#include "types.hpp"
9#include "string.hpp"
10#define __XTD_STD_INTERNAL__
12#undef __XTD_STD_INTERNAL__
13
15namespace xtd {
28 public:
30
39 [[nodiscard]] static auto from_base64_string(const xtd::string& s) -> xtd::array<xtd::byte>;
40
49 [[nodiscard]] static auto to_any(xtd::any value) noexcept -> xtd::any;
58 [[nodiscard]] static auto to_any(bool value) noexcept -> xtd::any;
67 [[nodiscard]] static auto to_any(xtd::byte value) noexcept -> xtd::any;
76 [[nodiscard]] static auto to_any(char value) noexcept -> xtd::any;
86 [[nodiscard]] static auto to_any(char8 value) -> xtd::any;
95 [[nodiscard]] static auto to_any(char16 value) noexcept -> xtd::any;
104 [[nodiscard]] static auto to_any(char32 value) noexcept -> xtd::any;
113 [[nodiscard]] static auto to_any(wchar value) noexcept -> xtd::any;
122 [[nodiscard]] static auto to_any(decimal value) noexcept -> xtd::any;
131 [[nodiscard]] static auto to_any(double value) noexcept -> xtd::any;
143 [[nodiscard]] static auto to_any(float value) noexcept -> xtd::any;
152 [[nodiscard]] static auto to_any(int16 value) noexcept -> xtd::any;
161 [[nodiscard]] static auto to_any(int32 value) noexcept -> xtd::any;
170 [[nodiscard]] static auto to_any(int64 value) noexcept -> xtd::any;
179 [[nodiscard]] static auto to_any(slong value) noexcept -> xtd::any;
188 [[nodiscard]] static auto to_any(sbyte value) noexcept -> xtd::any;
197 [[nodiscard]] static auto to_any(uint16 value) noexcept -> xtd::any;
206 [[nodiscard]] static auto to_any(uint32 value) noexcept -> xtd::any;
215 [[nodiscard]] static auto to_any(uint64 value) noexcept -> xtd::any;
224 [[nodiscard]] static auto to_any(xtd::ulong value) noexcept -> xtd::any;
233 [[nodiscard]] static auto to_any(const xtd::string& value) noexcept -> xtd::any;
235 [[nodiscard]] static auto to_any(const std::string& value) noexcept -> xtd::any;
236 [[nodiscard]] static auto to_any(const std::u8string& value) noexcept -> xtd::any;
237 [[nodiscard]] static auto to_any(const std::u16string& value) noexcept -> xtd::any;
238 [[nodiscard]] static auto to_any(const std::u32string& value) noexcept -> xtd::any;
239 [[nodiscard]] static auto to_any(const std::wstring& value) noexcept -> xtd::any;
240 [[nodiscard]] static auto to_any(const char* value) noexcept -> xtd::any;
241 [[nodiscard]] static auto to_any(char* value) noexcept -> xtd::any;
242 [[nodiscard]] static auto to_any(const char8* value) -> xtd::any;
243 [[nodiscard]] static auto to_any(char8* value) -> xtd::any;
244 [[nodiscard]] static auto to_any(const char16* value) noexcept -> xtd::any;
245 [[nodiscard]] static auto to_any(char16* value) noexcept -> xtd::any;
246 [[nodiscard]] static auto to_any(const char32* value) noexcept -> xtd::any;
247 [[nodiscard]] static auto to_any(char32* value) noexcept -> xtd::any;
248 [[nodiscard]] static auto to_any(const wchar* value) noexcept -> xtd::any;
249 [[nodiscard]] static auto to_any(wchar* value) noexcept -> xtd::any;
259 template<typename type_t>
260 [[nodiscard]] static auto to_any(type_t value) -> xtd::any {
261 try {
262 return xtd::any(value);
263 } catch (...) {
265 }
266 }
267
271 [[nodiscard]] static auto to_base64_string(const xtd::array<xtd::byte>& in_array) -> xtd::string;
275 [[nodiscard]] static auto to_base64_string(const xtd::read_only_span<xtd::byte>& bytes) -> xtd::string;
276
286 [[nodiscard]] static auto to_boolean(xtd::any value) -> bool;
295 [[nodiscard]] static auto to_boolean(bool value) noexcept -> bool;
304 [[nodiscard]] static auto to_boolean(xtd::byte value) noexcept -> bool;
314 [[nodiscard]] static auto to_boolean(char value) -> bool;
324 [[nodiscard]] static auto to_boolean(char8 value) -> bool;
334 [[nodiscard]] static auto to_boolean(char16 value) -> bool;
344 [[nodiscard]] static auto to_boolean(char32 value) -> bool;
354 [[nodiscard]] static auto to_boolean(wchar value) -> bool;
363 [[nodiscard]] static auto to_boolean(decimal value) noexcept -> bool;
372 [[nodiscard]] static auto to_boolean(double value) noexcept -> bool;
384 [[nodiscard]] static auto to_boolean(float value) noexcept -> bool;
393 [[nodiscard]] static auto to_boolean(int16 value) noexcept -> bool;
402 [[nodiscard]] static auto to_boolean(int32 value) noexcept -> bool;
411 [[nodiscard]] static auto to_boolean(int64 value) noexcept -> bool;
420 [[nodiscard]] static auto to_boolean(slong value) noexcept -> bool;
429 [[nodiscard]] static auto to_boolean(sbyte value) noexcept -> bool;
438 [[nodiscard]] static auto to_boolean(uint16 value) noexcept -> bool;
447 [[nodiscard]] static auto to_boolean(uint32 value) noexcept -> bool;
456 [[nodiscard]] static auto to_boolean(uint64 value) noexcept -> bool;
465 [[nodiscard]] static auto to_boolean(xtd::ulong value) noexcept -> bool;
475 [[nodiscard]] static auto to_boolean(const xtd::string& value) -> bool;
477 [[nodiscard]] static auto to_boolean(const std::string& value) -> bool;
478 [[nodiscard]] static auto to_boolean(const std::u8string& value) -> bool;
479 [[nodiscard]] static auto to_boolean(const std::u16string& value) -> bool;
480 [[nodiscard]] static auto to_boolean(const std::u32string& value) -> bool;
481 [[nodiscard]] static auto to_boolean(const std::wstring& value) -> bool;
482 [[nodiscard]] static auto to_boolean(const char* value) -> bool;
483 [[nodiscard]] static auto to_boolean(char* value) -> bool;
484 [[nodiscard]] static auto to_boolean(const char8* value) -> bool;
485 [[nodiscard]] static auto to_boolean(char8* value) -> bool;
486 [[nodiscard]] static auto to_boolean(const char16* value) -> bool;
487 [[nodiscard]] static auto to_boolean(char16* value) -> bool;
488 [[nodiscard]] static auto to_boolean(const char32* value) -> bool;
489 [[nodiscard]] static auto to_boolean(char32* value) -> bool;
490 [[nodiscard]] static auto to_boolean(const wchar* value) -> bool;
491 [[nodiscard]] static auto to_boolean(wchar* value) -> bool;
501 template<typename type_t>
502 [[nodiscard]] static auto to_boolean(type_t value) noexcept -> bool {
503 return static_cast<bool>(value);
504 }
505
514 [[nodiscard]] static auto to_byte(xtd::any value) -> xtd::byte;
523 [[nodiscard]] static auto to_byte(bool value) noexcept -> xtd::byte;
532 [[nodiscard]] static auto to_byte(xtd::byte value) noexcept -> xtd::byte;
541 [[nodiscard]] static auto to_byte(char value) noexcept -> xtd::byte;
550 [[nodiscard]] static auto to_byte(char8 value) noexcept -> xtd::byte;
560 [[nodiscard]] static auto to_byte(char16 value) -> xtd::byte;
570 [[nodiscard]] static auto to_byte(char32 value) -> xtd::byte;
580 [[nodiscard]] static auto to_byte(wchar value) -> xtd::byte;
591 [[nodiscard]] static auto to_byte(decimal value) -> xtd::byte;
602 [[nodiscard]] static auto to_byte(double value) -> xtd::byte;
613 [[nodiscard]] static auto to_byte(float value) -> xtd::byte;
623 [[nodiscard]] static auto to_byte(int16 value) -> xtd::byte;
633 [[nodiscard]] static auto to_byte(int32 value) -> xtd::byte;
643 [[nodiscard]] static auto to_byte(int64 value) -> xtd::byte;
653 [[nodiscard]] static auto to_byte(slong value) -> xtd::byte;
663 [[nodiscard]] static auto to_byte(sbyte value) -> xtd::byte;
673 [[nodiscard]] static auto to_byte(uint16 value) -> xtd::byte;
683 [[nodiscard]] static auto to_byte(uint32 value) -> xtd::byte;
693 [[nodiscard]] static auto to_byte(uint64 value) -> xtd::byte;
703 [[nodiscard]] static auto to_byte(xtd::ulong value) -> xtd::byte;
713 [[nodiscard]] static auto to_byte(const xtd::string& value) -> xtd::byte;
724 [[nodiscard]] static auto to_byte(const xtd::string& value, xtd::byte from_base) -> xtd::byte;
726 [[nodiscard]] static auto to_byte(const std::string& value) -> xtd::byte;
727 [[nodiscard]] static auto to_byte(const std::u8string& value) -> xtd::byte;
728 [[nodiscard]] static auto to_byte(const std::u16string& value) -> xtd::byte;
729 [[nodiscard]] static auto to_byte(const std::u32string& value) -> xtd::byte;
730 [[nodiscard]] static auto to_byte(const std::wstring& value) -> xtd::byte;
731 [[nodiscard]] static auto to_byte(const char* value) -> xtd::byte;
732 [[nodiscard]] static auto to_byte(char* value) -> xtd::byte;
733 [[nodiscard]] static auto to_byte(const char8* value) -> xtd::byte;
734 [[nodiscard]] static auto to_byte(char8* value) -> xtd::byte;
735 [[nodiscard]] static auto to_byte(const char16* value) -> xtd::byte;
736 [[nodiscard]] static auto to_byte(char16* value) -> xtd::byte;
737 [[nodiscard]] static auto to_byte(const char32* value) -> xtd::byte;
738 [[nodiscard]] static auto to_byte(char32* value) -> xtd::byte;
739 [[nodiscard]] static auto to_byte(const wchar* value) -> xtd::byte;
740 [[nodiscard]] static auto to_byte(wchar* value) -> xtd::byte;
750 template<typename type_t>
751 [[nodiscard]] static auto to_byte(type_t value) noexcept -> xtd::byte {
752 return static_cast<xtd::byte>(value);
753 }
754
763 [[nodiscard]] static auto to_char(xtd::any value) -> char;
772 [[nodiscard]] static auto to_char(bool value) -> char;
781 [[nodiscard]] static auto to_char(xtd::byte value) noexcept -> char;
790 [[nodiscard]] static auto to_char(char value) noexcept -> char;
799 [[nodiscard]] static auto to_char(char8 value) noexcept -> char;
809 [[nodiscard]] static auto to_char(char16 value) -> char;
819 [[nodiscard]] static auto to_char(char32 value) -> char;
829 [[nodiscard]] static auto to_char(wchar value) -> char;
839 [[nodiscard]] static auto to_char(decimal value) -> char;
850 [[nodiscard]] static auto to_char(double value) -> char;
861 [[nodiscard]] static auto to_char(float value) -> char;
871 [[nodiscard]] static auto to_char(int16 value) -> char;
881 [[nodiscard]] static auto to_char(int32 value) -> char;
891 [[nodiscard]] static auto to_char(int64 value) -> char;
901 [[nodiscard]] static auto to_char(slong value) -> char;
911 [[nodiscard]] static auto to_char(sbyte value) -> char;
921 [[nodiscard]] static auto to_char(uint16 value) -> char;
931 [[nodiscard]] static auto to_char(uint32 value) -> char;
941 [[nodiscard]] static auto to_char(uint64 value) -> char;
951 [[nodiscard]] static auto to_char(xtd::ulong value) -> char;
961 [[nodiscard]] static auto to_char(const xtd::string& value) -> char;
963 [[nodiscard]] static auto to_char(const std::string& value) -> char;
964 [[nodiscard]] static auto to_char(const std::u8string& value) -> char;
965 [[nodiscard]] static auto to_char(const std::u16string& value) -> char;
966 [[nodiscard]] static auto to_char(const std::u32string& value) -> char;
967 [[nodiscard]] static auto to_char(const std::wstring& value) -> char;
968 [[nodiscard]] static auto to_char(const char* value) -> char;
969 [[nodiscard]] static auto to_char(char* value) -> char;
970 [[nodiscard]] static auto to_char(const char8* value) -> char;
971 [[nodiscard]] static auto to_char(char8* value) -> char;
972 [[nodiscard]] static auto to_char(const char16* value) -> char;
973 [[nodiscard]] static auto to_char(char16* value) -> char;
974 [[nodiscard]] static auto to_char(const char32* value) -> char;
975 [[nodiscard]] static auto to_char(char32* value) -> char;
976 [[nodiscard]] static auto to_char(const wchar* value) -> char;
977 [[nodiscard]] static auto to_char(wchar* value) -> char;
987 template<typename type_t>
988 [[nodiscard]] static auto to_char(type_t value) noexcept -> char {
989 return static_cast<char>(value);
990 }
991
1000 [[nodiscard]] static auto to_char8(xtd::any value) -> xtd::char8;
1009 [[nodiscard]] static auto to_char8(bool value) -> xtd::char8;
1018 [[nodiscard]] static auto to_char8(xtd::byte value) noexcept -> xtd::char8;
1027 [[nodiscard]] static auto to_char8(char value) noexcept -> xtd::char8;
1036 [[nodiscard]] static auto to_char8(char8 value) noexcept -> xtd::char8;
1046 [[nodiscard]] static auto to_char8(char16 value) -> xtd::char8;
1056 [[nodiscard]] static auto to_char8(char32 value) -> xtd::char8;
1066 [[nodiscard]] static auto to_char8(wchar value) -> xtd::char8;
1076 [[nodiscard]] static auto to_char8(decimal value) -> xtd::char8;
1087 [[nodiscard]] static auto to_char8(double value) -> xtd::char8;
1098 [[nodiscard]] static auto to_char8(float value) -> xtd::char8;
1108 [[nodiscard]] static auto to_char8(int16 value) -> xtd::char8;
1118 [[nodiscard]] static auto to_char8(int32 value) -> xtd::char8;
1128 [[nodiscard]] static auto to_char8(int64 value) -> xtd::char8;
1138 [[nodiscard]] static auto to_char8(slong value) -> xtd::char8;
1148 [[nodiscard]] static auto to_char8(sbyte value) -> xtd::char8;
1158 [[nodiscard]] static auto to_char8(uint16 value) -> xtd::char8;
1168 [[nodiscard]] static auto to_char8(uint32 value) -> xtd::char8;
1178 [[nodiscard]] static auto to_char8(uint64 value) -> xtd::char8;
1188 [[nodiscard]] static auto to_char8(xtd::ulong value) -> xtd::char8;
1198 [[nodiscard]] static auto to_char8(const xtd::string& value) -> xtd::char8;
1200 [[nodiscard]] static auto to_char8(const std::string& value) -> xtd::char8;
1201 [[nodiscard]] static auto to_char8(const std::u8string& value) -> xtd::char8;
1202 [[nodiscard]] static auto to_char8(const std::u16string& value) -> xtd::char8;
1203 [[nodiscard]] static auto to_char8(const std::u32string& value) -> xtd::char8;
1204 [[nodiscard]] static auto to_char8(const std::wstring& value) -> xtd::char8;
1205 [[nodiscard]] static auto to_char8(const char* value) -> xtd::char8;
1206 [[nodiscard]] static auto to_char8(char* value) -> xtd::char8;
1207 [[nodiscard]] static auto to_char8(const char8* value) -> xtd::char8;
1208 [[nodiscard]] static auto to_char8(char8* value) -> xtd::char8;
1209 [[nodiscard]] static auto to_char8(const char16* value) -> xtd::char8;
1210 [[nodiscard]] static auto to_char8(char16* value) -> xtd::char8;
1211 [[nodiscard]] static auto to_char8(const char32* value) -> xtd::char8;
1212 [[nodiscard]] static auto to_char8(char32* value) -> xtd::char8;
1213 [[nodiscard]] static auto to_char8(const wchar* value) -> xtd::char8;
1214 [[nodiscard]] static auto to_char8(wchar* value) -> xtd::char8;
1224 template<typename type_t>
1225 [[nodiscard]] static auto to_char8(type_t value) noexcept -> xtd::char8 {
1226 return static_cast<char8>(value);
1227 }
1228
1237 [[nodiscard]] static auto to_char16(xtd::any value) -> xtd::char16;
1246 [[nodiscard]] static auto to_char16(bool value) -> xtd::char16;
1255 [[nodiscard]] static auto to_char16(xtd::byte value) noexcept -> xtd::char16;
1264 [[nodiscard]] static auto to_char16(char value) noexcept -> xtd::char16;
1273 [[nodiscard]] static auto to_char16(char8 value) noexcept -> xtd::char16;
1282 [[nodiscard]] static auto to_char16(char16 value) noexcept -> xtd::char16;
1292 [[nodiscard]] static auto to_char16(char32 value) -> xtd::char16;
1301 [[nodiscard]] static auto to_char16(wchar value) noexcept -> xtd::char16;
1311 [[nodiscard]] static auto to_char16(decimal value) -> xtd::char16;
1322 [[nodiscard]] static auto to_char16(double value) -> xtd::char16;
1333 [[nodiscard]] static auto to_char16(float value) -> xtd::char16;
1343 [[nodiscard]] static auto to_char16(int16 value) -> xtd::char16;
1353 [[nodiscard]] static auto to_char16(int32 value) -> xtd::char16;
1363 [[nodiscard]] static auto to_char16(int64 value) -> xtd::char16;
1373 [[nodiscard]] static auto to_char16(slong value) -> xtd::char16;
1383 [[nodiscard]] static auto to_char16(sbyte value) -> xtd::char16;
1392 [[nodiscard]] static auto to_char16(uint16 value) noexcept -> xtd::char16;
1402 [[nodiscard]] static auto to_char16(uint32 value) -> xtd::char16;
1412 [[nodiscard]] static auto to_char16(uint64 value) -> xtd::char16;
1422 [[nodiscard]] static auto to_char16(xtd::ulong value) -> xtd::char16;
1432 [[nodiscard]] static auto to_char16(const xtd::string& value) -> xtd::char16;
1434 [[nodiscard]] static auto to_char16(const std::string& value) -> xtd::char16;
1435 [[nodiscard]] static auto to_char16(const std::u8string& value) -> xtd::char16;
1436 [[nodiscard]] static auto to_char16(const std::u16string& value) -> xtd::char16;
1437 [[nodiscard]] static auto to_char16(const std::u32string& value) -> xtd::char16;
1438 [[nodiscard]] static auto to_char16(const std::wstring& value) -> xtd::char16;
1439 [[nodiscard]] static auto to_char16(const char* value) -> xtd::char16;
1440 [[nodiscard]] static auto to_char16(char* value) -> xtd::char16;
1441 [[nodiscard]] static auto to_char16(const char8* value) -> xtd::char16;
1442 [[nodiscard]] static auto to_char16(char8* value) -> xtd::char16;
1443 [[nodiscard]] static auto to_char16(const char16* value) -> xtd::char16;
1444 [[nodiscard]] static auto to_char16(char16* value) -> xtd::char16;
1445 [[nodiscard]] static auto to_char16(const char32* value) -> xtd::char16;
1446 [[nodiscard]] static auto to_char16(char32* value) -> xtd::char16;
1447 [[nodiscard]] static auto to_char16(const wchar* value) -> xtd::char16;
1448 [[nodiscard]] static auto to_char16(wchar* value) -> xtd::char16;
1458 template<typename type_t>
1459 [[nodiscard]] static auto to_char16(type_t value) noexcept -> xtd::char16 {
1460 return static_cast<char16>(value);
1461 }
1462
1471 [[nodiscard]] static auto to_char32(xtd::any value) -> xtd::char32;
1480 [[nodiscard]] static auto to_char32(bool value) -> xtd::char32;
1489 [[nodiscard]] static auto to_char32(xtd::byte value) noexcept -> xtd::char32;
1498 [[nodiscard]] static auto to_char32(char value) noexcept -> xtd::char32;
1507 [[nodiscard]] static auto to_char32(char8 value) noexcept -> xtd::char32;
1516 [[nodiscard]] static auto to_char32(char16 value) noexcept -> xtd::char32;
1525 [[nodiscard]] static auto to_char32(char32 value) noexcept -> xtd::char32;
1534 [[nodiscard]] static auto to_char32(wchar value) noexcept -> xtd::char32;
1544 [[nodiscard]] static auto to_char32(decimal value) -> xtd::char32;
1555 [[nodiscard]] static auto to_char32(double value) -> xtd::char32;
1566 [[nodiscard]] static auto to_char32(float value) -> xtd::char32;
1576 [[nodiscard]] static auto to_char32(int16 value) -> xtd::char32;
1586 [[nodiscard]] static auto to_char32(int32 value) -> xtd::char32;
1596 [[nodiscard]] static auto to_char32(int64 value) -> xtd::char32;
1606 [[nodiscard]] static auto to_char32(slong value) -> xtd::char32;
1616 [[nodiscard]] static auto to_char32(sbyte value) -> xtd::char32;
1625 [[nodiscard]] static auto to_char32(uint16 value) noexcept -> xtd::char32;
1634 [[nodiscard]] static auto to_char32(uint32 value) noexcept -> xtd::char32;
1644 [[nodiscard]] static auto to_char32(uint64 value) -> xtd::char32;
1654 [[nodiscard]] static auto to_char32(xtd::ulong value) -> xtd::char32;
1664 [[nodiscard]] static auto to_char32(const xtd::string& value) -> xtd::char32;
1666 [[nodiscard]] static auto to_char32(const std::string& value) -> xtd::char32;
1667 [[nodiscard]] static auto to_char32(const std::u8string& value) -> xtd::char32;
1668 [[nodiscard]] static auto to_char32(const std::u16string& value) -> xtd::char32;
1669 [[nodiscard]] static auto to_char32(const std::u32string& value) -> xtd::char32;
1670 [[nodiscard]] static auto to_char32(const std::wstring& value) -> xtd::char32;
1671 [[nodiscard]] static auto to_char32(const char* value) -> xtd::char32;
1672 [[nodiscard]] static auto to_char32(char* value) -> xtd::char32;
1673 [[nodiscard]] static auto to_char32(const char8* value) -> xtd::char32;
1674 [[nodiscard]] static auto to_char32(char8* value) -> xtd::char32;
1675 [[nodiscard]] static auto to_char32(const char16* value) -> xtd::char32;
1676 [[nodiscard]] static auto to_char32(char16* value) -> xtd::char32;
1677 [[nodiscard]] static auto to_char32(const char32* value) -> xtd::char32;
1678 [[nodiscard]] static auto to_char32(char32* value) -> xtd::char32;
1679 [[nodiscard]] static auto to_char32(const wchar* value) -> xtd::char32;
1680 [[nodiscard]] static auto to_char32(wchar* value) -> xtd::char32;
1690 template<typename type_t>
1691 [[nodiscard]] static auto to_char32(type_t value) noexcept -> xtd::char32 {
1692 return static_cast<char32>(value);
1693 }
1694
1703 [[nodiscard]] static auto to_wchar(xtd::any value) -> xtd::wchar;
1712 [[nodiscard]] static auto to_wchar(bool value) -> xtd::wchar;
1721 [[nodiscard]] static auto to_wchar(xtd::byte value) noexcept -> xtd::wchar;
1730 [[nodiscard]] static auto to_wchar(char value) noexcept -> xtd::wchar;
1739 [[nodiscard]] static auto to_wchar(char8 value) noexcept -> xtd::wchar;
1748 [[nodiscard]] static auto to_wchar(char16 value) noexcept -> xtd::wchar;
1758 [[nodiscard]] static auto to_wchar(char32 value) -> xtd::wchar;
1767 [[nodiscard]] static auto to_wchar(wchar value) noexcept -> xtd::wchar;
1777 [[nodiscard]] static auto to_wchar(decimal value) -> xtd::wchar;
1788 [[nodiscard]] static auto to_wchar(double value) -> xtd::wchar;
1799 [[nodiscard]] static auto to_wchar(float value) -> xtd::wchar;
1809 [[nodiscard]] static auto to_wchar(int16 value) -> xtd::wchar;
1819 [[nodiscard]] static auto to_wchar(int32 value) -> xtd::wchar;
1829 [[nodiscard]] static auto to_wchar(int64 value) -> xtd::wchar;
1839 [[nodiscard]] static auto to_wchar(slong value) -> xtd::wchar;
1849 [[nodiscard]] static auto to_wchar(sbyte value) -> xtd::wchar;
1858 [[nodiscard]] static auto to_wchar(uint16 value) noexcept -> xtd::wchar;
1868 [[nodiscard]] static auto to_wchar(uint32 value) -> xtd::wchar;
1878 [[nodiscard]] static auto to_wchar(uint64 value) -> xtd::wchar;
1888 [[nodiscard]] static auto to_wchar(xtd::ulong value) -> xtd::wchar;
1898 [[nodiscard]] static auto to_wchar(const xtd::string& value) -> xtd::wchar;
1900 [[nodiscard]] static auto to_wchar(const std::string& value) -> xtd::wchar;
1901 [[nodiscard]] static auto to_wchar(const std::u8string& value) -> xtd::wchar;
1902 [[nodiscard]] static auto to_wchar(const std::u16string& value) -> xtd::wchar;
1903 [[nodiscard]] static auto to_wchar(const std::u32string& value) -> xtd::wchar;
1904 [[nodiscard]] static auto to_wchar(const std::wstring& value) -> xtd::wchar;
1905 [[nodiscard]] static auto to_wchar(const char* value) -> xtd::wchar;
1906 [[nodiscard]] static auto to_wchar(char* value) -> xtd::wchar;
1907 [[nodiscard]] static auto to_wchar(const char8* value) -> xtd::wchar;
1908 [[nodiscard]] static auto to_wchar(char8* value) -> xtd::wchar;
1909 [[nodiscard]] static auto to_wchar(const char16* value) -> xtd::wchar;
1910 [[nodiscard]] static auto to_wchar(char16* value) -> xtd::wchar;
1911 [[nodiscard]] static auto to_wchar(const char32* value) -> xtd::wchar;
1912 [[nodiscard]] static auto to_wchar(char32* value) -> xtd::wchar;
1913 [[nodiscard]] static auto to_wchar(const wchar* value) -> xtd::wchar;
1914 [[nodiscard]] static auto to_wchar(wchar* value) -> xtd::wchar;
1924 template<typename type_t>
1925 [[nodiscard]] static auto to_wchar(type_t value) noexcept -> xtd::wchar {
1926 return static_cast<wchar>(value);
1927 }
1928
1937 [[nodiscard]] static auto to_decimal(xtd::any value) -> xtd::decimal;
1946 [[nodiscard]] static auto to_decimal(bool value) noexcept -> xtd::decimal;
1955 [[nodiscard]] static auto to_decimal(xtd::byte value) noexcept -> xtd::decimal;
1964 [[nodiscard]] static auto to_decimal(char value) noexcept -> xtd::decimal;
1973 [[nodiscard]] static auto to_decimal(char8 value) noexcept -> xtd::decimal;
1982 [[nodiscard]] static auto to_decimal(char16 value) noexcept -> xtd::decimal;
1991 [[nodiscard]] static auto to_decimal(char32 value) noexcept -> xtd::decimal;
2000 [[nodiscard]] static auto to_decimal(wchar value) noexcept -> xtd::decimal;
2010 [[nodiscard]] static auto to_decimal(decimal value) noexcept -> xtd::decimal;
2020 [[nodiscard]] static auto to_decimal(double value) noexcept -> xtd::decimal;
2030 [[nodiscard]] static auto to_decimal(float value) noexcept -> xtd::decimal;
2039 [[nodiscard]] static auto to_decimal(int16 value) noexcept -> xtd::decimal;
2048 [[nodiscard]] static auto to_decimal(int32 value) noexcept -> xtd::decimal;
2057 [[nodiscard]] static auto to_decimal(int64 value) noexcept -> xtd::decimal;
2066 [[nodiscard]] static auto to_decimal(slong value) noexcept -> xtd::decimal;
2075 [[nodiscard]] static auto to_decimal(sbyte value) noexcept -> xtd::decimal;
2084 [[nodiscard]] static auto to_decimal(uint16 value) noexcept -> xtd::decimal;
2093 [[nodiscard]] static auto to_decimal(uint32 value) noexcept -> xtd::decimal;
2102 [[nodiscard]] static auto to_decimal(uint64 value) noexcept -> xtd::decimal;
2111 [[nodiscard]] static auto to_decimal(xtd::ulong value) noexcept -> xtd::decimal;
2121 [[nodiscard]] static auto to_decimal(const xtd::string& value) -> xtd::decimal;
2123 [[nodiscard]] static auto to_decimal(const std::string& value) -> xtd::decimal;
2124 [[nodiscard]] static auto to_decimal(const std::u8string& value) -> xtd::decimal;
2125 [[nodiscard]] static auto to_decimal(const std::u16string& value) -> xtd::decimal;
2126 [[nodiscard]] static auto to_decimal(const std::u32string& value) -> xtd::decimal;
2127 [[nodiscard]] static auto to_decimal(const std::wstring& value) -> xtd::decimal;
2128 [[nodiscard]] static auto to_decimal(const char* value) -> xtd::decimal;
2129 [[nodiscard]] static auto to_decimal(char* value) -> xtd::decimal;
2130 [[nodiscard]] static auto to_decimal(const char8* value) -> xtd::decimal;
2131 [[nodiscard]] static auto to_decimal(char8* value) -> xtd::decimal;
2132 [[nodiscard]] static auto to_decimal(const char16* value) -> xtd::decimal;
2133 [[nodiscard]] static auto to_decimal(char16* value) -> xtd::decimal;
2134 [[nodiscard]] static auto to_decimal(const char32* value) -> xtd::decimal;
2135 [[nodiscard]] static auto to_decimal(char32* value) -> xtd::decimal;
2136 [[nodiscard]] static auto to_decimal(const wchar* value) -> xtd::decimal;
2137 [[nodiscard]] static auto to_decimal(wchar* value) -> xtd::decimal;
2147 template<typename type_t>
2148 [[nodiscard]] static auto to_decimal(type_t value) noexcept -> xtd::decimal {
2149 return static_cast<decimal>(value);
2150 }
2151
2160 [[nodiscard]] static auto to_double(xtd::any value) -> double;
2169 [[nodiscard]] static auto to_double(bool value) noexcept -> double;
2178 [[nodiscard]] static auto to_double(xtd::byte value) noexcept -> double;
2187 [[nodiscard]] static auto to_double(char value) noexcept -> double;
2196 [[nodiscard]] static auto to_double(char8 value) noexcept -> double;
2205 [[nodiscard]] static auto to_double(char16 value) noexcept -> double;
2214 [[nodiscard]] static auto to_double(char32 value) noexcept -> double;
2223 [[nodiscard]] static auto to_double(wchar value) noexcept -> double;
2233 [[nodiscard]] static auto to_double(decimal value) noexcept -> double;
2243 [[nodiscard]] static auto to_double(double value) noexcept -> double;
2253 [[nodiscard]] static auto to_double(float value) noexcept -> double;
2262 [[nodiscard]] static auto to_double(int16 value) noexcept -> double;
2271 [[nodiscard]] static auto to_double(int32 value) noexcept -> double;
2280 [[nodiscard]] static auto to_double(int64 value) noexcept -> double;
2289 [[nodiscard]] static auto to_double(slong value) noexcept -> double;
2298 [[nodiscard]] static auto to_double(sbyte value) noexcept -> double;
2307 [[nodiscard]] static auto to_double(uint16 value) noexcept -> double;
2316 [[nodiscard]] static auto to_double(uint32 value) noexcept -> double;
2325 [[nodiscard]] static auto to_double(uint64 value) noexcept -> double;
2334 [[nodiscard]] static auto to_double(xtd::ulong value) noexcept -> double;
2344 [[nodiscard]] static auto to_double(const xtd::string& value) -> double;
2346 [[nodiscard]] static auto to_double(const std::string& value) -> double;
2347 [[nodiscard]] static auto to_double(const std::u8string& value) -> double;
2348 [[nodiscard]] static auto to_double(const std::u16string& value) -> double;
2349 [[nodiscard]] static auto to_double(const std::u32string& value) -> double;
2350 [[nodiscard]] static auto to_double(const std::wstring& value) -> double;
2351 [[nodiscard]] static auto to_double(const char* value) -> double;
2352 [[nodiscard]] static auto to_double(char* value) -> double;
2353 [[nodiscard]] static auto to_double(const char8* value) -> double;
2354 [[nodiscard]] static auto to_double(char8* value) -> double;
2355 [[nodiscard]] static auto to_double(const char16* value) -> double;
2356 [[nodiscard]] static auto to_double(char16* value) -> double;
2357 [[nodiscard]] static auto to_double(const char32* value) -> double;
2358 [[nodiscard]] static auto to_double(char32* value) -> double;
2359 [[nodiscard]] static auto to_double(const wchar* value) -> double;
2360 [[nodiscard]] static auto to_double(wchar* value) -> double;
2370 template<typename type_t>
2371 [[nodiscard]] static auto to_double(type_t value) noexcept -> double {
2372 return static_cast<double>(value);
2373 }
2374
2383 [[nodiscard]] static auto to_single(xtd::any value) -> float;
2392 [[nodiscard]] static auto to_single(bool value) noexcept -> float;
2401 [[nodiscard]] static auto to_single(xtd::byte value) noexcept -> float;
2410 [[nodiscard]] static auto to_single(char value) noexcept -> float;
2419 [[nodiscard]] static auto to_single(char8 value) noexcept -> float;
2428 [[nodiscard]] static auto to_single(char16 value) noexcept -> float;
2437 [[nodiscard]] static auto to_single(char32 value) noexcept -> float;
2446 [[nodiscard]] static auto to_single(wchar value) noexcept -> float;
2456 [[nodiscard]] static auto to_single(decimal value) noexcept -> float;
2466 [[nodiscard]] static auto to_single(double value) noexcept -> float;
2476 [[nodiscard]] static auto to_single(float value) noexcept -> float;
2485 [[nodiscard]] static auto to_single(int16 value) noexcept -> float;
2494 [[nodiscard]] static auto to_single(int32 value) noexcept -> float;
2503 [[nodiscard]] static auto to_single(int64 value) noexcept -> float;
2512 [[nodiscard]] static auto to_single(slong value) noexcept -> float;
2521 [[nodiscard]] static auto to_single(sbyte value) noexcept -> float;
2530 [[nodiscard]] static auto to_single(uint16 value) noexcept -> float;
2539 [[nodiscard]] static auto to_single(uint32 value) noexcept -> float;
2548 [[nodiscard]] static auto to_single(uint64 value) noexcept -> float;
2557 [[nodiscard]] static auto to_single(xtd::ulong value) noexcept -> float;
2567 [[nodiscard]] static auto to_single(const xtd::string& value) -> float;
2569 [[nodiscard]] static auto to_single(const std::string& value) -> float;
2570 [[nodiscard]] static auto to_single(const std::u8string& value) -> float;
2571 [[nodiscard]] static auto to_single(const std::u16string& value) -> float;
2572 [[nodiscard]] static auto to_single(const std::u32string& value) -> float;
2573 [[nodiscard]] static auto to_single(const std::wstring& value) -> float;
2574 [[nodiscard]] static auto to_single(const char* value) -> float;
2575 [[nodiscard]] static auto to_single(char* value) -> float;
2576 [[nodiscard]] static auto to_single(const char8* value) -> float;
2577 [[nodiscard]] static auto to_single(char8* value) -> float;
2578 [[nodiscard]] static auto to_single(const char16* value) -> float;
2579 [[nodiscard]] static auto to_single(char16* value) -> float;
2580 [[nodiscard]] static auto to_single(const char32* value) -> float;
2581 [[nodiscard]] static auto to_single(char32* value) -> float;
2582 [[nodiscard]] static auto to_single(const wchar* value) -> float;
2583 [[nodiscard]] static auto to_single(wchar* value) -> float;
2593 template<typename type_t>
2594 [[nodiscard]] static auto to_single(type_t value) noexcept -> float {
2595 return static_cast<float>(value);
2596 }
2597
2606 [[nodiscard]] static auto to_int16(xtd::any value) -> xtd::int16;
2615 [[nodiscard]] static auto to_int16(bool value) noexcept -> xtd::int16;
2624 [[nodiscard]] static auto to_int16(xtd::byte value) noexcept -> xtd::int16;
2633 [[nodiscard]] static auto to_int16(char value) noexcept -> xtd::int16;
2642 [[nodiscard]] static auto to_int16(char8 value) noexcept -> xtd::int16;
2651 [[nodiscard]] static auto to_int16(char16 value) noexcept -> xtd::int16;
2661 [[nodiscard]] static auto to_int16(char32 value) -> xtd::int16;
2670 [[nodiscard]] static auto to_int16(wchar value) noexcept -> xtd::int16;
2681 [[nodiscard]] static auto to_int16(decimal value) -> xtd::int16;
2692 [[nodiscard]] static auto to_int16(double value) -> xtd::int16;
2703 [[nodiscard]] static auto to_int16(float value) -> xtd::int16;
2712 [[nodiscard]] static auto to_int16(int16 value) noexcept -> xtd::int16;
2722 [[nodiscard]] static auto to_int16(int32 value) -> xtd::int16;
2732 [[nodiscard]] static auto to_int16(int64 value) -> xtd::int16;
2742 [[nodiscard]] static auto to_int16(slong value) -> xtd::int16;
2751 [[nodiscard]] static auto to_int16(sbyte value) noexcept -> xtd::int16;
2761 [[nodiscard]] static auto to_int16(uint16 value) -> xtd::int16;
2771 [[nodiscard]] static auto to_int16(uint32 value) -> xtd::int16;
2781 [[nodiscard]] static auto to_int16(uint64 value) -> xtd::int16;
2791 [[nodiscard]] static auto to_int16(xtd::ulong value) -> xtd::int16;
2801 [[nodiscard]] static auto to_int16(const xtd::string& value) -> xtd::int16;
2812 [[nodiscard]] static auto to_int16(const xtd::string& value, xtd::byte from_base) -> xtd::int16;
2814 [[nodiscard]] static auto to_int16(const std::string& value) -> xtd::int16;
2815 [[nodiscard]] static auto to_int16(const std::u8string& value) -> xtd::int16;
2816 [[nodiscard]] static auto to_int16(const std::u16string& value) -> xtd::int16;
2817 [[nodiscard]] static auto to_int16(const std::u32string& value) -> xtd::int16;
2818 [[nodiscard]] static auto to_int16(const std::wstring& value) -> xtd::int16;
2819 [[nodiscard]] static auto to_int16(const char* value) -> xtd::int16;
2820 [[nodiscard]] static auto to_int16(char* value) -> xtd::int16;
2821 [[nodiscard]] static auto to_int16(const char8* value) -> xtd::int16;
2822 [[nodiscard]] static auto to_int16(char8* value) -> xtd::int16;
2823 [[nodiscard]] static auto to_int16(const char16* value) -> xtd::int16;
2824 [[nodiscard]] static auto to_int16(char16* value) -> xtd::int16;
2825 [[nodiscard]] static auto to_int16(const char32* value) -> xtd::int16;
2826 [[nodiscard]] static auto to_int16(char32* value) -> xtd::int16;
2827 [[nodiscard]] static auto to_int16(const wchar* value) -> xtd::int16;
2828 [[nodiscard]] static auto to_int16(wchar* value) -> xtd::int16;
2838 template<typename type_t>
2839 [[nodiscard]] static auto to_int16(type_t value) noexcept -> xtd::int16 {
2840 return static_cast<int16>(value);
2841 }
2842
2851 [[nodiscard]] static auto to_int32(xtd::any value) -> xtd::int32;
2860 [[nodiscard]] static auto to_int32(bool value) noexcept -> xtd::int32;
2869 [[nodiscard]] static auto to_int32(xtd::byte value) noexcept -> xtd::int32;
2878 [[nodiscard]] static auto to_int32(char value) noexcept -> xtd::int32;
2887 [[nodiscard]] static auto to_int32(char8 value) noexcept -> xtd::int32;
2896 [[nodiscard]] static auto to_int32(char16 value) noexcept -> xtd::int32;
2905 [[nodiscard]] static auto to_int32(char32 value) noexcept -> xtd::int32;
2914 [[nodiscard]] static auto to_int32(wchar value) noexcept -> xtd::int32;
2925 [[nodiscard]] static auto to_int32(decimal value) -> xtd::int32;
2936 [[nodiscard]] static auto to_int32(double value) -> xtd::int32;
2946 [[nodiscard]] static auto to_int32(float value) noexcept -> xtd::int32;
2955 [[nodiscard]] static auto to_int32(int16 value) noexcept -> xtd::int32;
2965 [[nodiscard]] static auto to_int32(int32 value) noexcept -> xtd::int32;
2974 [[nodiscard]] static auto to_int32(int64 value) -> xtd::int32;
2984 [[nodiscard]] static auto to_int32(slong value) -> xtd::int32;
2993 [[nodiscard]] static auto to_int32(sbyte value) noexcept -> xtd::int32;
3002 [[nodiscard]] static auto to_int32(uint16 value) noexcept -> xtd::int32;
3012 [[nodiscard]] static auto to_int32(uint32 value) -> xtd::int32;
3022 [[nodiscard]] static auto to_int32(uint64 value) -> xtd::int32;
3032 [[nodiscard]] static auto to_int32(xtd::ulong value) -> xtd::int32;
3042 [[nodiscard]] static auto to_int32(const xtd::string& value) -> xtd::int32;
3053 [[nodiscard]] static auto to_int32(const xtd::string& value, xtd::byte from_base) -> xtd::int32;
3055 [[nodiscard]] static auto to_int32(const std::string& value) -> xtd::int32;
3056 [[nodiscard]] static auto to_int32(const std::u8string& value) -> xtd::int32;
3057 [[nodiscard]] static auto to_int32(const std::u16string& value) -> xtd::int32;
3058 [[nodiscard]] static auto to_int32(const std::u32string& value) -> xtd::int32;
3059 [[nodiscard]] static auto to_int32(const std::wstring& value) -> xtd::int32;
3060 [[nodiscard]] static auto to_int32(const char* value) -> xtd::int32;
3061 [[nodiscard]] static auto to_int32(char* value) -> xtd::int32;
3062 [[nodiscard]] static auto to_int32(const char8* value) -> xtd::int32;
3063 [[nodiscard]] static auto to_int32(char8* value) -> xtd::int32;
3064 [[nodiscard]] static auto to_int32(const char16* value) -> xtd::int32;
3065 [[nodiscard]] static auto to_int32(char16* value) -> xtd::int32;
3066 [[nodiscard]] static auto to_int32(const char32* value) -> xtd::int32;
3067 [[nodiscard]] static auto to_int32(char32* value) -> xtd::int32;
3068 [[nodiscard]] static auto to_int32(const wchar* value) -> xtd::int32;
3069 [[nodiscard]] static auto to_int32(wchar* value) -> xtd::int32;
3079 template<typename type_t>
3080 [[nodiscard]] static auto to_int32(type_t value) noexcept -> xtd::int32 {
3081 return static_cast<int32>(value);
3082 }
3083
3092 [[nodiscard]] static auto to_int64(xtd::any value) -> xtd::int64;
3101 [[nodiscard]] static auto to_int64(bool value) noexcept -> xtd::int64;
3110 [[nodiscard]] static auto to_int64(xtd::byte value) noexcept -> xtd::int64;
3119 [[nodiscard]] static auto to_int64(char value) noexcept -> xtd::int64;
3128 [[nodiscard]] static auto to_int64(char8 value) noexcept -> xtd::int64;
3137 [[nodiscard]] static auto to_int64(char16 value) noexcept -> xtd::int64;
3146 [[nodiscard]] static auto to_int64(char32 value) noexcept -> xtd::int64;
3155 [[nodiscard]] static auto to_int64(wchar value) noexcept -> xtd::int64;
3165 [[nodiscard]] static auto to_int64(decimal value) noexcept -> xtd::int64;
3175 [[nodiscard]] static auto to_int64(double value) noexcept -> xtd::int64;
3185 [[nodiscard]] static auto to_int64(float value) noexcept -> xtd::int64;
3194 [[nodiscard]] static auto to_int64(int16 value) noexcept -> xtd::int64;
3203 [[nodiscard]] static auto to_int64(int32 value) noexcept -> xtd::int64;
3212 [[nodiscard]] static auto to_int64(int64 value) noexcept -> xtd::int64;
3221 [[nodiscard]] static auto to_int64(slong value) noexcept -> xtd::int64;
3230 [[nodiscard]] static auto to_int64(sbyte value) noexcept -> xtd::int64;
3239 [[nodiscard]] static auto to_int64(uint16 value) noexcept -> xtd::int64;
3248 [[nodiscard]] static auto to_int64(uint32 value) noexcept -> xtd::int64;
3258 [[nodiscard]] static auto to_int64(uint64 value) -> xtd::int64;
3268 [[nodiscard]] static auto to_int64(xtd::ulong value) -> xtd::int64;
3278 [[nodiscard]] static auto to_int64(const xtd::string& value) -> xtd::int64;
3289 [[nodiscard]] static auto to_int64(const xtd::string& value, xtd::byte from_base) -> xtd::int64;
3291 [[nodiscard]] static auto to_int64(const std::string& value) -> xtd::int64;
3292 [[nodiscard]] static auto to_int64(const std::u8string& value) -> xtd::int64;
3293 [[nodiscard]] static auto to_int64(const std::u16string& value) -> xtd::int64;
3294 [[nodiscard]] static auto to_int64(const std::u32string& value) -> xtd::int64;
3295 [[nodiscard]] static auto to_int64(const std::wstring& value) -> xtd::int64;
3296 [[nodiscard]] static auto to_int64(const char* value) -> xtd::int64;
3297 [[nodiscard]] static auto to_int64(char* value) -> xtd::int64;
3298 [[nodiscard]] static auto to_int64(const char8* value) -> xtd::int64;
3299 [[nodiscard]] static auto to_int64(char8* value) -> xtd::int64;
3300 [[nodiscard]] static auto to_int64(const char16* value) -> xtd::int64;
3301 [[nodiscard]] static auto to_int64(char16* value) -> xtd::int64;
3302 [[nodiscard]] static auto to_int64(const char32* value) -> xtd::int64;
3303 [[nodiscard]] static auto to_int64(char32* value) -> xtd::int64;
3304 [[nodiscard]] static auto to_int64(const wchar* value) -> xtd::int64;
3305 [[nodiscard]] static auto to_int64(wchar* value) -> xtd::int64;
3315 template<typename type_t>
3316 [[nodiscard]] static auto to_int64(type_t value) noexcept -> xtd::int64 {
3317 return static_cast<int64>(value);
3318 }
3319
3328 [[nodiscard]] static auto to_llong(xtd::any value) -> xtd::slong;
3337 [[nodiscard]] static auto to_llong(bool value) noexcept -> xtd::slong;
3346 [[nodiscard]] static auto to_llong(xtd::byte value) noexcept -> xtd::slong;
3355 [[nodiscard]] static auto to_llong(char value) noexcept -> xtd::slong;
3364 [[nodiscard]] static auto to_llong(char8 value) noexcept -> xtd::slong;
3373 [[nodiscard]] static auto to_llong(char16 value) noexcept -> xtd::slong;
3382 [[nodiscard]] static auto to_llong(char32 value) noexcept -> xtd::slong;
3391 [[nodiscard]] static auto to_llong(wchar value) noexcept -> xtd::slong;
3401 [[nodiscard]] static auto to_llong(decimal value) noexcept -> xtd::slong;
3411 [[nodiscard]] static auto to_llong(double value) noexcept -> xtd::slong;
3421 [[nodiscard]] static auto to_llong(float value) noexcept -> xtd::slong;
3430 [[nodiscard]] static auto to_llong(int16 value) noexcept -> xtd::slong;
3439 [[nodiscard]] static auto to_llong(int32 value) noexcept -> xtd::slong;
3448 [[nodiscard]] static auto to_llong(int64 value) noexcept -> xtd::slong;
3457 [[nodiscard]] static auto to_llong(slong value) noexcept -> xtd::slong;
3466 [[nodiscard]] static auto to_llong(sbyte value) noexcept -> xtd::slong;
3475 [[nodiscard]] static auto to_llong(uint16 value) noexcept -> xtd::slong;
3484 [[nodiscard]] static auto to_llong(uint32 value) noexcept -> xtd::slong;
3494 [[nodiscard]] static auto to_llong(uint64 value) -> xtd::slong;
3504 [[nodiscard]] static auto to_llong(xtd::ulong value) -> xtd::slong;
3514 [[nodiscard]] static auto to_llong(const xtd::string& value) -> xtd::slong;
3525 [[nodiscard]] static auto to_llong(const xtd::string& value, xtd::byte from_base) -> xtd::slong;
3527 [[nodiscard]] static auto to_llong(const std::string& value) -> xtd::slong;
3528 [[nodiscard]] static auto to_llong(const std::u8string& value) -> xtd::slong;
3529 [[nodiscard]] static auto to_llong(const std::u16string& value) -> xtd::slong;
3530 [[nodiscard]] static auto to_llong(const std::u32string& value) -> xtd::slong;
3531 [[nodiscard]] static auto to_llong(const std::wstring& value) -> xtd::slong;
3532 [[nodiscard]] static auto to_llong(const char* value) -> xtd::slong;
3533 [[nodiscard]] static auto to_llong(char* value) -> xtd::slong;
3534 [[nodiscard]] static auto to_llong(const char8* value) -> xtd::slong;
3535 [[nodiscard]] static auto to_llong(char8* value) -> xtd::slong;
3536 [[nodiscard]] static auto to_llong(const char16* value) -> xtd::slong;
3537 [[nodiscard]] static auto to_llong(char16* value) -> xtd::slong;
3538 [[nodiscard]] static auto to_llong(const char32* value) -> xtd::slong;
3539 [[nodiscard]] static auto to_llong(char32* value) -> xtd::slong;
3540 [[nodiscard]] static auto to_llong(const wchar* value) -> xtd::slong;
3541 [[nodiscard]] static auto to_llong(wchar* value) -> xtd::slong;
3551 template<typename type_t>
3552 [[nodiscard]] static auto to_llong(type_t value) noexcept -> xtd::slong {
3553 return static_cast<slong>(value);
3554 }
3555
3564 [[nodiscard]] static auto to_sbyte(xtd::any value) -> xtd::sbyte;
3573 [[nodiscard]] static auto to_sbyte(bool value) noexcept -> xtd::sbyte;
3582 [[nodiscard]] static auto to_sbyte(xtd::byte value) noexcept -> xtd::sbyte;
3591 [[nodiscard]] static auto to_sbyte(char value) noexcept -> xtd::sbyte;
3600 [[nodiscard]] static auto to_sbyte(char8 value) noexcept -> xtd::sbyte;
3610 [[nodiscard]] static auto to_sbyte(char16 value) -> xtd::sbyte;
3620 [[nodiscard]] static auto to_sbyte(char32 value) -> xtd::sbyte;
3630 [[nodiscard]] static auto to_sbyte(wchar value) -> xtd::sbyte;
3641 [[nodiscard]] static auto to_sbyte(decimal value) -> xtd::sbyte;
3652 [[nodiscard]] static auto to_sbyte(double value) -> xtd::sbyte;
3663 [[nodiscard]] static auto to_sbyte(float value) -> xtd::sbyte;
3673 [[nodiscard]] static auto to_sbyte(int16 value) -> xtd::sbyte;
3683 [[nodiscard]] static auto to_sbyte(int32 value) -> xtd::sbyte;
3693 [[nodiscard]] static auto to_sbyte(int64 value) -> xtd::sbyte;
3703 [[nodiscard]] static auto to_sbyte(slong value) -> xtd::sbyte;
3713 [[nodiscard]] static auto to_sbyte(sbyte value) -> xtd::sbyte;
3723 [[nodiscard]] static auto to_sbyte(uint16 value) -> xtd::sbyte;
3733 [[nodiscard]] static auto to_sbyte(uint32 value) -> xtd::sbyte;
3743 [[nodiscard]] static auto to_sbyte(uint64 value) -> xtd::sbyte;
3753 [[nodiscard]] static auto to_sbyte(xtd::ulong value) -> xtd::sbyte;
3763 [[nodiscard]] static auto to_sbyte(const xtd::string& value) -> xtd::sbyte;
3774 [[nodiscard]] static auto to_sbyte(const xtd::string& value, xtd::byte from_base) -> xtd::sbyte;
3776 [[nodiscard]] static auto to_sbyte(const std::string& value) -> xtd::sbyte;
3777 [[nodiscard]] static auto to_sbyte(const std::u8string& value) -> xtd::sbyte;
3778 [[nodiscard]] static auto to_sbyte(const std::u16string& value) -> xtd::sbyte;
3779 [[nodiscard]] static auto to_sbyte(const std::u32string& value) -> xtd::sbyte;
3780 [[nodiscard]] static auto to_sbyte(const std::wstring& value) -> xtd::sbyte;
3781 [[nodiscard]] static auto to_sbyte(const char* value) -> xtd::sbyte;
3782 [[nodiscard]] static auto to_sbyte(char* value) -> xtd::sbyte;
3783 [[nodiscard]] static auto to_sbyte(const char8* value) -> xtd::sbyte;
3784 [[nodiscard]] static auto to_sbyte(char8* value) -> xtd::sbyte;
3785 [[nodiscard]] static auto to_sbyte(const char16* value) -> xtd::sbyte;
3786 [[nodiscard]] static auto to_sbyte(char16* value) -> xtd::sbyte;
3787 [[nodiscard]] static auto to_sbyte(const char32* value) -> xtd::sbyte;
3788 [[nodiscard]] static auto to_sbyte(char32* value) -> xtd::sbyte;
3789 [[nodiscard]] static auto to_sbyte(const wchar* value) -> xtd::sbyte;
3790 [[nodiscard]] static auto to_sbyte(wchar* value) -> xtd::sbyte;
3800 template<typename type_t>
3801 [[nodiscard]] static auto to_sbyte(type_t value) noexcept -> xtd::sbyte {
3802 return static_cast<sbyte>(value);
3803 }
3804
3813 [[nodiscard]] static auto to_uint16(xtd::any value) -> xtd::uint16;
3822 [[nodiscard]] static auto to_uint16(bool value) noexcept -> xtd::uint16;
3831 [[nodiscard]] static auto to_uint16(xtd::byte value) noexcept -> xtd::uint16;
3840 [[nodiscard]] static auto to_uint16(char value) noexcept -> xtd::uint16;
3849 [[nodiscard]] static auto to_uint16(char8 value) noexcept -> xtd::uint16;
3858 [[nodiscard]] static auto to_uint16(char16 value) noexcept -> xtd::uint16;
3868 [[nodiscard]] static auto to_uint16(char32 value) -> xtd::uint16;
3877 [[nodiscard]] static auto to_uint16(wchar value) noexcept -> xtd::uint16;
3888 [[nodiscard]] static auto to_uint16(decimal value) -> xtd::uint16;
3899 [[nodiscard]] static auto to_uint16(double value) -> xtd::uint16;
3910 [[nodiscard]] static auto to_uint16(float value) -> xtd::uint16;
3920 [[nodiscard]] static auto to_uint16(int16 value) -> xtd::uint16;
3930 [[nodiscard]] static auto to_uint16(int32 value) -> xtd::uint16;
3940 [[nodiscard]] static auto to_uint16(int64 value) -> xtd::uint16;
3950 [[nodiscard]] static auto to_uint16(slong value) -> xtd::uint16;
3960 [[nodiscard]] static auto to_uint16(sbyte value) -> xtd::uint16;
3969 [[nodiscard]] static auto to_uint16(uint16 value) noexcept -> xtd::uint16;
3979 [[nodiscard]] static auto to_uint16(uint32 value) -> xtd::uint16;
3989 [[nodiscard]] static auto to_uint16(uint64 value) -> xtd::uint16;
3999 [[nodiscard]] static auto to_uint16(xtd::ulong value) -> xtd::uint16;
4009 [[nodiscard]] static auto to_uint16(const xtd::string& value) -> xtd::uint16;
4020 [[nodiscard]] static auto to_uint16(const xtd::string& value, xtd::byte from_base) -> xtd::uint16;
4022 [[nodiscard]] static auto to_uint16(const std::string& value) -> xtd::uint16;
4023 [[nodiscard]] static auto to_uint16(const std::u8string& value) -> xtd::uint16;
4024 [[nodiscard]] static auto to_uint16(const std::u16string& value) -> xtd::uint16;
4025 [[nodiscard]] static auto to_uint16(const std::u32string& value) -> xtd::uint16;
4026 [[nodiscard]] static auto to_uint16(const std::wstring& value) -> xtd::uint16;
4027 [[nodiscard]] static auto to_uint16(const char* value) -> xtd::uint16;
4028 [[nodiscard]] static auto to_uint16(char* value) -> xtd::uint16;
4029 [[nodiscard]] static auto to_uint16(const char8* value) -> xtd::uint16;
4030 [[nodiscard]] static auto to_uint16(char8* value) -> xtd::uint16;
4031 [[nodiscard]] static auto to_uint16(const char16* value) -> xtd::uint16;
4032 [[nodiscard]] static auto to_uint16(char16* value) -> xtd::uint16;
4033 [[nodiscard]] static auto to_uint16(const char32* value) -> xtd::uint16;
4034 [[nodiscard]] static auto to_uint16(char32* value) -> xtd::uint16;
4035 [[nodiscard]] static auto to_uint16(const wchar* value) -> xtd::uint16;
4036 [[nodiscard]] static auto to_uint16(wchar* value) -> xtd::uint16;
4046 template<typename type_t>
4047 [[nodiscard]] static auto to_uint16(type_t value) noexcept -> xtd::uint16 {
4048 return static_cast<uint16>(value);
4049 }
4050
4059 [[nodiscard]] static auto to_uint32(xtd::any value) -> xtd::uint32;
4068 [[nodiscard]] static auto to_uint32(bool value) noexcept -> xtd::uint32;
4077 [[nodiscard]] static auto to_uint32(xtd::byte value) noexcept -> xtd::uint32;
4086 [[nodiscard]] static auto to_uint32(char value) noexcept -> xtd::uint32;
4095 [[nodiscard]] static auto to_uint32(char8 value) noexcept -> xtd::uint32;
4104 [[nodiscard]] static auto to_uint32(char16 value) noexcept -> xtd::uint32;
4113 [[nodiscard]] static auto to_uint32(char32 value) noexcept -> xtd::uint32;
4122 [[nodiscard]] static auto to_uint32(wchar value) noexcept -> xtd::uint32;
4133 [[nodiscard]] static auto to_uint32(decimal value) -> xtd::uint32;
4144 [[nodiscard]] static auto to_uint32(double value) -> xtd::uint32;
4155 [[nodiscard]] static auto to_uint32(float value) -> xtd::uint32;
4165 [[nodiscard]] static auto to_uint32(int16 value) -> xtd::uint32;
4175 [[nodiscard]] static auto to_uint32(int32 value) -> xtd::uint32;
4185 [[nodiscard]] static auto to_uint32(int64 value) -> xtd::uint32;
4195 [[nodiscard]] static auto to_uint32(slong value) -> xtd::uint32;
4205 [[nodiscard]] static auto to_uint32(sbyte value) -> xtd::uint32;
4214 [[nodiscard]] static auto to_uint32(uint16 value) noexcept -> xtd::uint32;
4223 [[nodiscard]] static auto to_uint32(uint32 value) noexcept -> xtd::uint32;
4233 [[nodiscard]] static auto to_uint32(uint64 value) -> xtd::uint32;
4243 [[nodiscard]] static auto to_uint32(xtd::ulong value) -> xtd::uint32;
4253 [[nodiscard]] static auto to_uint32(const xtd::string& value) -> xtd::uint32;
4264 [[nodiscard]] static auto to_uint32(const xtd::string& value, xtd::byte from_base) -> xtd::uint32;
4266 [[nodiscard]] static auto to_uint32(const std::string& value) -> xtd::uint32;
4267 [[nodiscard]] static auto to_uint32(const std::u8string& value) -> xtd::uint32;
4268 [[nodiscard]] static auto to_uint32(const std::u16string& value) -> xtd::uint32;
4269 [[nodiscard]] static auto to_uint32(const std::u32string& value) -> xtd::uint32;
4270 [[nodiscard]] static auto to_uint32(const std::wstring& value) -> xtd::uint32;
4271 [[nodiscard]] static auto to_uint32(const char* value) -> xtd::uint32;
4272 [[nodiscard]] static auto to_uint32(char* value) -> xtd::uint32;
4273 [[nodiscard]] static auto to_uint32(const char8* value) -> xtd::uint32;
4274 [[nodiscard]] static auto to_uint32(char8* value) -> xtd::uint32;
4275 [[nodiscard]] static auto to_uint32(const char16* value) -> xtd::uint32;
4276 [[nodiscard]] static auto to_uint32(char16* value) -> xtd::uint32;
4277 [[nodiscard]] static auto to_uint32(const char32* value) -> xtd::uint32;
4278 [[nodiscard]] static auto to_uint32(char32* value) -> xtd::uint32;
4279 [[nodiscard]] static auto to_uint32(const wchar* value) -> xtd::uint32;
4280 [[nodiscard]] static auto to_uint32(wchar* value) -> xtd::uint32;
4290 template<typename type_t>
4291 [[nodiscard]] static auto to_uint32(type_t value) noexcept -> xtd::uint32 {
4292 return static_cast<uint32>(value);
4293 }
4294
4303 [[nodiscard]] static auto to_uint64(xtd::any value) -> xtd::uint64;
4312 [[nodiscard]] static auto to_uint64(bool value) noexcept -> xtd::uint64;
4321 [[nodiscard]] static auto to_uint64(xtd::byte value) noexcept -> xtd::uint64;
4330 [[nodiscard]] static auto to_uint64(char value) noexcept -> xtd::uint64;
4339 [[nodiscard]] static auto to_uint64(char8 value) noexcept -> xtd::uint64;
4348 [[nodiscard]] static auto to_uint64(char16 value) noexcept -> xtd::uint64;
4357 [[nodiscard]] static auto to_uint64(char32 value) noexcept -> xtd::uint64;
4366 [[nodiscard]] static auto to_uint64(wchar value) noexcept -> xtd::uint64;
4377 [[nodiscard]] static auto to_uint64(decimal value) -> xtd::uint64;
4388 [[nodiscard]] static auto to_uint64(double value) -> xtd::uint64;
4399 [[nodiscard]] static auto to_uint64(float value) -> xtd::uint64;
4409 [[nodiscard]] static auto to_uint64(int16 value) -> xtd::uint64;
4419 [[nodiscard]] static auto to_uint64(int32 value) -> xtd::uint64;
4429 [[nodiscard]] static auto to_uint64(int64 value) -> xtd::uint64;
4439 [[nodiscard]] static auto to_uint64(slong value) -> xtd::uint64;
4449 [[nodiscard]] static auto to_uint64(sbyte value) -> xtd::uint64;
4458 [[nodiscard]] static auto to_uint64(uint16 value) noexcept -> xtd::uint64;
4467 [[nodiscard]] static auto to_uint64(uint32 value) noexcept -> xtd::uint64;
4477 [[nodiscard]] static auto to_uint64(uint64 value) noexcept -> xtd::uint64;
4486 [[nodiscard]] static auto to_uint64(xtd::ulong value) noexcept -> xtd::uint64;
4495 [[nodiscard]] static auto to_uint64(const xtd::string& value) -> xtd::uint64;
4506 [[nodiscard]] static auto to_uint64(const xtd::string& value, xtd::byte from_base) -> xtd::uint64;
4508 [[nodiscard]] static auto to_uint64(const std::string& value) -> xtd::uint64;
4509 [[nodiscard]] static auto to_uint64(const std::u8string& value) -> xtd::uint64;
4510 [[nodiscard]] static auto to_uint64(const std::u16string& value) -> xtd::uint64;
4511 [[nodiscard]] static auto to_uint64(const std::u32string& value) -> xtd::uint64;
4512 [[nodiscard]] static auto to_uint64(const std::wstring& value) -> xtd::uint64;
4513 [[nodiscard]] static auto to_uint64(const char* value) -> xtd::uint64;
4514 [[nodiscard]] static auto to_uint64(char* value) -> xtd::uint64;
4515 [[nodiscard]] static auto to_uint64(const char8* value) -> xtd::uint64;
4516 [[nodiscard]] static auto to_uint64(char8* value) -> xtd::uint64;
4517 [[nodiscard]] static auto to_uint64(const char16* value) -> xtd::uint64;
4518 [[nodiscard]] static auto to_uint64(char16* value) -> xtd::uint64;
4519 [[nodiscard]] static auto to_uint64(const char32* value) -> xtd::uint64;
4520 [[nodiscard]] static auto to_uint64(char32* value) -> xtd::uint64;
4521 [[nodiscard]] static auto to_uint64(const wchar* value) -> xtd::uint64;
4522 [[nodiscard]] static auto to_uint64(wchar* value) -> xtd::uint64;
4532 template<typename type_t>
4533 [[nodiscard]] static auto to_uint64(type_t value) noexcept -> xtd::uint64 {
4534 return static_cast<uint64>(value);
4535 }
4536
4545 [[nodiscard]] static auto to_ullong(xtd::any value) -> xtd::ulong;
4554 [[nodiscard]] static auto to_ullong(bool value) noexcept -> xtd::ulong;
4563 [[nodiscard]] static auto to_ullong(xtd::byte value) noexcept -> xtd::ulong;
4572 [[nodiscard]] static auto to_ullong(char value) noexcept -> xtd::ulong;
4581 [[nodiscard]] static auto to_ullong(char8 value) noexcept -> xtd::ulong;
4590 [[nodiscard]] static auto to_ullong(char16 value) noexcept -> xtd::ulong;
4599 [[nodiscard]] static auto to_ullong(char32 value) noexcept -> xtd::ulong;
4608 [[nodiscard]] static auto to_ullong(wchar value) noexcept -> xtd::ulong;
4619 [[nodiscard]] static auto to_ullong(decimal value) -> xtd::ulong;
4630 [[nodiscard]] static auto to_ullong(double value) -> xtd::ulong;
4641 [[nodiscard]] static auto to_ullong(float value) -> xtd::ulong;
4651 [[nodiscard]] static auto to_ullong(int16 value) -> xtd::ulong;
4661 [[nodiscard]] static auto to_ullong(int32 value) -> xtd::ulong;
4671 [[nodiscard]] static auto to_ullong(int64 value) -> xtd::ulong;
4681 [[nodiscard]] static auto to_ullong(slong value) -> xtd::ulong;
4691 [[nodiscard]] static auto to_ullong(sbyte value) -> xtd::ulong;
4700 [[nodiscard]] static auto to_ullong(uint16 value) noexcept -> xtd::ulong;
4709 [[nodiscard]] static auto to_ullong(uint32 value) noexcept -> xtd::ulong;
4719 [[nodiscard]] static auto to_ullong(uint64 value) noexcept -> xtd::ulong;
4728 [[nodiscard]] static auto to_ullong(xtd::ulong value) noexcept -> xtd::ulong;
4737 [[nodiscard]] static auto to_ullong(const xtd::string& value) -> xtd::ulong;
4748 [[nodiscard]] static auto to_ullong(const xtd::string& value, xtd::byte from_base) -> xtd::ulong;
4750 [[nodiscard]] static auto to_ullong(const std::string& value) -> xtd::ulong;
4751 [[nodiscard]] static auto to_ullong(const std::u8string& value) -> xtd::ulong;
4752 [[nodiscard]] static auto to_ullong(const std::u16string& value) -> xtd::ulong;
4753 [[nodiscard]] static auto to_ullong(const std::u32string& value) -> xtd::ulong;
4754 [[nodiscard]] static auto to_ullong(const std::wstring& value) -> xtd::ulong;
4755 [[nodiscard]] static auto to_ullong(const char* value) -> xtd::ulong;
4756 [[nodiscard]] static auto to_ullong(char* value) -> xtd::ulong;
4757 [[nodiscard]] static auto to_ullong(const char8* value) -> xtd::ulong;
4758 [[nodiscard]] static auto to_ullong(char8* value) -> xtd::ulong;
4759 [[nodiscard]] static auto to_ullong(const char16* value) -> xtd::ulong;
4760 [[nodiscard]] static auto to_ullong(char16* value) -> xtd::ulong;
4761 [[nodiscard]] static auto to_ullong(const char32* value) -> xtd::ulong;
4762 [[nodiscard]] static auto to_ullong(char32* value) -> xtd::ulong;
4763 [[nodiscard]] static auto to_ullong(const wchar* value) -> xtd::ulong;
4764 [[nodiscard]] static auto to_ullong(wchar* value) -> xtd::ulong;
4774 template<typename type_t>
4775 [[nodiscard]] static auto to_ullong(type_t value) noexcept -> xtd::ulong {
4776 return static_cast<xtd::ulong>(value);
4777 }
4778
4787 [[nodiscard]] static auto to_string(xtd::any value) -> xtd::string;
4796 [[nodiscard]] static auto to_string(bool value) noexcept -> xtd::string;
4805 [[nodiscard]] static auto to_string(xtd::byte value) noexcept -> xtd::string;
4816 [[nodiscard]] static auto to_string(xtd::byte value, xtd::byte from_base) -> xtd::string;
4825 [[nodiscard]] static auto to_string(char value) noexcept -> xtd::string;
4834 [[nodiscard]] static auto to_string(char8 value) noexcept -> xtd::string;
4843 [[nodiscard]] static auto to_string(char16 value) noexcept -> xtd::string;
4852 [[nodiscard]] static auto to_string(char32 value) noexcept -> xtd::string;
4861 [[nodiscard]] static auto to_string(wchar value) noexcept -> xtd::string;
4872 [[nodiscard]] static auto to_string(decimal value) -> xtd::string;
4883 [[nodiscard]] static auto to_string(double value) -> xtd::string;
4894 [[nodiscard]] static auto to_string(float value) -> xtd::string;
4904 [[nodiscard]] static auto to_string(int16 value) -> xtd::string;
4915 [[nodiscard]] static auto to_string(int16 value, xtd::byte from_base) -> xtd::string;
4925 [[nodiscard]] static auto to_string(int32 value) -> xtd::string;
4936 [[nodiscard]] static auto to_string(int32 value, xtd::byte from_base) -> xtd::string;
4946 [[nodiscard]] static auto to_string(int64 value) -> xtd::string;
4957 [[nodiscard]] static auto to_string(int64 value, xtd::byte from_base) -> xtd::string;
4967 [[nodiscard]] static auto to_string(slong value) -> xtd::string;
4978 [[nodiscard]] static auto to_string(slong value, xtd::byte from_base) -> xtd::string;
4988 [[nodiscard]] static auto to_string(sbyte value) -> xtd::string;
4999 [[nodiscard]] static auto to_string(sbyte value, xtd::byte from_base) -> xtd::string;
5008 [[nodiscard]] static auto to_string(uint16 value) noexcept -> xtd::string;
5019 [[nodiscard]] static auto to_string(uint16 value, xtd::byte from_base) -> xtd::string;
5028 [[nodiscard]] static auto to_string(uint32 value) noexcept -> xtd::string;
5039 [[nodiscard]] static auto to_string(uint32 value, xtd::byte from_base) -> xtd::string;
5049 [[nodiscard]] static auto to_string(uint64 value) noexcept -> xtd::string;
5060 [[nodiscard]] static auto to_string(uint64 value, xtd::byte from_base) -> xtd::string;
5069 [[nodiscard]] static auto to_string(xtd::ulong value) noexcept -> xtd::string;
5080 [[nodiscard]] static auto to_string(xtd::ulong value, xtd::byte from_base) -> xtd::string;
5089 [[nodiscard]] static auto to_string(const xtd::string& value) -> xtd::string;
5091 [[nodiscard]] static auto to_string(const std::string& value) -> xtd::string;
5092 [[nodiscard]] static auto to_string(const std::u8string& value) -> xtd::string;
5093 [[nodiscard]] static auto to_string(const std::u16string& value) -> xtd::string;
5094 [[nodiscard]] static auto to_string(const std::u32string& value) -> xtd::string;
5095 [[nodiscard]] static auto to_string(const std::wstring& value) -> xtd::string;
5096 [[nodiscard]] static auto to_string(const char* value) -> xtd::string;
5097 [[nodiscard]] static auto to_string(char* value) -> xtd::string;
5098 [[nodiscard]] static auto to_string(const char8* value) -> xtd::string;
5099 [[nodiscard]] static auto to_string(char8* value) -> xtd::string;
5100 [[nodiscard]] static auto to_string(const char16* value) -> xtd::string;
5101 [[nodiscard]] static auto to_string(char16* value) -> xtd::string;
5102 [[nodiscard]] static auto to_string(const char32* value) -> xtd::string;
5103 [[nodiscard]] static auto to_string(char32* value) -> xtd::string;
5104 [[nodiscard]] static auto to_string(const wchar* value) -> xtd::string;
5105 [[nodiscard]] static auto to_string(wchar* value) -> xtd::string;
5115 template<typename type_t>
5116 [[nodiscard]] static auto to_string(type_t value) noexcept -> xtd::string {
5117 return string::format("{}", value);
5118 }
5119
5120
5122
5130 template<typename type_t>
5131 [[deprecated("Replaced by xtd::convert::to_string - Will be removed in version 1.2.0.")]] [[nodiscard]] static auto to_ustring(type_t value, xtd::byte from_base) -> xtd::string {return to_string(value, from_base);}
5136 template<typename string_t>
5137 [[deprecated("Replaced by xtd::convert::to_string - Will be removed in version 1.2.0.")]] [[nodiscard]] static auto to_ustring(const string_t& value) -> xtd::string {return to_string(value);}
5139
5141 template<typename char_t>
5142 [[deprecated("Replaced by xtd::convert::to_string - Will be removed in version 1.2.0.")]] [[nodiscard]] static auto to_ustring(const char_t* value) -> xtd::string {return to_string(value);}
5143 template<typename char_t>
5144 [[deprecated("Replaced by xtd::convert::to_string - Will be removed in version 1.2.0.")]] [[nodiscard]] static auto to_ustring(char_t* value) -> xtd::string {return to_string(value);}
5146 };
5147}
Contains xtd::any type and std::bad_any_cast exception.
Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the ba...
Definition array.hpp:64
Represents API to convert base type code.
Definition convert.hpp:27
static auto to_uint32(xtd::ulong value) -> xtd::uint32
Convert slong to uint32.
static auto to_int16(slong value) -> xtd::int16
Convert slong to int16.
static auto to_byte(decimal value) -> xtd::byte
Convert decimal to byte.
static auto to_any(xtd::any value) noexcept -> xtd::any
Convert xtd::any to xtd::any.
static auto to_wchar(float value) -> xtd::wchar
Convert float to wchar.
static auto to_string(slong value) -> xtd::string
Convert slong to string.
static auto to_single(char16 value) noexcept -> float
Convert char16 to single.
static auto to_int32(sbyte value) noexcept -> xtd::int32
Convert sbyte to int32.
static auto to_char(slong value) -> char
Convert slong to char.
static auto to_wchar(int32 value) -> xtd::wchar
Convert int32 to wchar.
static auto to_int32(char value) noexcept -> xtd::int32
Convert char to int32.
static auto to_single(xtd::byte value) noexcept -> float
Convert xtd::byte to single.
static auto to_llong(decimal value) noexcept -> xtd::slong
Convert decimal to slong.
static auto to_uint64(wchar value) noexcept -> xtd::uint64
Convert char32 to uint64.
static auto to_double(xtd::ulong value) noexcept -> double
Convert slong to double.
static auto to_string(uint32 value) noexcept -> xtd::string
Convert uint32 to string.
static auto to_char16(sbyte value) -> xtd::char16
Convert sbyte to char16.
static auto to_ullong(xtd::byte value) noexcept -> xtd::ulong
Convert xtd::byte to xtd::ulong.
static auto to_boolean(uint32 value) noexcept -> bool
Convert uint32 to bool.
static auto to_string(uint32 value, xtd::byte from_base) -> xtd::string
Convert string to string.
static auto to_string(uint64 value, xtd::byte from_base) -> xtd::string
Convert string to string.
static auto to_int64(xtd::any value) -> xtd::int64
Convert xtd::any to int64.
static auto to_single(int64 value) noexcept -> float
Convert int64 to single.
static auto to_any(int32 value) noexcept -> xtd::any
Convert int32 to xtd::any.
static auto to_llong(xtd::any value) -> xtd::slong
Convert xtd::any to slong.
static auto to_uint64(char32 value) noexcept -> xtd::uint64
Convert char32 to uint64.
static auto to_uint16(xtd::ulong value) -> xtd::uint16
Convert slong to uint16.
static auto to_int64(type_t value) noexcept -> xtd::int64
Convert type_t to int64.
Definition convert.hpp:3316
static auto to_byte(double value) -> xtd::byte
Convert double to byte.
static auto to_byte(const xtd::string &value) -> xtd::byte
Convert string to byte.
static auto to_ullong(xtd::ulong value) noexcept -> xtd::ulong
Convert slong to xtd::ulong.
static auto to_boolean(type_t value) noexcept -> bool
Convert type_t to bool.
Definition convert.hpp:502
static auto to_int32(decimal value) -> xtd::int32
Convert decimal to int32.
static auto to_decimal(float value) noexcept -> xtd::decimal
Convert float to decimal.
static auto to_double(uint16 value) noexcept -> double
Convert uint16 to double.
static auto to_string(xtd::byte value) noexcept -> xtd::string
Convert xtd::byte to string.
static auto to_uint16(slong value) -> xtd::uint16
Convert slong to uint16.
static auto to_wchar(char16 value) noexcept -> xtd::wchar
Convert char16 to wchar.
static auto to_sbyte(char value) noexcept -> xtd::sbyte
Convert char to sbyte.
static auto to_double(char value) noexcept -> double
Convert char to double.
static auto to_string(const xtd::string &value) -> xtd::string
Convert string to string.
static auto to_string(char32 value) noexcept -> xtd::string
Convert char32 to string.
static auto to_int64(xtd::ulong value) -> xtd::int64
Convert slong to int64.
static auto to_byte(float value) -> xtd::byte
Convert float to byte.
static auto to_uint16(float value) -> xtd::uint16
Convert float to uint16.
static auto to_uint16(int16 value) -> xtd::uint16
Convert int16 to uint16.
static auto to_char32(uint64 value) -> xtd::char32
Convert uint64 to char32.
static auto to_ullong(decimal value) -> xtd::ulong
Convert decimal to xtd::ulong.
static auto to_int16(int32 value) -> xtd::int16
Convert int32 to int16.
static auto to_boolean(sbyte value) noexcept -> bool
Convert sbyte to bool.
static auto to_byte(xtd::any value) -> xtd::byte
Convert xtd::any to byte.
static auto to_sbyte(bool value) noexcept -> xtd::sbyte
Convert bool to sbyte.
static auto to_base64_string(const xtd::read_only_span< xtd::byte > &bytes) -> xtd::string
Converts a read only span of 8-bit unsigned integers to its equivalent string representation that is ...
static auto to_char32(char value) noexcept -> xtd::char32
Convert char to char32.
static auto to_char(int16 value) -> char
Convert int16 to char.
static auto to_boolean(uint64 value) noexcept -> bool
Convert uint64 to bool.
static auto to_byte(char32 value) -> xtd::byte
Convert char32 to byte.
static auto to_int32(xtd::any value) -> xtd::int32
Convert xtd::any to int32.
static auto to_double(bool value) noexcept -> double
Convert bool to double.
static auto to_decimal(uint32 value) noexcept -> xtd::decimal
Convert uint32 to decimal.
static auto to_single(char32 value) noexcept -> float
Convert char32 to single.
static auto to_int16(bool value) noexcept -> xtd::int16
Convert bool to int16.
static auto to_string(int32 value) -> xtd::string
Convert int32 to string.
static auto to_int64(int64 value) noexcept -> xtd::int64
Convert int64 to int64.
static auto to_char16(uint32 value) -> xtd::char16
Convert uint32 to char16.
static auto to_ustring(const string_t &value) -> xtd::string
Convert string_t to string.
Definition convert.hpp:5137
static auto to_char16(bool value) -> xtd::char16
Convert bool to char16.
static auto to_byte(uint64 value) -> xtd::byte
Convert uint64 to byte.
static auto to_single(uint64 value) noexcept -> float
Convert uint64 to single.
static auto to_int16(xtd::byte value) noexcept -> xtd::int16
Convert xtd::byte to int16.
static auto to_char(wchar value) -> char
Convert char32 to char.
static auto to_boolean(char32 value) -> bool
Convert char32 to bool.
static auto to_uint32(uint16 value) noexcept -> xtd::uint32
Convert uint16 to uint32.
static auto to_char16(double value) -> xtd::char16
Convert double to char16.
static auto to_int32(char8 value) noexcept -> xtd::int32
Convert char8 to int32.
static auto to_char8(uint16 value) -> xtd::char8
Convert uint16 to char8.
static auto to_int16(uint16 value) -> xtd::int16
Convert uint16 to int16.
static auto to_uint16(decimal value) -> xtd::uint16
Convert decimal to uint16.
static auto to_uint16(const xtd::string &value) -> xtd::uint16
Convert string to uint16.
static auto to_int32(uint32 value) -> xtd::int32
Convert uint32 to int32.
static auto to_uint32(int64 value) -> xtd::uint32
Convert int64 to uint32.
static auto to_int16(decimal value) -> xtd::int16
Convert decimal to int16.
static auto to_int16(int64 value) -> xtd::int16
Convert int64 to int16.
static auto to_ullong(xtd::any value) -> xtd::ulong
Convert xtd::any to xtd::ulong.
static auto to_byte(bool value) noexcept -> xtd::byte
Convert bool to byte.
static auto to_boolean(float value) noexcept -> bool
Convert float to bool.
static auto to_single(bool value) noexcept -> float
Convert bool to single.
static auto to_llong(xtd::byte value) noexcept -> xtd::slong
Convert xtd::byte to slong.
static auto to_ullong(int32 value) -> xtd::ulong
Convert int32 to xtd::ulong.
static auto to_byte(uint16 value) -> xtd::byte
Convert uint16 to byte.
static auto to_double(xtd::any value) -> double
Convert xtd::any to double.
static auto to_double(type_t value) noexcept -> double
Convert type_t to double.
Definition convert.hpp:2371
static auto to_sbyte(uint16 value) -> xtd::sbyte
Convert uint16 to sbyte.
static auto to_int32(xtd::ulong value) -> xtd::int32
Convert slong to int32.
static auto to_single(sbyte value) noexcept -> float
Convert sbyte to single.
static auto to_llong(int64 value) noexcept -> xtd::slong
Convert int64 to slong.
static auto to_string(xtd::ulong value) noexcept -> xtd::string
Convert slong to string.
static auto to_ustring(type_t value, xtd::byte from_base) -> xtd::string
Convert type_t to string.
Definition convert.hpp:5131
static auto to_single(wchar value) noexcept -> float
Convert char32 to single.
static auto to_uint64(int16 value) -> xtd::uint64
Convert int16 to uint64.
static auto to_char8(uint64 value) -> xtd::char8
Convert uint64 to char8.
static auto to_decimal(wchar value) noexcept -> xtd::decimal
Convert char32 to decimal.
static auto to_single(uint16 value) noexcept -> float
Convert uint16 to single.
static auto to_uint16(char8 value) noexcept -> xtd::uint16
Convert char8 to uint16.
static auto to_int16(char16 value) noexcept -> xtd::int16
Convert char16 to int16.
static auto to_double(int64 value) noexcept -> double
Convert int64 to double.
static auto to_any(double value) noexcept -> xtd::any
Convert double to xtd::any.
static auto to_char32(char32 value) noexcept -> xtd::char32
Convert char32 to char32.
static auto to_decimal(char16 value) noexcept -> xtd::decimal
Convert char16 to decimal.
static auto to_uint64(uint64 value) noexcept -> xtd::uint64
Convert uint64 to uint64.
static auto to_any(xtd::byte value) noexcept -> xtd::any
Convert xtd::byte to xtd::any.
static auto to_char(type_t value) noexcept -> char
Convert type_t to char.
Definition convert.hpp:988
static auto to_llong(wchar value) noexcept -> xtd::slong
Convert char32 to slong.
static auto to_int16(int16 value) noexcept -> xtd::int16
Convert int16 to int16.
static auto to_wchar(sbyte value) -> xtd::wchar
Convert sbyte to wchar.
static auto to_ullong(uint64 value) noexcept -> xtd::ulong
Convert uint64 to xtd::ulong.
static auto to_char16(char32 value) -> xtd::char16
Convert char32 to char16.
static auto to_any(float value) noexcept -> xtd::any
Convert float to xtd::any.
static auto to_string(xtd::any value) -> xtd::string
Convert xtd::any to string.
static auto to_uint32(const xtd::string &value, xtd::byte from_base) -> xtd::uint32
Convert string to uint32.
static auto to_uint16(xtd::any value) -> xtd::uint16
Convert xtd::any to uint16.
static auto to_any(char32 value) noexcept -> xtd::any
Convert char32 to xtd::any.
static auto to_wchar(double value) -> xtd::wchar
Convert double to wchar.
static auto to_int16(wchar value) noexcept -> xtd::int16
Convert char32 to int16.
static auto to_int64(int16 value) noexcept -> xtd::int64
Convert int16 to int64.
static auto to_uint64(bool value) noexcept -> xtd::uint64
Convert bool to uint64.
static auto to_byte(wchar value) -> xtd::byte
Convert char32 to byte.
static auto to_boolean(xtd::ulong value) noexcept -> bool
Convert slong to bool.
static auto to_uint16(bool value) noexcept -> xtd::uint16
Convert bool to uint16.
static auto to_byte(int32 value) -> xtd::byte
Convert int32 to byte.
static auto to_double(decimal value) noexcept -> double
Convert decimal to double.
static auto to_char16(wchar value) noexcept -> xtd::char16
Convert char32 to char16.
static auto to_char(decimal value) -> char
Convert decimal to char.
static auto to_int32(char32 value) noexcept -> xtd::int32
Convert char32 to int32.
static auto to_string(wchar value) noexcept -> xtd::string
Convert char32 to string.
static auto to_char8(int64 value) -> xtd::char8
Convert int64 to char8.
static auto to_llong(char32 value) noexcept -> xtd::slong
Convert char32 to slong.
static auto to_int16(xtd::any value) -> xtd::int16
Convert xtd::any to int16.
static auto to_double(int32 value) noexcept -> double
Convert int32 to double.
static auto to_single(type_t value) noexcept -> float
Convert type_t to single.
Definition convert.hpp:2594
static auto to_uint64(decimal value) -> xtd::uint64
Convert decimal to uint64.
static auto to_double(int16 value) noexcept -> double
Convert int16 to double.
static auto to_llong(int32 value) noexcept -> xtd::slong
Convert int32 to slong.
static auto to_llong(uint64 value) -> xtd::slong
Convert uint64 to slong.
static auto to_wchar(uint32 value) -> xtd::wchar
Convert uint32 to wchar.
static auto to_int16(const xtd::string &value, xtd::byte from_base) -> xtd::int16
Convert string to int16.
static auto to_llong(xtd::ulong value) -> xtd::slong
Convert slong to slong.
static auto to_char16(int64 value) -> xtd::char16
Convert int64 to char16.
static auto to_double(const xtd::string &value) -> double
Convert string to double.
static auto to_sbyte(int16 value) -> xtd::sbyte
Convert int16 to sbyte.
static auto to_ullong(char32 value) noexcept -> xtd::ulong
Convert char32 to xtd::ulong.
static auto to_char(double value) -> char
Convert double to char.
static auto to_double(float value) noexcept -> double
Convert float to double.
static auto to_byte(char value) noexcept -> xtd::byte
Convert char to byte.
static auto to_char(const xtd::string &value) -> char
Convert string to char.
static auto to_int32(type_t value) noexcept -> xtd::int32
Convert type_t to int32.
Definition convert.hpp:3080
static auto to_string(int16 value, xtd::byte from_base) -> xtd::string
Convert string to string.
static auto to_double(xtd::byte value) noexcept -> double
Convert xtd::byte to double.
static auto to_sbyte(char8 value) noexcept -> xtd::sbyte
Convert char8 to sbyte.
static auto to_string(uint16 value, xtd::byte from_base) -> xtd::string
Convert string to string.
static auto to_char(xtd::any value) -> char
Convert xtd::any to char.
static auto to_int32(const xtd::string &value, xtd::byte from_base) -> xtd::int32
Convert string to int32.
static auto to_char32(sbyte value) -> xtd::char32
Convert sbyte to char32.
static auto to_char16(int16 value) -> xtd::char16
Convert int16 to char16.
static auto to_decimal(xtd::byte value) noexcept -> xtd::decimal
Convert xtd::byte to decimal.
static auto to_uint32(char value) noexcept -> xtd::uint32
Convert char to uint32.
static auto to_boolean(int64 value) noexcept -> bool
Convert int64 to bool.
static auto to_string(int64 value, xtd::byte from_base) -> xtd::string
Convert string to string.
static auto to_base64_string(const xtd::array< xtd::byte > &in_array) -> xtd::string
Converts an array of 8-bit unsigned integers to its equivalent string representation that is encoded ...
static auto to_string(char16 value) noexcept -> xtd::string
Convert char16 to string.
static auto to_uint32(const xtd::string &value) -> xtd::uint32
Convert string to uint32.
static auto to_int64(const xtd::string &value, xtd::byte from_base) -> xtd::int64
Convert string to int64.
static auto to_uint32(int16 value) -> xtd::uint32
Convert int16 to uint32.
static auto to_char(char16 value) -> char
Convert char16 to char.
static auto to_wchar(int64 value) -> xtd::wchar
Convert int64 to wchar.
static auto to_char(xtd::byte value) noexcept -> char
Convert xtd::byte to char.
static auto to_char32(int16 value) -> xtd::char32
Convert int16 to char32.
static auto to_decimal(const xtd::string &value) -> xtd::decimal
Convert string to decimal.
static auto to_decimal(char32 value) noexcept -> xtd::decimal
Convert char32 to decimal.
static auto to_char32(decimal value) -> xtd::char32
Convert decimal to char32.
static auto to_byte(type_t value) noexcept -> xtd::byte
Convert type_t to byte.
Definition convert.hpp:751
static auto to_double(uint64 value) noexcept -> double
Convert uint64 to double.
static auto to_int16(uint32 value) -> xtd::int16
Convert uint32 to int16.
static auto to_string(float value) -> xtd::string
Convert float to string.
static auto to_uint32(xtd::any value) -> xtd::uint32
Convert xtd::any to uint32.
static auto to_any(uint64 value) noexcept -> xtd::any
Convert uint64 to xtd::any.
static auto to_single(char8 value) noexcept -> float
Convert char8 to single.
static auto to_char8(xtd::byte value) noexcept -> xtd::char8
Convert xtd::byte to char8.
static auto to_double(slong value) noexcept -> double
Convert slong to double.
static auto to_int32(uint16 value) noexcept -> xtd::int32
Convert uint16 to int32.
static auto to_char32(double value) -> xtd::char32
Convert double to char32.
static auto to_decimal(uint64 value) noexcept -> xtd::decimal
Convert uint64 to decimal.
static auto to_char(char value) noexcept -> char
Convert char to char.
static auto to_char16(char8 value) noexcept -> xtd::char16
Convert char8 to char16.
static auto to_char16(xtd::byte value) noexcept -> xtd::char16
Convert xtd::byte to char16.
static auto to_int32(wchar value) noexcept -> xtd::int32
Convert char32 to int32.
static auto to_char(uint32 value) -> char
Convert uint32 to char.
static auto to_any(int16 value) noexcept -> xtd::any
Convert int16 to xtd::any.
static auto to_any(uint16 value) noexcept -> xtd::any
Convert uint16 to xtd::any.
static auto to_any(type_t value) -> xtd::any
Convert type_t to bool.
Definition convert.hpp:260
static auto to_char8(xtd::ulong value) -> xtd::char8
Convert slong to char8.
static auto to_single(decimal value) noexcept -> float
Convert decimal to single.
static auto to_wchar(char8 value) noexcept -> xtd::wchar
Convert char8 to wchar.
static auto to_uint64(const xtd::string &value, xtd::byte from_base) -> xtd::uint64
Convert string to uint64.
static auto to_ullong(double value) -> xtd::ulong
Convert double to xtd::ulong.
static auto to_char32(slong value) -> xtd::char32
Convert slong to char32.
static auto to_wchar(int16 value) -> xtd::wchar
Convert int16 to wchar.
static auto to_boolean(double value) noexcept -> bool
Convert double to bool.
static auto to_int32(int32 value) noexcept -> xtd::int32
Convert int32 to int32.
static auto to_decimal(int32 value) noexcept -> xtd::decimal
Convert int32 to decimal.
static auto to_string(sbyte value, xtd::byte from_base) -> xtd::string
Convert string to string.
static auto to_boolean(int32 value) noexcept -> bool
Convert int32 to bool.
static auto to_int64(int32 value) noexcept -> xtd::int64
Convert int32 to int64.
static auto to_int64(const xtd::string &value) -> xtd::int64
Convert string to int64.
static auto to_int32(uint64 value) -> xtd::int32
Convert uint64 to int32.
static auto to_wchar(char value) noexcept -> xtd::wchar
Convert char to wchar.
static auto to_char32(char16 value) noexcept -> xtd::char32
Convert char16 to char32.
static auto to_any(char value) noexcept -> xtd::any
Convert char to xtd::any.
static auto to_single(slong value) noexcept -> float
Convert slong to single.
static auto to_any(decimal value) noexcept -> xtd::any
Convert decimal to xtd::any.
static auto to_int64(sbyte value) noexcept -> xtd::int64
Convert sbyte to int64.
static auto to_int32(char16 value) noexcept -> xtd::int32
Convert char16 to int32.
static auto to_ullong(uint16 value) noexcept -> xtd::ulong
Convert uint16 to xtd::ulong.
static auto to_boolean(uint16 value) noexcept -> bool
Convert uint16 to bool.
static auto to_char32(int32 value) -> xtd::char32
Convert int32 to char32.
static auto to_double(char8 value) noexcept -> double
Convert char8 to double.
static auto to_llong(char16 value) noexcept -> xtd::slong
Convert char16 to slong.
static auto to_ullong(const xtd::string &value, xtd::byte from_base) -> xtd::ulong
Convert string to xtd::ulong.
static auto to_int16(double value) -> xtd::int16
Convert double to int16.
static auto to_llong(int16 value) noexcept -> xtd::slong
Convert int16 to slong.
static auto to_uint32(char32 value) noexcept -> xtd::uint32
Convert char32 to uint32.
static auto to_wchar(uint64 value) -> xtd::wchar
Convert uint64 to wchar.
static auto to_char(int64 value) -> char
Convert int64 to char.
static auto to_wchar(slong value) -> xtd::wchar
Convert slong to wchar.
static auto to_uint32(decimal value) -> xtd::uint32
Convert decimal to uint32.
static auto to_char(char8 value) noexcept -> char
Convert char8 to char.
static auto to_int32(int16 value) noexcept -> xtd::int32
Convert int16 to int32.
static auto to_double(double value) noexcept -> double
Convert double to double.
static auto to_char(uint64 value) -> char
Convert uint64 to char.
static auto to_byte(slong value) -> xtd::byte
Convert slong to byte.
static auto to_char32(xtd::any value) -> xtd::char32
Convert xtd::any to char32.
static auto to_int64(float value) noexcept -> xtd::int64
Convert float to int64.
static auto to_int32(bool value) noexcept -> xtd::int32
Convert bool to int32.
static auto to_uint64(sbyte value) -> xtd::uint64
Convert sbyte to uint64.
static auto to_ullong(char16 value) noexcept -> xtd::ulong
Convert char16 to xtd::ulong.
static auto to_boolean(int16 value) noexcept -> bool
Convert int16 to bool.
static auto to_string(int64 value) -> xtd::string
Convert int64 to string.
static auto to_char(sbyte value) -> char
Convert sbyte to char.
static auto to_char32(type_t value) noexcept -> xtd::char32
Convert type_t to char32.
Definition convert.hpp:1691
static auto to_byte(char8 value) noexcept -> xtd::byte
Convert char8 to byte.
static auto to_sbyte(double value) -> xtd::sbyte
Convert double to sbyte.
static auto to_single(char value) noexcept -> float
Convert char to single.
static auto to_uint16(char32 value) -> xtd::uint16
Convert char32 to uint16.
static auto to_int16(type_t value) noexcept -> xtd::int16
Convert type_t to int16.
Definition convert.hpp:2839
static auto to_char32(const xtd::string &value) -> xtd::char32
Convert string to char32.
static auto to_uint64(double value) -> xtd::uint64
Convert double to uint64.
static auto to_llong(uint16 value) noexcept -> xtd::slong
Convert uint16 to slong.
static auto to_string(uint16 value) noexcept -> xtd::string
Convert uint16 to string.
static auto to_int16(sbyte value) noexcept -> xtd::int16
Convert sbyte to int16.
static auto to_int16(char32 value) -> xtd::int16
Convert char32 to int16.
static auto to_ullong(char value) noexcept -> xtd::ulong
Convert char to xtd::ulong.
static auto to_char8(int32 value) -> xtd::char8
Convert int32 to char8.
static auto to_string(xtd::byte value, xtd::byte from_base) -> xtd::string
Convert string to string.
static auto to_sbyte(float value) -> xtd::sbyte
Convert float to sbyte.
static auto to_llong(const xtd::string &value, xtd::byte from_base) -> xtd::slong
Convert string to slong.
static auto to_uint32(bool value) noexcept -> xtd::uint32
Convert bool to uint32.
static auto to_uint32(wchar value) noexcept -> xtd::uint32
Convert char32 to uint32.
static auto to_ullong(int64 value) -> xtd::ulong
Convert int64 to xtd::ulong.
static auto to_uint32(int32 value) -> xtd::uint32
Convert int32 to uint32.
static auto to_byte(xtd::ulong value) -> xtd::byte
Convert slong to byte.
static auto to_llong(char8 value) noexcept -> xtd::slong
Convert char8 to slong.
static auto to_char8(char value) noexcept -> xtd::char8
Convert char to char8.
static auto from_base64_string(const xtd::string &s) -> xtd::array< xtd::byte >
Converts the specified string, which encodes binary data as base-64 digits, to an equivalent 8-bit un...
static auto to_char8(char32 value) -> xtd::char8
Convert char32 to char8.
static auto to_char32(bool value) -> xtd::char32
Convert bool to char32.
static auto to_uint32(xtd::byte value) noexcept -> xtd::uint32
Convert xtd::byte to uint32.
static auto to_any(wchar value) noexcept -> xtd::any
Convert wchar to xtd::any.
static auto to_char32(wchar value) noexcept -> xtd::char32
Convert char32 to char32.
static auto to_decimal(double value) noexcept -> xtd::decimal
Convert double to decimal.
static auto to_char32(uint16 value) noexcept -> xtd::char32
Convert uint16 to char32.
static auto to_uint32(char8 value) noexcept -> xtd::uint32
Convert char8 to uint32.
static auto to_char(bool value) -> char
Convert bool to char.
static auto to_int16(char8 value) noexcept -> xtd::int16
Convert char8 to int16.
static auto to_int32(double value) -> xtd::int32
Convert double to int32.
static auto to_sbyte(type_t value) noexcept -> xtd::sbyte
Convert type_t to sbyte.
Definition convert.hpp:3801
static auto to_uint16(uint64 value) -> xtd::uint16
Convert uint64 to uint16.
static auto to_byte(xtd::byte value) noexcept -> xtd::byte
Convert xtd::byte to byte.
static auto to_char8(decimal value) -> xtd::char8
Convert decimal to char8.
static auto to_uint64(int32 value) -> xtd::uint64
Convert int32 to uint64.
static auto to_decimal(char value) noexcept -> xtd::decimal
Convert char to decimal.
static auto to_char32(xtd::ulong value) -> xtd::char32
Convert slong to char32.
static auto to_ullong(char8 value) noexcept -> xtd::ulong
Convert char8 to xtd::ulong.
static auto to_int16(uint64 value) -> xtd::int16
Convert uint64 to int16.
static auto to_single(float value) noexcept -> float
Convert float to single.
static auto to_int64(char8 value) noexcept -> xtd::int64
Convert char8 to int64.
static auto to_int64(uint64 value) -> xtd::int64
Convert uint64 to int64.
static auto to_char8(uint32 value) -> xtd::char8
Convert uint32 to char8.
static auto to_wchar(decimal value) -> xtd::wchar
Convert decimal to wchar.
static auto to_boolean(const xtd::string &value) -> bool
Convert string to bool.
static auto to_string(char8 value) noexcept -> xtd::string
Convert char8 to string.
static auto to_string(int16 value) -> xtd::string
Convert int16 to string.
static auto to_char8(char8 value) noexcept -> xtd::char8
Convert char8 to char8.
static auto to_uint64(int64 value) -> xtd::uint64
Convert int64 to uint64.
static auto to_double(wchar value) noexcept -> double
Convert char32 to double.
static auto to_decimal(decimal value) noexcept -> xtd::decimal
Convert decimal to decimal.
static auto to_uint64(xtd::ulong value) noexcept -> xtd::uint64
Convert slong to uint64.
static auto to_uint64(const xtd::string &value) -> xtd::uint64
Convert string to uint64.
static auto to_uint64(xtd::any value) -> xtd::uint64
Convert xtd::any to uint64.
static auto to_double(sbyte value) noexcept -> double
Convert sbyte to double.
static auto to_wchar(const xtd::string &value) -> xtd::wchar
Convert string to wchar.
static auto to_int64(char32 value) noexcept -> xtd::int64
Convert char32 to int64.
static auto to_uint16(sbyte value) -> xtd::uint16
Convert sbyte to uint16.
static auto to_ullong(slong value) -> xtd::ulong
Convert slong to xtd::ulong.
static auto to_boolean(char value) -> bool
Convert char to bool.
static auto to_char8(bool value) -> xtd::char8
Convert bool to char8.
static auto to_int32(const xtd::string &value) -> xtd::int32
Convert string to int32.
static auto to_sbyte(decimal value) -> xtd::sbyte
Convert decimal to sbyte.
static auto to_wchar(xtd::ulong value) -> xtd::wchar
Convert slong to wchar.
static auto to_string(int32 value, xtd::byte from_base) -> xtd::string
Convert string to string.
static auto to_uint32(slong value) -> xtd::uint32
Convert slong to uint32.
static auto to_int64(char16 value) noexcept -> xtd::int64
Convert char16 to int64.
static auto to_uint64(slong value) -> xtd::uint64
Convert slong to uint64.
static auto to_string(xtd::ulong value, xtd::byte from_base) -> xtd::string
Convert string to string.
static auto to_uint32(char16 value) noexcept -> xtd::uint32
Convert char16 to uint32.
static auto to_decimal(type_t value) noexcept -> xtd::decimal
Convert type_t to decimal.
Definition convert.hpp:2148
static auto to_ullong(const xtd::string &value) -> xtd::ulong
Convert string to xtd::ulong.
static auto to_char8(const xtd::string &value) -> xtd::char8
Convert string to char8.
static auto to_sbyte(int32 value) -> xtd::sbyte
Convert int32 to sbyte.
static auto to_llong(slong value) noexcept -> xtd::slong
Convert slong to slong.
static auto to_llong(type_t value) noexcept -> xtd::slong
Convert type_t to slong.
Definition convert.hpp:3552
static auto to_uint64(float value) -> xtd::uint64
Convert float to uint64.
static auto to_single(xtd::any value) -> float
Convert xtd::any to single.
static auto to_decimal(sbyte value) noexcept -> xtd::decimal
Convert sbyte to decimal.
static auto to_ullong(int16 value) -> xtd::ulong
Convert int16 to xtd::ulong.
static auto to_string(bool value) noexcept -> xtd::string
Convert bool to string.
static auto to_any(uint32 value) noexcept -> xtd::any
Convert uint32 to xtd::any.
static auto to_any(const xtd::string &value) noexcept -> xtd::any
Convert string to xtd::any.
static auto to_sbyte(char16 value) -> xtd::sbyte
Convert char16 to sbyte.
static auto to_boolean(char16 value) -> bool
Convert char16 to bool.
static auto to_int64(slong value) noexcept -> xtd::int64
Convert slong to int64.
static auto to_int64(char value) noexcept -> xtd::int64
Convert char to int64.
static auto to_wchar(xtd::any value) -> xtd::wchar
Convert xtd::any to wchar.
static auto to_char(int32 value) -> char
Convert int32 to char.
static auto to_string(double value) -> xtd::string
Convert double to string.
static auto to_char16(float value) -> xtd::char16
Convert float to char16.
static auto to_char16(uint16 value) noexcept -> xtd::char16
Convert uint16 to char16.
static auto to_decimal(char8 value) noexcept -> xtd::decimal
Convert char8 to decimal.
static auto to_uint16(int32 value) -> xtd::uint16
Convert int32 to uint16.
static auto to_uint64(xtd::byte value) noexcept -> xtd::uint64
Convert xtd::byte to uint64.
static auto to_int16(const xtd::string &value) -> xtd::int16
Convert string to int16.
static auto to_uint16(const xtd::string &value, xtd::byte from_base) -> xtd::uint16
Convert string to uint16.
static auto to_llong(double value) noexcept -> xtd::slong
Convert double to slong.
static auto to_uint32(sbyte value) -> xtd::uint32
Convert sbyte to uint32.
static auto to_sbyte(const xtd::string &value) -> xtd::sbyte
Convert string to sbyte.
static auto to_char16(char value) noexcept -> xtd::char16
Convert char to char16.
static auto to_uint64(uint16 value) noexcept -> xtd::uint64
Convert uint16 to uint64.
static auto to_uint16(double value) -> xtd::uint16
Convert double to uint16.
static auto to_llong(uint32 value) noexcept -> xtd::slong
Convert uint32 to slong.
static auto to_int64(bool value) noexcept -> xtd::int64
Convert bool to int64.
static auto to_char8(char16 value) -> xtd::char8
Convert char16 to char8.
static auto to_uint16(wchar value) noexcept -> xtd::uint16
Convert char32 to uint16.
static auto to_char8(double value) -> xtd::char8
Convert double to char8.
static auto to_string(char value) noexcept -> xtd::string
Convert char to string.
static auto to_llong(float value) noexcept -> xtd::slong
Convert float to slong.
static auto to_uint64(char value) noexcept -> xtd::uint64
Convert char to uint64.
static auto to_single(const xtd::string &value) -> float
Convert string to single.
static auto to_char16(slong value) -> xtd::char16
Convert slong to char16.
static auto to_sbyte(sbyte value) -> xtd::sbyte
Convert sbyte to sbyte.
static auto to_int32(float value) noexcept -> xtd::int32
Convert float to int32.
static auto to_sbyte(const xtd::string &value, xtd::byte from_base) -> xtd::sbyte
Convert string to sbyte.
static auto to_sbyte(uint32 value) -> xtd::sbyte
Convert uint32 to sbyte.
static auto to_byte(sbyte value) -> xtd::byte
Convert sbyte to byte.
static auto to_char(char32 value) -> char
Convert char32 to char.
static auto to_any(bool value) noexcept -> xtd::any
Convert bool to xtd::any.
static auto to_string(sbyte value) -> xtd::string
Convert sbyte to string.
static auto to_string(uint64 value) noexcept -> xtd::string
Convert uint64 to string.
static auto to_ullong(uint32 value) noexcept -> xtd::ulong
Convert uint32 to xtd::ulong.
static auto to_char8(int16 value) -> xtd::char8
Convert int16 to char8.
static auto to_decimal(bool value) noexcept -> xtd::decimal
Convert bool to decimal.
static auto to_char16(uint64 value) -> xtd::char16
Convert uint64 to char16.
static auto to_int32(int64 value) -> xtd::int32
Convert int64 to int32.
static auto to_sbyte(slong value) -> xtd::sbyte
Convert slong to sbyte.
static auto to_char8(float value) -> xtd::char8
Convert float to char8.
static auto to_sbyte(int64 value) -> xtd::sbyte
Convert int64 to sbyte.
static auto to_int64(uint32 value) noexcept -> xtd::int64
Convert uint32 to int64.
static auto to_wchar(xtd::byte value) noexcept -> xtd::wchar
Convert xtd::byte to wchar.
static auto to_wchar(char32 value) -> xtd::wchar
Convert char32 to wchar.
static auto to_sbyte(char32 value) -> xtd::sbyte
Convert char32 to sbyte.
static auto to_byte(const xtd::string &value, xtd::byte from_base) -> xtd::byte
Convert string to byte.
static auto to_char16(type_t value) noexcept -> xtd::char16
Convert type_t to char16.
Definition convert.hpp:1459
static auto to_uint32(float value) -> xtd::uint32
Convert float to uint32.
static auto to_char32(xtd::byte value) noexcept -> xtd::char32
Convert xtd::byte to char32.
static auto to_single(uint32 value) noexcept -> float
Convert uint32 to single.
static auto to_double(uint32 value) noexcept -> double
Convert uint32 to double.
static auto to_ullong(bool value) noexcept -> xtd::ulong
Convert bool to xtd::ulong.
static auto to_uint16(type_t value) noexcept -> xtd::uint16
Convert type_t to uint16.
Definition convert.hpp:4047
static auto to_int16(float value) -> xtd::int16
Convert float to int16.
static auto to_single(double value) noexcept -> float
Convert double to single.
static auto to_char(xtd::ulong value) -> char
Convert slong to char.
static auto to_char16(int32 value) -> xtd::char16
Convert int32 to char16.
static auto to_byte(int64 value) -> xtd::byte
Convert int64 to byte.
static auto to_any(sbyte value) noexcept -> xtd::any
Convert sbyte to xtd::any.
static auto to_boolean(decimal value) noexcept -> bool
Convert decimal to bool.
static auto to_int16(char value) noexcept -> xtd::int16
Convert char to int16.
static auto to_char32(int64 value) -> xtd::char32
Convert int64 to char32.
static auto to_wchar(type_t value) noexcept -> xtd::wchar
Convert type_t to wchar.
Definition convert.hpp:1925
static auto to_ullong(type_t value) noexcept -> xtd::ulong
Convert type_t to xtd::ulong.
Definition convert.hpp:4775
static auto to_llong(const xtd::string &value) -> xtd::slong
Convert string to slong.
static auto to_wchar(uint16 value) noexcept -> xtd::wchar
Convert uint16 to wchar.
static auto to_char16(xtd::ulong value) -> xtd::char16
Convert slong to char16.
static auto to_boolean(bool value) noexcept -> bool
Convert bool to bool.
static auto to_uint16(xtd::byte value) noexcept -> xtd::uint16
Convert xtd::byte to uint16.
static auto to_char8(sbyte value) -> xtd::char8
Convert sbyte to char8.
static auto to_char16(const xtd::string &value) -> xtd::char16
Convert string to char16.
static auto to_boolean(char8 value) -> bool
Convert char8 to bool.
static auto to_string(decimal value) -> xtd::string
Convert decimal to string.
static auto to_uint64(char8 value) noexcept -> xtd::uint64
Convert char8 to uint64.
static auto to_uint32(type_t value) noexcept -> xtd::uint32
Convert type_t to uint32.
Definition convert.hpp:4291
static auto to_char16(xtd::any value) -> xtd::char16
Convert xtd::any to char16.
static auto to_wchar(bool value) -> xtd::wchar
Convert bool to wchar.
static auto to_int64(uint16 value) noexcept -> xtd::int64
Convert uint16 to int64.
static auto to_byte(char16 value) -> xtd::byte
Convert char16 to byte.
static auto to_decimal(int64 value) noexcept -> xtd::decimal
Convert int64 to decimal.
static auto to_any(char8 value) -> xtd::any
Convert char8 to xtd::any.
static auto to_int64(decimal value) noexcept -> xtd::int64
Convert decimal to int64.
static auto to_ullong(float value) -> xtd::ulong
Convert float to xtd::ulong.
static auto to_wchar(wchar value) noexcept -> xtd::wchar
Convert char32 to wchar.
static auto to_int64(double value) noexcept -> xtd::int64
Convert double to int64.
static auto to_sbyte(uint64 value) -> xtd::sbyte
Convert uint64 to sbyte.
static auto to_sbyte(wchar value) -> xtd::sbyte
Convert char32 to sbyte.
static auto to_boolean(xtd::byte value) noexcept -> bool
Convert xtd::byte to bool.
static auto to_char32(char8 value) noexcept -> xtd::char32
Convert char8 to char32.
static auto to_any(xtd::ulong value) noexcept -> xtd::any
Convert slong to xtd::any.
static auto to_char8(slong value) -> xtd::char8
Convert slong to char8.
static auto to_boolean(wchar value) -> bool
Convert wchar to bool.
static auto to_any(int64 value) noexcept -> xtd::any
Convert int64 to xtd::any.
static auto to_byte(int16 value) -> xtd::byte
Convert int16 to byte.
static auto to_uint64(char16 value) noexcept -> xtd::uint64
Convert char16 to uint64.
static auto to_ullong(wchar value) noexcept -> xtd::ulong
Convert char32 to xtd::ulong.
static auto to_llong(sbyte value) noexcept -> xtd::slong
Convert sbyte to slong.
static auto to_char(uint16 value) -> char
Convert uint16 to char.
static auto to_uint64(uint32 value) noexcept -> xtd::uint64
Convert uint32 to uint64.
static auto to_double(char32 value) noexcept -> double
Convert char32 to double.
static auto to_char8(xtd::any value) -> xtd::char8
Convert xtd::any to char8.
static auto to_llong(char value) noexcept -> xtd::slong
Convert char to slong.
static auto to_boolean(xtd::any value) -> bool
Convert xtd::any to bool.
static auto to_decimal(xtd::any value) -> xtd::decimal
Convert xtd::any to decimal.
static auto to_int32(xtd::byte value) noexcept -> xtd::int32
Convert xtd::byte to int32.
static auto to_any(char16 value) noexcept -> xtd::any
Convert char16 to xtd::any.
static auto to_uint32(uint32 value) noexcept -> xtd::uint32
Convert uint32 to uint32.
static auto to_char8(wchar value) -> xtd::char8
Convert char32 to char8.
static auto to_sbyte(xtd::any value) -> xtd::sbyte
Convert xtd::any to sbyte.
static auto to_char16(char16 value) noexcept -> xtd::char16
Convert char16 to char16.
static auto to_any(slong value) noexcept -> xtd::any
Convert slong to xtd::any.
static auto to_int16(xtd::ulong value) -> xtd::int16
Convert slong to int16.
static auto to_string(type_t value) noexcept -> xtd::string
Convert type_t to string.
Definition convert.hpp:5116
static auto to_uint64(type_t value) noexcept -> xtd::uint64
Convert type_t to uint64.
Definition convert.hpp:4533
static auto to_uint16(char16 value) noexcept -> xtd::uint16
Convert char16 to uint16.
static auto to_uint32(uint64 value) -> xtd::uint32
Convert uint64 to uint32.
static auto to_string(slong value, xtd::byte from_base) -> xtd::string
Convert string to string.
static auto to_int64(wchar value) noexcept -> xtd::int64
Convert char32 to int64.
static auto to_boolean(slong value) noexcept -> bool
Convert slong to bool.
static auto to_single(int16 value) noexcept -> float
Convert int16 to single.
static auto to_decimal(int16 value) noexcept -> xtd::decimal
Convert int16 to decimal.
static auto to_double(char16 value) noexcept -> double
Convert char16 to double.
static auto to_decimal(xtd::ulong value) noexcept -> xtd::decimal
Convert slong to decimal.
static auto to_uint16(uint16 value) noexcept -> xtd::uint16
Convert uint16 to uint16.
static auto to_char16(decimal value) -> xtd::char16
Convert decimal to char16.
static auto to_uint16(int64 value) -> xtd::uint16
Convert int64 to uint16.
static auto to_uint16(uint32 value) -> xtd::uint16
Convert uint32 to uint16.
static auto to_char(float value) -> char
Convert float to char.
static auto to_decimal(slong value) noexcept -> xtd::decimal
Convert slong to decimal.
static auto to_uint16(char value) noexcept -> xtd::uint16
Convert char to uint16.
static auto to_single(xtd::ulong value) noexcept -> float
Convert slong to single.
static auto to_ullong(sbyte value) -> xtd::ulong
Convert sbyte to xtd::ulong.
static auto to_decimal(uint16 value) noexcept -> xtd::decimal
Convert uint16 to decimal.
static auto to_int32(slong value) -> xtd::int32
Convert slong to int32.
static auto to_sbyte(xtd::ulong value) -> xtd::sbyte
Convert slong to sbyte.
static auto to_char32(float value) -> xtd::char32
Convert float to char32.
static auto to_llong(bool value) noexcept -> xtd::slong
Convert bool to slong.
static auto to_byte(uint32 value) -> xtd::byte
Convert uint32 to byte.
static auto to_char32(uint32 value) noexcept -> xtd::char32
Convert uint32 to char32.
static auto to_char8(type_t value) noexcept -> xtd::char8
Convert type_t to char8.
Definition convert.hpp:1225
static auto to_sbyte(xtd::byte value) noexcept -> xtd::sbyte
Convert xtd::byte to sbyte.
static auto to_single(int32 value) noexcept -> float
Convert int32 to single.
static auto to_uint32(double value) -> xtd::uint32
Convert double to uint32.
static auto to_int64(xtd::byte value) noexcept -> xtd::int64
Convert xtd::byte to int64.
static auto throws(xtd::helpers::exception_case exception_case, const source_location &location=source_location::current()) -> void
Throws an exption with specified exception case.
static auto format(const basic_string< char > &fmt, args_t &&... args) -> basic_string
@ invalid_cast
The cast is not valid.
Definition exception_case.hpp:63
#define static_
This keyword is use to represent a static object. A static object can't be instantiated (constructors...
Definition static.hpp:38
xtd::basic_string< char > string
Represents text as a sequence of UTF-8 code units.
Definition __string_definitions.hpp:43
std::int64_t int64
Represents a 64-bit signed integer.
Definition int64.hpp:23
std::uint32_t uint32
Represents a 32-bit unsigned integer.
Definition uint32.hpp:23
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
std::int8_t sbyte
Represents a 8-bit signed integer.
Definition sbyte.hpp:23
wchar_t wchar
Represents a wide character.
Definition wchar.hpp:24
__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
std::uint16_t uint16
Represents a 16-bit unsigned integer.
Definition uint16.hpp:23
char16_t char16
Represents a 16-bit unicode character.
Definition char16.hpp:26
std::int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:25
std::int16_t int16
Represents a 16-bit signed integer.
Definition int16.hpp:23
std::uint64_t uint64
Represents a 64-bit unsigned integer.
Definition uint64.hpp:23
std::uint8_t byte
Represents a 8-bit unsigned integer.
Definition byte.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
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
constexpr read_only_span()
Creates an empty xtd::read_only_span whose xtd::read_only_span::data is null and xtd::read_only_span:...
Definition read_only_span.hpp:85
Contains xtd::read_only_span class.
Contains xtd::static_object class.
Contains xtd::string alias.
Contains xtd fundamental types.