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