xtd - Reference Guide  0.1.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
Static Public Member Functions | List of all members
xtd::convert Class Reference

#include <convert.h>

Definition

Represents API to convert base type code.

Namespace
xtd
Library
xtd.core
Remarks
This class cannot be inherited.

Inherits xtd::static_object.

Static Public Member Functions

static std::any to_any (bool value) noexcept
 Convert bool to std::any.
 
static std::any to_any (byte_t value) noexcept
 Convert byte_t to std::any.
 
static std::any to_any (char value) noexcept
 Convert char to std::any.
 
static std::any to_any (char16_t value) noexcept
 Convert char16_t to std::any.
 
static std::any to_any (char32_t value) noexcept
 Convert char32_t to std::any.
 
static std::any to_any (char8_t value)
 Convert char8_t to std::any.
 
static std::any to_any (const xtd::ustring &value) noexcept
 Convert string to std::any.
 
static std::any to_any (decimal_t value) noexcept
 Convert decimal_t to std::any.
 
static std::any to_any (double value) noexcept
 Convert double to std::any.
 
static std::any to_any (float value) noexcept
 Convert float to std::any.
 
static std::any to_any (int16_t value) noexcept
 Convert int16_t to std::any.
 
static std::any to_any (int32_t value) noexcept
 Convert int32_t to std::any.
 
static std::any to_any (int64_t value) noexcept
 Convert int64_t to std::any.
 
static std::any to_any (llong_t value) noexcept
 Convert llong_t to std::any.
 
static std::any to_any (sbyte_t value) noexcept
 Convert sbyte_t to std::any.
 
static std::any to_any (std::any value) noexcept
 Convert std::any to std::any.
 
template<typename type_t >
static std::any to_any (type_t value)
 Convert type_t to bool.
 
static std::any to_any (uint16_t value) noexcept
 Convert uint16_t to std::any.
 
static std::any to_any (uint32_t value) noexcept
 Convert uint32_t to std::any.
 
static std::any to_any (uint64_t value) noexcept
 Convert uint64_t to std::any.
 
static std::any to_any (ullong_t value) noexcept
 Convert llong_t to std::any.
 
static std::any to_any (wchar_t value) noexcept
 Convert wchar_t to std::any.
 
static bool to_boolean (bool value) noexcept
 Convert bool to bool.
 
static bool to_boolean (byte_t value) noexcept
 Convert byte_t to bool.
 
static bool to_boolean (char value)
 Convert char to bool.
 
static bool to_boolean (char16_t value)
 Convert char16_t to bool.
 
static bool to_boolean (char32_t value)
 Convert char32_t to bool.
 
static bool to_boolean (char8_t value)
 Convert char8_t to bool.
 
static bool to_boolean (const xtd::ustring &value)
 Convert string to bool.
 
static bool to_boolean (decimal_t value) noexcept
 Convert decimal_t to bool.
 
static bool to_boolean (double value) noexcept
 Convert double to bool.
 
static bool to_boolean (float value) noexcept
 Convert float to bool.
 
static bool to_boolean (int16_t value) noexcept
 Convert int16_t to bool.
 
static bool to_boolean (int32_t value) noexcept
 Convert int32_t to bool.
 
static bool to_boolean (int64_t value) noexcept
 Convert int64_t to bool.
 
static bool to_boolean (llong_t value) noexcept
 Convert llong_t to bool.
 
static bool to_boolean (sbyte_t value) noexcept
 Convert sbyte_t to bool.
 
static bool to_boolean (std::any value)
 Convert std::any to bool.
 
template<typename type_t >
static bool to_boolean (type_t value) noexcept
 Convert type_t to bool.
 
static bool to_boolean (uint16_t value) noexcept
 Convert uint16_t to bool.
 
static bool to_boolean (uint32_t value) noexcept
 Convert uint32_t to bool.
 
static bool to_boolean (uint64_t value) noexcept
 Convert uint64_t to bool.
 
static bool to_boolean (ullong_t value) noexcept
 Convert llong_t to bool.
 
static bool to_boolean (wchar_t value)
 Convert wchar_t to bool.
 
static byte_t to_byte (bool value) noexcept
 Convert bool to byte.
 
static byte_t to_byte (byte_t value) noexcept
 Convert byte_t to byte.
 
static byte_t to_byte (char value) noexcept
 Convert char to byte.
 
static byte_t to_byte (char16_t value)
 Convert char16_t to byte.
 
static byte_t to_byte (char32_t value)
 Convert char32_t to byte.
 
static byte_t to_byte (char8_t value) noexcept
 Convert char8_t to byte.
 
static byte_t to_byte (const xtd::ustring &value)
 Convert string to byte.
 
static byte_t to_byte (const xtd::ustring &value, byte_t from_base)
 Convert string to byte.
 
static byte_t to_byte (decimal_t value)
 Convert decimal_t to byte.
 
static byte_t to_byte (double value)
 Convert double to byte.
 
static byte_t to_byte (float value)
 Convert float to byte.
 
static byte_t to_byte (int16_t value)
 Convert int16_t to byte.
 
static byte_t to_byte (int32_t value)
 Convert int32_t to byte.
 
static byte_t to_byte (int64_t value)
 Convert int64_t to byte.
 
static byte_t to_byte (llong_t value)
 Convert llong_t to byte.
 
static byte_t to_byte (sbyte_t value)
 Convert sbyte_t to byte.
 
static byte_t to_byte (std::any value)
 Convert std::any to byte.
 
template<typename type_t >
static byte_t to_byte (type_t value) noexcept
 Convert type_t to byte.
 
static byte_t to_byte (uint16_t value)
 Convert uint16_t to byte.
 
static byte_t to_byte (uint32_t value)
 Convert uint32_t to byte.
 
static byte_t to_byte (uint64_t value)
 Convert uint64_t to byte.
 
static byte_t to_byte (ullong_t value)
 Convert llong_t to byte.
 
static byte_t to_byte (wchar_t value)
 Convert char32_t to byte.
 
static char to_char (bool value)
 Convert bool to char.
 
static char to_char (byte_t value) noexcept
 Convert byte_t to char.
 
static char to_char (char value) noexcept
 Convert char to char.
 
static char to_char (char16_t value)
 Convert char16_t to char.
 
static char to_char (char32_t value)
 Convert char32_t to char.
 
static char to_char (char8_t value) noexcept
 Convert char8_t to char.
 
static char to_char (const xtd::ustring &value)
 Convert string to char.
 
static char to_char (decimal_t value)
 Convert decimal_t to char.
 
static char to_char (double value)
 Convert double to char.
 
static char to_char (float value)
 Convert float to char.
 
static char to_char (int16_t value)
 Convert int16_t to char.
 
static char to_char (int32_t value)
 Convert int32_t to char.
 
static char to_char (int64_t value)
 Convert int64_t to char.
 
static char to_char (llong_t value)
 Convert llong_t to char.
 
static char to_char (sbyte_t value)
 Convert sbyte_t to char.
 
static char to_char (std::any value)
 Convert std::any to char.
 
template<typename type_t >
static char to_char (type_t value) noexcept
 Convert type_t to char.
 
static char to_char (uint16_t value)
 Convert uint16_t to char.
 
static char to_char (uint32_t value)
 Convert uint32_t to char.
 
static char to_char (uint64_t value)
 Convert uint64_t to char.
 
static char to_char (ullong_t value)
 Convert llong_t to char.
 
static char to_char (wchar_t value)
 Convert char32_t to char.
 
static char16_t to_char16 (bool value)
 Convert bool to char16.
 
static char16_t to_char16 (byte_t value) noexcept
 Convert byte_t to char16.
 
static char16_t to_char16 (char value) noexcept
 Convert char to char16.
 
static char16_t to_char16 (char16_t value) noexcept
 Convert char16_t to char16.
 
static char16_t to_char16 (char32_t value)
 Convert char32_t to char16.
 
static char16_t to_char16 (char8_t value) noexcept
 Convert char8_t to char16.
 
static char16_t to_char16 (const xtd::ustring &value)
 Convert string to char16.
 
static char16_t to_char16 (decimal_t value)
 Convert decimal_t to char16.
 
static char16_t to_char16 (double value)
 Convert double to char16.
 
static char16_t to_char16 (float value)
 Convert float to char16.
 
static char16_t to_char16 (int16_t value)
 Convert int16_t to char16.
 
static char16_t to_char16 (int32_t value)
 Convert int32_t to char16.
 
static char16_t to_char16 (int64_t value)
 Convert int64_t to char16.
 
static char16_t to_char16 (llong_t value)
 Convert llong_t to char16.
 
static char16_t to_char16 (sbyte_t value)
 Convert sbyte_t to char16.
 
static char16_t to_char16 (std::any value)
 Convert std::any to char16.
 
template<typename type_t >
static char16_t to_char16 (type_t value) noexcept
 Convert type_t to char16.
 
static char16_t to_char16 (uint16_t value) noexcept
 Convert uint16_t to char16.
 
static char16_t to_char16 (uint32_t value)
 Convert uint32_t to char16.
 
static char16_t to_char16 (uint64_t value)
 Convert uint64_t to char16.
 
static char16_t to_char16 (ullong_t value)
 Convert llong_t to char16.
 
static char16_t to_char16 (wchar_t value) noexcept
 Convert char32_t to char16.
 
static char32_t to_char32 (bool value)
 Convert bool to char32.
 
static char32_t to_char32 (byte_t value) noexcept
 Convert byte_t to char32.
 
static char32_t to_char32 (char value) noexcept
 Convert char to char32.
 
static char32_t to_char32 (char16_t value) noexcept
 Convert char16_t to char32.
 
static char32_t to_char32 (char32_t value) noexcept
 Convert char32_t to char32.
 
static char32_t to_char32 (char8_t value) noexcept
 Convert char8_t to char32.
 
static char32_t to_char32 (const xtd::ustring &value)
 Convert string to char32.
 
static char32_t to_char32 (decimal_t value)
 Convert decimal_t to char32.
 
static char32_t to_char32 (double value)
 Convert double to char32.
 
static char32_t to_char32 (float value)
 Convert float to char32.
 
static char32_t to_char32 (int16_t value)
 Convert int16_t to char32.
 
static char32_t to_char32 (int32_t value)
 Convert int32_t to char32.
 
static char32_t to_char32 (int64_t value)
 Convert int64_t to char32.
 
static char32_t to_char32 (llong_t value)
 Convert llong_t to char32.
 
static char32_t to_char32 (sbyte_t value)
 Convert sbyte_t to char32.
 
static char32_t to_char32 (std::any value)
 Convert std::any to char32.
 
template<typename type_t >
static char32_t to_char32 (type_t value) noexcept
 Convert type_t to char32.
 
static char32_t to_char32 (uint16_t value) noexcept
 Convert uint16_t to char32.
 
static char32_t to_char32 (uint32_t value) noexcept
 Convert uint32_t to char32.
 
static char32_t to_char32 (uint64_t value)
 Convert uint64_t to char32.
 
static char32_t to_char32 (ullong_t value)
 Convert llong_t to char32.
 
static char32_t to_char32 (wchar_t value) noexcept
 Convert char32_t to char32.
 
static char8_t to_char8 (bool value)
 Convert bool to char8.
 
static char8_t to_char8 (byte_t value) noexcept
 Convert byte_t to char8.
 
static char8_t to_char8 (char value) noexcept
 Convert char to char8.
 
static char8_t to_char8 (char16_t value)
 Convert char16_t to char8.
 
static char8_t to_char8 (char32_t value)
 Convert char32_t to char8.
 
static char8_t to_char8 (char8_t value) noexcept
 Convert char8_t to char8.
 
static char8_t to_char8 (const xtd::ustring &value)
 Convert string to char8.
 
static char8_t to_char8 (decimal_t value)
 Convert decimal_t to char8.
 
static char8_t to_char8 (double value)
 Convert double to char8.
 
static char8_t to_char8 (float value)
 Convert float to char8.
 
static char8_t to_char8 (int16_t value)
 Convert int16_t to char8.
 
static char8_t to_char8 (int32_t value)
 Convert int32_t to char8.
 
static char8_t to_char8 (int64_t value)
 Convert int64_t to char8.
 
static char8_t to_char8 (llong_t value)
 Convert llong_t to char8.
 
static char8_t to_char8 (sbyte_t value)
 Convert sbyte_t to char8.
 
static char8_t to_char8 (std::any value)
 Convert std::any to char8.
 
template<typename type_t >
static char8_t to_char8 (type_t value) noexcept
 Convert type_t to char8.
 
static char8_t to_char8 (uint16_t value)
 Convert uint16_t to char8.
 
static char8_t to_char8 (uint32_t value)
 Convert uint32_t to char8.
 
static char8_t to_char8 (uint64_t value)
 Convert uint64_t to char8.
 
static char8_t to_char8 (ullong_t value)
 Convert llong_t to char8.
 
static char8_t to_char8 (wchar_t value)
 Convert char32_t to char8.
 
static decimal_t to_decimal (bool value) noexcept
 Convert bool to decimal.
 
static decimal_t to_decimal (byte_t value) noexcept
 Convert byte_t to decimal.
 
static decimal_t to_decimal (char value) noexcept
 Convert char to decimal.
 
static decimal_t to_decimal (char16_t value) noexcept
 Convert char16_t to decimal.
 
static decimal_t to_decimal (char32_t value) noexcept
 Convert char32_t to decimal.
 
static decimal_t to_decimal (char8_t value) noexcept
 Convert char8_t to decimal.
 
static decimal_t to_decimal (const xtd::ustring &value)
 Convert string to decimal.
 
static decimal_t to_decimal (decimal_t value) noexcept
 Convert decimal_t to decimal.
 
static decimal_t to_decimal (double value) noexcept
 Convert double to decimal.
 
static decimal_t to_decimal (float value) noexcept
 Convert float to decimal.
 
static decimal_t to_decimal (int16_t value) noexcept
 Convert int16_t to decimal.
 
static decimal_t to_decimal (int32_t value) noexcept
 Convert int32_t to decimal.
 
static decimal_t to_decimal (int64_t value) noexcept
 Convert int64_t to decimal.
 
static decimal_t to_decimal (llong_t value) noexcept
 Convert llong_t to decimal.
 
static decimal_t to_decimal (sbyte_t value) noexcept
 Convert sbyte_t to decimal.
 
static decimal_t to_decimal (std::any value)
 Convert std::any to decimal.
 
template<typename type_t >
static decimal_t to_decimal (type_t value) noexcept
 Convert type_t to decimal.
 
static decimal_t to_decimal (uint16_t value) noexcept
 Convert uint16_t to decimal.
 
static decimal_t to_decimal (uint32_t value) noexcept
 Convert uint32_t to decimal.
 
static decimal_t to_decimal (uint64_t value) noexcept
 Convert uint64_t to decimal.
 
static decimal_t to_decimal (ullong_t value) noexcept
 Convert llong_t to decimal.
 
static decimal_t to_decimal (wchar_t value) noexcept
 Convert char32_t to decimal.
 
static double to_double (bool value) noexcept
 Convert bool to double.
 
static double to_double (byte_t value) noexcept
 Convert byte_t to double.
 
static double to_double (char value) noexcept
 Convert char to double.
 
static double to_double (char16_t value) noexcept
 Convert char16_t to double.
 
static double to_double (char32_t value) noexcept
 Convert char32_t to double.
 
static double to_double (char8_t value) noexcept
 Convert char8_t to double.
 
static double to_double (const xtd::ustring &value)
 Convert string to double.
 
static double to_double (decimal_t value) noexcept
 Convert decimal_t to double.
 
static double to_double (double value) noexcept
 Convert double to double.
 
static double to_double (float value) noexcept
 Convert float to double.
 
static double to_double (int16_t value) noexcept
 Convert int16_t to double.
 
static double to_double (int32_t value) noexcept
 Convert int32_t to double.
 
static double to_double (int64_t value) noexcept
 Convert int64_t to double.
 
static double to_double (llong_t value) noexcept
 Convert llong_t to double.
 
static double to_double (sbyte_t value) noexcept
 Convert sbyte_t to double.
 
static double to_double (std::any value)
 Convert std::any to double.
 
template<typename type_t >
static double to_double (type_t value) noexcept
 Convert type_t to double.
 
static double to_double (uint16_t value) noexcept
 Convert uint16_t to double.
 
static double to_double (uint32_t value) noexcept
 Convert uint32_t to double.
 
static double to_double (uint64_t value) noexcept
 Convert uint64_t to double.
 
static double to_double (ullong_t value) noexcept
 Convert llong_t to double.
 
static double to_double (wchar_t value) noexcept
 Convert char32_t to double.
 
static int16_t to_int16 (bool value) noexcept
 Convert bool to int16.
 
static int16_t to_int16 (byte_t value) noexcept
 Convert byte_t to int16.
 
static int16_t to_int16 (char value) noexcept
 Convert char to int16.
 
static int16_t to_int16 (char16_t value) noexcept
 Convert char16_t to int16.
 
static int16_t to_int16 (char32_t value)
 Convert char32_t to int16.
 
static int16_t to_int16 (char8_t value) noexcept
 Convert char8_t to int16.
 
static int16_t to_int16 (const xtd::ustring &value)
 Convert string to int16.
 
static int16_t to_int16 (const xtd::ustring &value, byte_t from_base)
 Convert string to int16.
 
static int16_t to_int16 (decimal_t value)
 Convert decimal_t to int16.
 
static int16_t to_int16 (double value)
 Convert double to int16.
 
static int16_t to_int16 (float value)
 Convert float to int16.
 
static int16_t to_int16 (int16_t value) noexcept
 Convert int16_t to int16.
 
static int16_t to_int16 (int32_t value)
 Convert int32_t to int16.
 
static int16_t to_int16 (int64_t value)
 Convert int64_t to int16.
 
static int16_t to_int16 (llong_t value)
 Convert llong_t to int16.
 
static int16_t to_int16 (sbyte_t value) noexcept
 Convert sbyte_t to int16.
 
static int16_t to_int16 (std::any value)
 Convert std::any to int16.
 
template<typename type_t >
static int16_t to_int16 (type_t value) noexcept
 Convert type_t to int16.
 
static int16_t to_int16 (uint16_t value)
 Convert uint16_t to int16.
 
static int16_t to_int16 (uint32_t value)
 Convert uint32_t to int16.
 
static int16_t to_int16 (uint64_t value)
 Convert uint64_t to int16.
 
static int16_t to_int16 (ullong_t value)
 Convert llong_t to int16.
 
static int16_t to_int16 (wchar_t value) noexcept
 Convert char32_t to int16.
 
static int32_t to_int32 (bool value) noexcept
 Convert bool to int32.
 
static int32_t to_int32 (byte_t value) noexcept
 Convert byte_t to int32.
 
static int32_t to_int32 (char value) noexcept
 Convert char to int32.
 
static int32_t to_int32 (char16_t value) noexcept
 Convert char16_t to int32.
 
static int32_t to_int32 (char32_t value) noexcept
 Convert char32_t to int32.
 
static int32_t to_int32 (char8_t value) noexcept
 Convert char8_t to int32.
 
static int32_t to_int32 (const xtd::ustring &value)
 Convert string to int32.
 
static int32_t to_int32 (const xtd::ustring &value, byte_t from_base)
 Convert string to int32.
 
static int32_t to_int32 (decimal_t value)
 Convert decimal_t to int32.
 
static int32_t to_int32 (double value)
 Convert double to int32.
 
static int32_t to_int32 (float value) noexcept
 Convert float to int32.
 
static int32_t to_int32 (int16_t value) noexcept
 Convert int16_t to int32.
 
static int32_t to_int32 (int32_t value) noexcept
 Convert int32_t to int32.
 
static int32_t to_int32 (int64_t value)
 Convert int64_t to int32.
 
static int32_t to_int32 (llong_t value)
 Convert llong_t to int32.
 
static int32_t to_int32 (sbyte_t value) noexcept
 Convert sbyte_t to int32.
 
static int32_t to_int32 (std::any value)
 Convert std::any to int32.
 
template<typename type_t >
static int32_t to_int32 (type_t value) noexcept
 Convert type_t to int32.
 
static int32_t to_int32 (uint16_t value) noexcept
 Convert uint16_t to int32.
 
static int32_t to_int32 (uint32_t value)
 Convert uint32_t to int32.
 
static int32_t to_int32 (uint64_t value)
 Convert uint64_t to int32.
 
static int32_t to_int32 (ullong_t value)
 Convert llong_t to int32.
 
static int32_t to_int32 (wchar_t value) noexcept
 Convert char32_t to int32.
 
static int64_t to_int64 (bool value) noexcept
 Convert bool to int64.
 
static int64_t to_int64 (byte_t value) noexcept
 Convert byte_t to int64.
 
static int64_t to_int64 (char value) noexcept
 Convert char to int64.
 
static int64_t to_int64 (char16_t value) noexcept
 Convert char16_t to int64.
 
static int64_t to_int64 (char32_t value) noexcept
 Convert char32_t to int64.
 
static int64_t to_int64 (char8_t value) noexcept
 Convert char8_t to int64.
 
static int64_t to_int64 (const xtd::ustring &value)
 Convert string to int64.
 
static int64_t to_int64 (const xtd::ustring &value, byte_t from_base)
 Convert string to int64.
 
static int64_t to_int64 (decimal_t value) noexcept
 Convert decimal_t to int64.
 
static int64_t to_int64 (double value) noexcept
 Convert double to int64.
 
static int64_t to_int64 (float value) noexcept
 Convert float to int64.
 
static int64_t to_int64 (int16_t value) noexcept
 Convert int16_t to int64.
 
static int64_t to_int64 (int32_t value) noexcept
 Convert int32_t to int64.
 
static int64_t to_int64 (int64_t value) noexcept
 Convert int64_t to int64.
 
static int64_t to_int64 (llong_t value) noexcept
 Convert llong_t to int64.
 
static int64_t to_int64 (sbyte_t value) noexcept
 Convert sbyte_t to int64.
 
static int64_t to_int64 (std::any value)
 Convert std::any to int64.
 
template<typename type_t >
static int64_t to_int64 (type_t value) noexcept
 Convert type_t to int64.
 
static int64_t to_int64 (uint16_t value) noexcept
 Convert uint16_t to int64.
 
static int64_t to_int64 (uint32_t value) noexcept
 Convert uint32_t to int64.
 
static int64_t to_int64 (uint64_t value)
 Convert uint64_t to int64.
 
static int64_t to_int64 (ullong_t value)
 Convert llong_t to int64.
 
static int64_t to_int64 (wchar_t value) noexcept
 Convert char32_t to int64.
 
static llong_t to_llong (bool value) noexcept
 Convert bool to llong.
 
static llong_t to_llong (byte_t value) noexcept
 Convert byte_t to llong.
 
static llong_t to_llong (char value) noexcept
 Convert char to llong.
 
static llong_t to_llong (char16_t value) noexcept
 Convert char16_t to llong.
 
static llong_t to_llong (char32_t value) noexcept
 Convert char32_t to llong.
 
static llong_t to_llong (char8_t value) noexcept
 Convert char8_t to llong.
 
static llong_t to_llong (const xtd::ustring &value)
 Convert string to llong.
 
static llong_t to_llong (const xtd::ustring &value, byte_t from_base)
 Convert string to llong.
 
static llong_t to_llong (decimal_t value) noexcept
 Convert decimal_t to llong.
 
static llong_t to_llong (double value) noexcept
 Convert double to llong.
 
static llong_t to_llong (float value) noexcept
 Convert float to llong.
 
static llong_t to_llong (int16_t value) noexcept
 Convert int16_t to llong.
 
static llong_t to_llong (int32_t value) noexcept
 Convert int32_t to llong.
 
static llong_t to_llong (int64_t value) noexcept
 Convert int64_t to llong.
 
static llong_t to_llong (llong_t value) noexcept
 Convert llong_t to llong.
 
static llong_t to_llong (sbyte_t value) noexcept
 Convert sbyte_t to llong.
 
static llong_t to_llong (std::any value)
 Convert std::any to llong.
 
template<typename type_t >
static llong_t to_llong (type_t value) noexcept
 Convert type_t to llong.
 
static llong_t to_llong (uint16_t value) noexcept
 Convert uint16_t to llong.
 
static llong_t to_llong (uint32_t value) noexcept
 Convert uint32_t to llong.
 
static llong_t to_llong (uint64_t value)
 Convert uint64_t to llong.
 
static llong_t to_llong (ullong_t value)
 Convert llong_t to llong.
 
static llong_t to_llong (wchar_t value) noexcept
 Convert char32_t to llong.
 
static sbyte_t to_sbyte (bool value) noexcept
 Convert bool to sbyte.
 
static sbyte_t to_sbyte (byte_t value) noexcept
 Convert byte_t to sbyte.
 
static sbyte_t to_sbyte (char value) noexcept
 Convert char to sbyte.
 
static sbyte_t to_sbyte (char16_t value)
 Convert char16_t to sbyte.
 
static sbyte_t to_sbyte (char32_t value)
 Convert char32_t to sbyte.
 
static sbyte_t to_sbyte (char8_t value) noexcept
 Convert char8_t to sbyte.
 
static sbyte_t to_sbyte (const xtd::ustring &value)
 Convert string to sbyte.
 
static sbyte_t to_sbyte (const xtd::ustring &value, byte_t from_base)
 Convert string to sbyte.
 
static sbyte_t to_sbyte (decimal_t value)
 Convert decimal_t to sbyte.
 
static sbyte_t to_sbyte (double value)
 Convert double to sbyte.
 
static sbyte_t to_sbyte (float value)
 Convert float to sbyte.
 
static sbyte_t to_sbyte (int16_t value)
 Convert int16_t to sbyte.
 
static sbyte_t to_sbyte (int32_t value)
 Convert int32_t to sbyte.
 
static sbyte_t to_sbyte (int64_t value)
 Convert int64_t to sbyte.
 
static sbyte_t to_sbyte (llong_t value)
 Convert llong_t to sbyte.
 
static sbyte_t to_sbyte (sbyte_t value)
 Convert sbyte_t to sbyte.
 
static sbyte_t to_sbyte (std::any value)
 Convert std::any to sbyte.
 
template<typename type_t >
static sbyte_t to_sbyte (type_t value) noexcept
 Convert type_t to sbyte.
 
static sbyte_t to_sbyte (uint16_t value)
 Convert uint16_t to sbyte.
 
static sbyte_t to_sbyte (uint32_t value)
 Convert uint32_t to sbyte.
 
static sbyte_t to_sbyte (uint64_t value)
 Convert uint64_t to sbyte.
 
static sbyte_t to_sbyte (ullong_t value)
 Convert llong_t to sbyte.
 
static sbyte_t to_sbyte (wchar_t value)
 Convert char32_t to sbyte.
 
static float to_single (bool value) noexcept
 Convert bool to single.
 
static float to_single (byte_t value) noexcept
 Convert byte_t to single.
 
static float to_single (char value) noexcept
 Convert char to single.
 
static float to_single (char16_t value) noexcept
 Convert char16_t to single.
 
static float to_single (char32_t value) noexcept
 Convert char32_t to single.
 
static float to_single (char8_t value) noexcept
 Convert char8_t to single.
 
static float to_single (const xtd::ustring &value)
 Convert string to single.
 
static float to_single (decimal_t value) noexcept
 Convert decimal_t to single.
 
static float to_single (double value) noexcept
 Convert double to single.
 
static float to_single (float value) noexcept
 Convert float to single.
 
static float to_single (int16_t value) noexcept
 Convert int16_t to single.
 
static float to_single (int32_t value) noexcept
 Convert int32_t to single.
 
static float to_single (int64_t value) noexcept
 Convert int64_t to single.
 
static float to_single (llong_t value) noexcept
 Convert llong_t to single.
 
static float to_single (sbyte_t value) noexcept
 Convert sbyte_t to single.
 
static float to_single (std::any value)
 Convert std::any to single.
 
template<typename type_t >
static float to_single (type_t value) noexcept
 Convert type_t to single.
 
static float to_single (uint16_t value) noexcept
 Convert uint16_t to single.
 
static float to_single (uint32_t value) noexcept
 Convert uint32_t to single.
 
static float to_single (uint64_t value) noexcept
 Convert uint64_t to single.
 
static float to_single (ullong_t value) noexcept
 Convert llong_t to single.
 
static float to_single (wchar_t value) noexcept
 Convert char32_t to single.
 
static ustring to_string (bool value) noexcept
 Convert bool to ustring.
 
static ustring to_string (byte_t value) noexcept
 Convert byte_t to ustring.
 
static ustring to_string (byte_t value, byte_t from_base)
 Convert string to ustring.
 
static ustring to_string (char value) noexcept
 Convert char to ustring.
 
static ustring to_string (char16_t value) noexcept
 Convert char16_t to ustring.
 
static ustring to_string (char32_t value) noexcept
 Convert char32_t to ustring.
 
static ustring to_string (char8_t value) noexcept
 Convert char8_t to ustring.
 
static ustring to_string (const xtd::ustring &value)
 Convert string to ustring.
 
static ustring to_string (decimal_t value)
 Convert decimal_t to ustring.
 
static ustring to_string (double value)
 Convert double to ustring.
 
static ustring to_string (float value)
 Convert float to ustring.
 
static ustring to_string (int16_t value)
 Convert int16_t to ustring.
 
static ustring to_string (int16_t value, byte_t from_base)
 Convert string to ustring.
 
static ustring to_string (int32_t value)
 Convert int32_t to ustring.
 
static ustring to_string (int32_t value, byte_t from_base)
 Convert string to ustring.
 
static ustring to_string (int64_t value)
 Convert int64_t to ustring.
 
static ustring to_string (int64_t value, byte_t from_base)
 Convert string to ustring.
 
static ustring to_string (llong_t value)
 Convert llong_t to ustring.
 
static ustring to_string (llong_t value, byte_t from_base)
 Convert string to ustring.
 
static ustring to_string (sbyte_t value)
 Convert sbyte_t to ustring.
 
static ustring to_string (sbyte_t value, byte_t from_base)
 Convert string to ustring.
 
static ustring to_string (std::any value)
 Convert std::any to ustring.
 
template<typename type_t >
static ustring to_string (type_t value) noexcept
 Convert type_t to ustring.
 
static ustring to_string (uint16_t value) noexcept
 Convert uint16_t to ustring.
 
static ustring to_string (uint16_t value, byte_t from_base)
 Convert string to ustring.
 
static ustring to_string (uint32_t value) noexcept
 Convert uint32_t to ustring.
 
static ustring to_string (uint32_t value, byte_t from_base)
 Convert string to ustring.
 
static ustring to_string (uint64_t value) noexcept
 Convert uint64_t to ustring.
 
static ustring to_string (uint64_t value, byte_t from_base)
 Convert string to ustring.
 
static ustring to_string (ullong_t value) noexcept
 Convert llong_t to ustring.
 
static ustring to_string (ullong_t value, byte_t from_base)
 Convert string to ustring.
 
static ustring to_string (wchar_t value) noexcept
 Convert char32_t to ustring.
 
static uint16_t to_uint16 (bool value) noexcept
 Convert bool to uint16.
 
static uint16_t to_uint16 (byte_t value) noexcept
 Convert byte_t to uint16.
 
static uint16_t to_uint16 (char value) noexcept
 Convert char to uint16.
 
static uint16_t to_uint16 (char16_t value) noexcept
 Convert char16_t to uint16.
 
static uint16_t to_uint16 (char32_t value)
 Convert char32_t to uint16.
 
static uint16_t to_uint16 (char8_t value) noexcept
 Convert char8_t to uint16.
 
static uint16_t to_uint16 (const xtd::ustring &value)
 Convert string to uint16.
 
static uint16_t to_uint16 (const xtd::ustring &value, byte_t from_base)
 Convert string to uint16.
 
static uint16_t to_uint16 (decimal_t value)
 Convert decimal_t to uint16.
 
static uint16_t to_uint16 (double value)
 Convert double to uint16.
 
static uint16_t to_uint16 (float value)
 Convert float to uint16.
 
static uint16_t to_uint16 (int16_t value)
 Convert int16_t to uint16.
 
static uint16_t to_uint16 (int32_t value)
 Convert int32_t to uint16.
 
static uint16_t to_uint16 (int64_t value)
 Convert int64_t to uint16.
 
static uint16_t to_uint16 (llong_t value)
 Convert llong_t to uint16.
 
static uint16_t to_uint16 (sbyte_t value)
 Convert sbyte_t to uint16.
 
static uint16_t to_uint16 (std::any value)
 Convert std::any to uint16.
 
template<typename type_t >
static uint16_t to_uint16 (type_t value) noexcept
 Convert type_t to uint16.
 
static uint16_t to_uint16 (uint16_t value) noexcept
 Convert uint16_t to uint16.
 
static uint16_t to_uint16 (uint32_t value)
 Convert uint32_t to uint16.
 
static uint16_t to_uint16 (uint64_t value)
 Convert uint64_t to uint16.
 
static uint16_t to_uint16 (ullong_t value)
 Convert llong_t to uint16.
 
static uint16_t to_uint16 (wchar_t value) noexcept
 Convert char32_t to uint16.
 
static uint32_t to_uint32 (bool value) noexcept
 Convert bool to uint32.
 
static uint32_t to_uint32 (byte_t value) noexcept
 Convert byte_t to uint32.
 
static uint32_t to_uint32 (char value) noexcept
 Convert char to uint32.
 
static uint32_t to_uint32 (char16_t value) noexcept
 Convert char16_t to uint32.
 
static uint32_t to_uint32 (char32_t value) noexcept
 Convert char32_t to uint32.
 
static uint32_t to_uint32 (char8_t value) noexcept
 Convert char8_t to uint32.
 
static uint32_t to_uint32 (const xtd::ustring &value)
 Convert string to uint32.
 
static uint32_t to_uint32 (const xtd::ustring &value, byte_t from_base)
 Convert string to uint32.
 
static uint32_t to_uint32 (decimal_t value)
 Convert decimal_t to uint32.
 
static uint32_t to_uint32 (double value)
 Convert double to uint32.
 
static uint32_t to_uint32 (float value)
 Convert float to uint32.
 
static uint32_t to_uint32 (int16_t value)
 Convert int16_t to uint32.
 
static uint32_t to_uint32 (int32_t value)
 Convert int32_t to uint32.
 
static uint32_t to_uint32 (int64_t value)
 Convert int64_t to uint32.
 
static uint32_t to_uint32 (llong_t value)
 Convert llong_t to uint32.
 
static uint32_t to_uint32 (sbyte_t value)
 Convert sbyte_t to uint32.
 
static uint32_t to_uint32 (std::any value)
 Convert std::any to uint32.
 
template<typename type_t >
static uint32_t to_uint32 (type_t value) noexcept
 Convert type_t to uint32.
 
static uint32_t to_uint32 (uint16_t value) noexcept
 Convert uint16_t to uint32.
 
static uint32_t to_uint32 (uint32_t value) noexcept
 Convert uint32_t to uint32.
 
static uint32_t to_uint32 (uint64_t value)
 Convert uint64_t to uint32.
 
static uint32_t to_uint32 (ullong_t value)
 Convert llong_t to uint32.
 
static uint32_t to_uint32 (wchar_t value) noexcept
 Convert char32_t to uint32.
 
static uint64_t to_uint64 (bool value) noexcept
 Convert bool to uint64.
 
static uint64_t to_uint64 (byte_t value) noexcept
 Convert byte_t to uint64.
 
static uint64_t to_uint64 (char value) noexcept
 Convert char to uint64.
 
static uint64_t to_uint64 (char16_t value) noexcept
 Convert char16_t to uint64.
 
static uint64_t to_uint64 (char32_t value) noexcept
 Convert char32_t to uint64.
 
static uint64_t to_uint64 (char8_t value) noexcept
 Convert char8_t to uint64.
 
static uint64_t to_uint64 (const xtd::ustring &value)
 Convert string to uint64.
 
static uint64_t to_uint64 (const xtd::ustring &value, byte_t from_base)
 Convert string to uint64.
 
static uint64_t to_uint64 (decimal_t value)
 Convert decimal_t to uint64.
 
static uint64_t to_uint64 (double value)
 Convert double to uint64.
 
static uint64_t to_uint64 (float value)
 Convert float to uint64.
 
static uint64_t to_uint64 (int16_t value)
 Convert int16_t to uint64.
 
static uint64_t to_uint64 (int32_t value)
 Convert int32_t to uint64.
 
static uint64_t to_uint64 (int64_t value)
 Convert int64_t to uint64.
 
static uint64_t to_uint64 (llong_t value)
 Convert llong_t to uint64.
 
static uint64_t to_uint64 (sbyte_t value)
 Convert sbyte_t to uint64.
 
static uint64_t to_uint64 (std::any value)
 Convert std::any to uint64.
 
static uint64_t to_uint64 (uint16_t value) noexcept
 Convert uint16_t to uint64.
 
static uint64_t to_uint64 (uint32_t value) noexcept
 Convert uint32_t to uint64.
 
static uint64_t to_uint64 (uint64_t value) noexcept
 Convert uint64_t to uint64.
 
static uint64_t to_uint64 (ullong_t value) noexcept
 Convert llong_t to uint64.
 
static uint64_t to_uint64 (wchar_t value) noexcept
 Convert char32_t to uint64.
 
template<typename type_t >
static ullong_t to_ullong (type_t value) noexcept
 Convert type_t to ullong.
 
static ustring to_ustring (bool value) noexcept
 Convert bool to ustring.
 
static ustring to_ustring (byte_t value) noexcept
 Convert byte_t to ustring.
 
static ustring to_ustring (byte_t value, byte_t from_base)
 Convert string to ustring.
 
static ustring to_ustring (char value) noexcept
 Convert char to ustring.
 
static ustring to_ustring (char16_t value) noexcept
 Convert char16_t to ustring.
 
static ustring to_ustring (char32_t value) noexcept
 Convert char32_t to ustring.
 
static ustring to_ustring (char8_t value) noexcept
 Convert char8_t to ustring.
 
static ustring to_ustring (const xtd::ustring &value)
 Convert string to ustring.
 
static ustring to_ustring (decimal_t value)
 Convert decimal_t to ustring.
 
static ustring to_ustring (double value)
 Convert double to ustring.
 
static ustring to_ustring (float value)
 Convert float to ustring.
 
static ustring to_ustring (int16_t value)
 Convert int16_t to ustring.
 
static ustring to_ustring (int16_t value, byte_t from_base)
 Convert string to ustring.
 
static ustring to_ustring (int32_t value)
 Convert int32_t to ustring.
 
static ustring to_ustring (int32_t value, byte_t from_base)
 Convert string to ustring.
 
static ustring to_ustring (int64_t value)
 Convert int64_t to ustring.
 
static ustring to_ustring (int64_t value, byte_t from_base)
 Convert string to ustring.
 
static ustring to_ustring (llong_t value)
 Convert llong_t to ustring.
 
static ustring to_ustring (llong_t value, byte_t from_base)
 Convert string to ustring.
 
static ustring to_ustring (sbyte_t value)
 Convert sbyte_t to ustring.
 
static ustring to_ustring (sbyte_t value, byte_t from_base)
 Convert string to ustring.
 
static ustring to_ustring (std::any value)
 Convert std::any to ustring.
 
template<typename type_t >
static ustring to_ustring (type_t value) noexcept
 Convert type_t to ustring.
 
static ustring to_ustring (uint16_t value) noexcept
 Convert uint16_t to ustring.
 
static ustring to_ustring (uint16_t value, byte_t from_base)
 Convert string to ustring.
 
static ustring to_ustring (uint32_t value) noexcept
 Convert uint32_t to ustring.
 
static ustring to_ustring (uint32_t value, byte_t from_base)
 Convert string to ustring.
 
static ustring to_ustring (uint64_t value) noexcept
 Convert uint64_t to ustring.
 
static ustring to_ustring (uint64_t value, byte_t from_base)
 Convert string to ustring.
 
static ustring to_ustring (ullong_t value) noexcept
 Convert llong_t to ustring.
 
static ustring to_ustring (ullong_t value, byte_t from_base)
 Convert string to ustring.
 
static ustring to_ustring (wchar_t value) noexcept
 Convert char32_t to ustring.
 
static wchar_t to_wchar (bool value)
 Convert bool to wchar.
 
static wchar_t to_wchar (byte_t value) noexcept
 Convert byte_t to wchar.
 
static wchar_t to_wchar (char value) noexcept
 Convert char to wchar.
 
static wchar_t to_wchar (char16_t value) noexcept
 Convert char16_t to wchar.
 
static wchar_t to_wchar (char32_t value)
 Convert char32_t to wchar.
 
static wchar_t to_wchar (char8_t value) noexcept
 Convert char8_t to wchar.
 
static wchar_t to_wchar (const xtd::ustring &value)
 Convert string to wchar.
 
static wchar_t to_wchar (decimal_t value)
 Convert decimal_t to wchar.
 
static wchar_t to_wchar (double value)
 Convert double to wchar.
 
static wchar_t to_wchar (float value)
 Convert float to wchar.
 
static wchar_t to_wchar (int16_t value)
 Convert int16_t to wchar.
 
static wchar_t to_wchar (int32_t value)
 Convert int32_t to wchar.
 
static wchar_t to_wchar (int64_t value)
 Convert int64_t to wchar.
 
static wchar_t to_wchar (llong_t value)
 Convert llong_t to wchar.
 
static wchar_t to_wchar (sbyte_t value)
 Convert sbyte_t to wchar.
 
static wchar_t to_wchar (std::any value)
 Convert std::any to wchar.
 
template<typename type_t >
static wchar_t to_wchar (type_t value) noexcept
 Convert type_t to wchar.
 
static wchar_t to_wchar (uint16_t value) noexcept
 Convert uint16_t to wchar.
 
static wchar_t to_wchar (uint32_t value)
 Convert uint32_t to wchar.
 
static wchar_t to_wchar (uint64_t value)
 Convert uint64_t to wchar.
 
static wchar_t to_wchar (ullong_t value)
 Convert llong_t to wchar.
 
static wchar_t to_wchar (wchar_t value) noexcept
 Convert char32_t to wchar.
 

Member Function Documentation

◆ to_any() [1/22]

static std::any xtd::convert::to_any ( bool  value)
staticnoexcept

Convert bool to std::any.

Parameters
valueobject to convert.
Returns
A new std::any object converted from value.
bool value = true;
any result = convert::to_any(value);
static std::any to_any(std::any value) noexcept
Convert std::any to std::any.
@ any
Indicates that all styles except allow_binary_specifier, allow_octal_specifier and allow_hex_specifie...

◆ to_any() [2/22]

static std::any xtd::convert::to_any ( byte_t  value)
staticnoexcept

Convert byte_t to std::any.

Parameters
valueobject to convert.
Returns
A new std::any object converted from value.
byte_t value = 42;
any result = convert::to_any(value);

◆ to_any() [3/22]

static std::any xtd::convert::to_any ( char  value)
staticnoexcept

Convert char to std::any.

Parameters
valueobject to convert.
Returns
A new std::any object converted from value.
char value = 'a';
any result = convert::to_any(value);

◆ to_any() [4/22]

static std::any xtd::convert::to_any ( char16_t  value)
staticnoexcept

Convert char16_t to std::any.

Parameters
valueobject to convert.
Returns
A new std::any object converted from value.
char16_t value = u'a';
any result = convert::to_any(value);
@ u
The U key.

◆ to_any() [5/22]

static std::any xtd::convert::to_any ( char32_t  value)
staticnoexcept

Convert char32_t to std::any.

Parameters
valueobject to convert.
Returns
A new std::any object converted from value.
char32_t value = U'a';
any result = convert::to_any(value);

◆ to_any() [6/22]

static std::any xtd::convert::to_any ( char8_t  value)
static

Convert char8_t to std::any.

Parameters
valueobject to convert.
Returns
A new std::any object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
char8_t value = u8'a';
any result = convert::to_any(value);

◆ to_any() [7/22]

static std::any xtd::convert::to_any ( const xtd::ustring value)
staticnoexcept

Convert string to std::any.

Parameters
valueobject to convert.
Returns
A new std::any object converted from value.
Examples
ustring value = "42";
any result = convert::to_any(value);
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:48

◆ to_any() [8/22]

static std::any xtd::convert::to_any ( decimal_t  value)
staticnoexcept

Convert decimal_t to std::any.

Parameters
valueobject to convert.
Returns
A new std::any object converted from value.
decimal_t value = 42.50l;
any result = convert::to_any(value);

◆ to_any() [9/22]

static std::any xtd::convert::to_any ( double  value)
staticnoexcept

Convert double to std::any.

Parameters
valueobject to convert.
Returns
A new std::any object converted from value.
Examples
double value = 42.50;
any result = convert::to_any(value);

◆ to_any() [10/22]

static std::any xtd::convert::to_any ( float  value)
staticnoexcept

Convert float to std::any.

Parameters
valueobject to convert.
Returns
A new std::any object converted from value.

Convert double to std::any.

Parameters
valueobject to convert.
Returns
A new std::any object converted from value.
Examples
float value = 42.50f;
any result = convert::to_any(value);

◆ to_any() [11/22]

static std::any xtd::convert::to_any ( int16_t  value)
staticnoexcept

Convert int16_t to std::any.

Parameters
valueobject to convert.
Returns
A new std::any object converted from value.
Examples
int16_t value = 42;
any result = convert::to_any(value);

◆ to_any() [12/22]

static std::any xtd::convert::to_any ( int32_t  value)
staticnoexcept

Convert int32_t to std::any.

Parameters
valueobject to convert.
Returns
A new std::any object converted from value.
Examples
int32_t value = 42;
any result = convert::to_any(value);

◆ to_any() [13/22]

static std::any xtd::convert::to_any ( int64_t  value)
staticnoexcept

Convert int64_t to std::any.

Parameters
valueobject to convert.
Returns
A new std::any object converted from value.
Examples
int6_4t value = 42l;
any result = convert::to_any(value);

◆ to_any() [14/22]

static std::any xtd::convert::to_any ( llong_t  value)
staticnoexcept

Convert llong_t to std::any.

Parameters
valueobject to convert.
Returns
A new std::any object converted from value.
Examples
llong_t value = 42ll;
any result = convert::to_any(value);

◆ to_any() [15/22]

static std::any xtd::convert::to_any ( sbyte_t  value)
staticnoexcept

Convert sbyte_t to std::any.

Parameters
valueobject to convert.
Returns
A new std::any object converted from value.
Examples
sbyte_t value = 42;
any result = convert::to_any(value);

◆ to_any() [16/22]

static std::any xtd::convert::to_any ( std::any  value)
staticnoexcept

Convert std::any to std::any.

Parameters
valueobject to convert.
Returns
A new std::any object converted from value.
Examples
std::any value = true;
any result = convert::to_any(value);

◆ to_any() [17/22]

template<typename type_t >
static std::any xtd::convert::to_any ( type_t  value)
inlinestatic

Convert type_t to bool.

Parameters
valueobject to convert.
Returns
A new std::any object converted from value.
Examples
address_family value = address_family::inter_network;
any result = convert::to_any(value);

◆ to_any() [18/22]

static std::any xtd::convert::to_any ( uint16_t  value)
staticnoexcept

Convert uint16_t to std::any.

Parameters
valueobject to convert.
Returns
A new std::any object converted from value.
Examples
uint16_t value = 42u;
any result = convert::to_any(value);

◆ to_any() [19/22]

static std::any xtd::convert::to_any ( uint32_t  value)
staticnoexcept

Convert uint32_t to std::any.

Parameters
valueobject to convert.
Returns
A new std::any object converted from value.
Examples
uint32_t value = 42u;
any result = convert::to_any(value);

◆ to_any() [20/22]

static std::any xtd::convert::to_any ( uint64_t  value)
staticnoexcept

Convert uint64_t to std::any.

Parameters
valueobject to convert.
Returns
A new std::any object converted from value.
Examples
uint64_t value = 42ul;
any result = convert::to_any(value);

◆ to_any() [21/22]

static std::any xtd::convert::to_any ( ullong_t  value)
staticnoexcept

Convert llong_t to std::any.

Parameters
valueobject to convert.
Returns
A new std::any object converted from value.
Examples
ullong_t value = 42ull;
any result = convert::to_any(value);

◆ to_any() [22/22]

static std::any xtd::convert::to_any ( wchar_t  value)
staticnoexcept

Convert wchar_t to std::any.

Parameters
valueobject to convert.
Returns
A new std::any object converted from value.
wchar_t value = L'a';
any result = convert::to_any(value);

◆ to_boolean() [1/22]

static bool xtd::convert::to_boolean ( bool  value)
staticnoexcept

Convert bool to bool.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
bool value = true;
bool result = convert::to_boolean(value);
static bool to_boolean(std::any value)
Convert std::any to bool.

◆ to_boolean() [2/22]

static bool xtd::convert::to_boolean ( byte_t  value)
staticnoexcept

Convert byte_t to bool.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
byte_t value = 42;
bool result = convert::to_boolean(value);

◆ to_boolean() [3/22]

static bool xtd::convert::to_boolean ( char  value)
static

Convert char to bool.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
char value = 'a';
bool result = convert::to_boolean(value);

◆ to_boolean() [4/22]

static bool xtd::convert::to_boolean ( char16_t  value)
static

Convert char16_t to bool.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
char16_t value = u'a';
bool result = convert::to_boolean(value);

◆ to_boolean() [5/22]

static bool xtd::convert::to_boolean ( char32_t  value)
static

Convert char32_t to bool.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
char32_t value = U'a';
bool result = convert::to_boolean(value);

◆ to_boolean() [6/22]

static bool xtd::convert::to_boolean ( char8_t  value)
static

Convert char8_t to bool.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
char8_t value = u8'a';
bool result = convert::to_boolean(value);

◆ to_boolean() [7/22]

static bool xtd::convert::to_boolean ( const xtd::ustring value)
static

Convert string to bool.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Exceptions
xtd::atgument_exceptionvalue does not represent a bool.
Examples
ustring value = "42";
bool result = convert::to_boolean(value);

◆ to_boolean() [8/22]

static bool xtd::convert::to_boolean ( decimal_t  value)
staticnoexcept

Convert decimal_t to bool.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
decimal_t value = 42.50l;
bool result = convert::to_boolean(value);

◆ to_boolean() [9/22]

static bool xtd::convert::to_boolean ( double  value)
staticnoexcept

Convert double to bool.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Examples
double value = 42.50;
bool result = convert::to_boolean(value);

◆ to_boolean() [10/22]

static bool xtd::convert::to_boolean ( float  value)
staticnoexcept

Convert float to bool.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.

Convert double to bool.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Examples
float value = 42.50f;
bool result = convert::to_boolean(value);

◆ to_boolean() [11/22]

static bool xtd::convert::to_boolean ( int16_t  value)
staticnoexcept

Convert int16_t to bool.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Examples
int16_t value = 42;
bool result = convert::to_boolean(value);

◆ to_boolean() [12/22]

static bool xtd::convert::to_boolean ( int32_t  value)
staticnoexcept

Convert int32_t to bool.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Examples
int32_t value = 42;
bool result = convert::to_boolean(value);

◆ to_boolean() [13/22]

static bool xtd::convert::to_boolean ( int64_t  value)
staticnoexcept

Convert int64_t to bool.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Examples
int6_4t value = 42l;
bool result = convert::to_boolean(value);

◆ to_boolean() [14/22]

static bool xtd::convert::to_boolean ( llong_t  value)
staticnoexcept

Convert llong_t to bool.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Examples
llong_t value = 42ll;
bool result = convert::to_boolean(value);

◆ to_boolean() [15/22]

static bool xtd::convert::to_boolean ( sbyte_t  value)
staticnoexcept

Convert sbyte_t to bool.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Examples
sbyte_t value = 42;
bool result = convert::to_boolean(value);

◆ to_boolean() [16/22]

static bool xtd::convert::to_boolean ( std::any  value)
static

Convert std::any to bool.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Exceptions
xtd::invalid_cast_exceptionthe parameters is bad cast.
Examples
std::any value = true;
bool result = convert::to_boolean(value);

◆ to_boolean() [17/22]

template<typename type_t >
static bool xtd::convert::to_boolean ( type_t  value)
inlinestaticnoexcept

Convert type_t to bool.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Examples
address_family value = address_family::inter_network;
bool result = convert::to_boolean(value);

◆ to_boolean() [18/22]

static bool xtd::convert::to_boolean ( uint16_t  value)
staticnoexcept

Convert uint16_t to bool.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Examples
uint16_t value = 42u;
bool result = convert::to_boolean(value);

◆ to_boolean() [19/22]

static bool xtd::convert::to_boolean ( uint32_t  value)
staticnoexcept

Convert uint32_t to bool.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Examples
uint32_t value = 42u;
bool result = convert::to_boolean(value);

◆ to_boolean() [20/22]

static bool xtd::convert::to_boolean ( uint64_t  value)
staticnoexcept

Convert uint64_t to bool.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Examples
uint64_t value = 42ul;
bool result = convert::to_boolean(value);

◆ to_boolean() [21/22]

static bool xtd::convert::to_boolean ( ullong_t  value)
staticnoexcept

Convert llong_t to bool.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Examples
ullong_t value = 42ull;
bool result = convert::to_boolean(value);

◆ to_boolean() [22/22]

static bool xtd::convert::to_boolean ( wchar_t  value)
static

Convert wchar_t to bool.

Parameters
valueobject to convert.
Returns
A new bool object converted from value.
Exceptions
xtd::invalid_cast_exceptionthrows always exception.
wchar_t value = L'a';
bool result = convert::to_boolean(value);

◆ to_byte() [1/23]

static byte_t xtd::convert::to_byte ( bool  value)
staticnoexcept

Convert bool to byte.

Parameters
valueobject to convert.
Returns
A new byte_t object converted from value.
Examples
bool value = true;
byte_t result = convert::to_byte(value);
static byte_t to_byte(std::any value)
Convert std::any to byte.

◆ to_byte() [2/23]

static byte_t xtd::convert::to_byte ( byte_t  value)
staticnoexcept

Convert byte_t to byte.

Parameters
valueobject to convert.
Returns
A new byte_t object converted from value.
Examples
byte_t value = 42;
byte_t result = convert::to_byte(value);

◆ to_byte() [3/23]

static byte_t xtd::convert::to_byte ( char  value)
staticnoexcept

Convert char to byte.

Parameters
valueobject to convert.
Returns
A new byte_t object converted from value.
Examples
char value = 'a';
byte_t result = convert::to_byte(value);

◆ to_byte() [4/23]

static byte_t xtd::convert::to_byte ( char16_t  value)
static

Convert char16_t to byte.

Parameters
valueobject to convert.
Returns
A new byte_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
char16_t value = u'a';
byte_t result = convert::to_byte(value);

◆ to_byte() [5/23]

static byte_t xtd::convert::to_byte ( char32_t  value)
static

Convert char32_t to byte.

Parameters
valueobject to convert.
Returns
A new byte_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
char32_t value = U'a';
byte_t result = convert::to_byte(value);

◆ to_byte() [6/23]

static byte_t xtd::convert::to_byte ( char8_t  value)
staticnoexcept

Convert char8_t to byte.

Parameters
valueobject to convert.
Returns
A new byte_t object converted from value.
Examples
char8_t value = u8'a';
byte_t result = convert::to_byte(value);

◆ to_byte() [7/23]

static byte_t xtd::convert::to_byte ( const xtd::ustring value)
static

Convert string to byte.

Parameters
valueobject to convert.
Returns
A new byte_t object converted from value.
Exceptions
xtd::atgument_exceptionvalue does not represent a byte.
Examples
ustring value = "42";
byte_t result = convert::to_byte(value);

◆ to_byte() [8/23]

static byte_t xtd::convert::to_byte ( const xtd::ustring value,
byte_t  from_base 
)
static

Convert string to byte.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new byte_t object converted from value.
Exceptions
xtd::atgument_exceptionvalue does not represent a byte.
Examples
ustring value = "42";
byte_t result = convert::to_byte(value);

◆ to_byte() [9/23]

static byte_t xtd::convert::to_byte ( decimal_t  value)
static

Convert decimal_t to byte.

Parameters
valueobject to convert.
Remarks
The result is rounded.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Returns
A new byte_t object converted from value.
Examples
decimal_t value = 42.50l;
byte_t result = convert::to_byte(value);

◆ to_byte() [10/23]

static byte_t xtd::convert::to_byte ( double  value)
static

Convert double to byte.

Parameters
valueobject to convert.
Returns
A new byte_t object converted from value.
Remarks
The result is rounded.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
double value = 42.50;
byte_t result = convert::to_byte(value);

◆ to_byte() [11/23]

static byte_t xtd::convert::to_byte ( float  value)
static

Convert float to byte.

Parameters
valueobject to convert.
Returns
A new byte_t object converted from value.
Remarks
The result is rounded.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
float value = 42.50f;
byte_t result = convert::to_byte(value);

◆ to_byte() [12/23]

static byte_t xtd::convert::to_byte ( int16_t  value)
static

Convert int16_t to byte.

Parameters
valueobject to convert.
Returns
A new byte_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
int16_t value = 42;
byte_t result = convert::to_byte(value);

◆ to_byte() [13/23]

static byte_t xtd::convert::to_byte ( int32_t  value)
static

Convert int32_t to byte.

Parameters
valueobject to convert.
Returns
A new byte_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
int32_t value = 42;
byte_t result = convert::to_byte(value);

◆ to_byte() [14/23]

static byte_t xtd::convert::to_byte ( int64_t  value)
static

Convert int64_t to byte.

Parameters
valueobject to convert.
Returns
A new byte_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
int64_t value = 42l;
byte_t result = convert::to_byte(value);

◆ to_byte() [15/23]

static byte_t xtd::convert::to_byte ( llong_t  value)
static

Convert llong_t to byte.

Parameters
valueobject to convert.
Returns
A new byte_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
llong_t value = 42ll;
byte_t result = convert::to_byte(value);

◆ to_byte() [16/23]

static byte_t xtd::convert::to_byte ( sbyte_t  value)
static

Convert sbyte_t to byte.

Parameters
valueobject to convert.
Returns
A new byte_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is less than 0.
Examples
sbyte_t value = 42;
byte_t result = convert::to_byte(value);

◆ to_byte() [17/23]

static byte_t xtd::convert::to_byte ( std::any  value)
static

Convert std::any to byte.

Parameters
valueobject to convert.
Returns
A new byte_t object converted from value.
Examples
std::any value = 42;
byte_t result = convert::to_byte(value);

◆ to_byte() [18/23]

template<typename type_t >
static byte_t xtd::convert::to_byte ( type_t  value)
inlinestaticnoexcept

Convert type_t to byte.

Parameters
valueobject to convert.
Returns
A new byte_t object converted from value.
Examples
address_family value = address_family::inter_network;
byte_t result = convert::to_byte(value);

◆ to_byte() [19/23]

static byte_t xtd::convert::to_byte ( uint16_t  value)
static

Convert uint16_t to byte.

Parameters
valueobject to convert.
Returns
A new byte_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max().
Examples
uint16_t value = 42u;
byte_t result = convert::to_byte(value);

◆ to_byte() [20/23]

static byte_t xtd::convert::to_byte ( uint32_t  value)
static

Convert uint32_t to byte.

Parameters
valueobject to convert.
Returns
A new byte_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max().
Examples
uint32_t value = 42u;
byte_t result = convert::to_byte(value);

◆ to_byte() [21/23]

static byte_t xtd::convert::to_byte ( uint64_t  value)
static

Convert uint64_t to byte.

Parameters
valueobject to convert.
Returns
A new byte_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max().
Examples
uint64t value = 42ul;
byte_t result = convert::to_byte(value);

◆ to_byte() [22/23]

static byte_t xtd::convert::to_byte ( ullong_t  value)
static

Convert llong_t to byte.

Parameters
valueobject to convert.
Returns
A new byte_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max().
Examples
ullong_t value = 42ull;
byte_t result = convert::to_byte(value);

◆ to_byte() [23/23]

static byte_t xtd::convert::to_byte ( wchar_t  value)
static

Convert char32_t to byte.

Parameters
valueobject to convert.
Returns
A new byte_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
wchar_t value = L'a';
byte_t result = convert::to_byte(value);

◆ to_char() [1/22]

static char xtd::convert::to_char ( bool  value)
static

Convert bool to char.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Examples
bool value = true;
char result = convert::to_char(value);
static char to_char(std::any value)
Convert std::any to char.

◆ to_char() [2/22]

static char xtd::convert::to_char ( byte_t  value)
staticnoexcept

Convert byte_t to char.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Examples
byte_t value = 42;
char result = convert::to_char(value);

◆ to_char() [3/22]

static char xtd::convert::to_char ( char  value)
staticnoexcept

Convert char to char.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Examples
char value = 'a';
char result = convert::to_char(value);

◆ to_char() [4/22]

static char xtd::convert::to_char ( char16_t  value)
static

Convert char16_t to char.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
char16_t value = u'a';
char result = convert::to_char(value);

◆ to_char() [5/22]

static char xtd::convert::to_char ( char32_t  value)
static

Convert char32_t to char.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
char32_t value = U'a';
char result = convert::to_char(value);

◆ to_char() [6/22]

static char xtd::convert::to_char ( char8_t  value)
staticnoexcept

Convert char8_t to char.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Examples
char8_t value = u8'a';
char result = convert::to_char(value);

◆ to_char() [7/22]

static char xtd::convert::to_char ( const xtd::ustring value)
static

Convert string to char.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Exceptions
xtd::atgument_exceptionvalue does not represent a byte.
Examples
ustring value = "42";
char result = convert::to_char(value);

◆ to_char() [8/22]

static char xtd::convert::to_char ( decimal_t  value)
static

Convert decimal_t to char.

Parameters
valueobject to convert.
Remarks
The result is rounded.
Returns
A new char object converted from value.
Examples
decimal_t value = 42.50l;
char result = convert::to_char(value);

◆ to_char() [9/22]

static char xtd::convert::to_char ( double  value)
static

Convert double to char.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Remarks
The result is rounded.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
double value = 42.50;
char result = convert::to_char(value);

◆ to_char() [10/22]

static char xtd::convert::to_char ( float  value)
static

Convert float to char.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Remarks
The result is rounded.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
float value = 42.50f;
char result = convert::to_char(value);

◆ to_char() [11/22]

static char xtd::convert::to_char ( int16_t  value)
static

Convert int16_t to char.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
int16_t value = 42;
char result = convert::to_char(value);

◆ to_char() [12/22]

static char xtd::convert::to_char ( int32_t  value)
static

Convert int32_t to char.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
int32_t value = 42;
char result = convert::to_char(value);

◆ to_char() [13/22]

static char xtd::convert::to_char ( int64_t  value)
static

Convert int64_t to char.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
int64_t value = 42l;
char result = convert::to_char(value);

◆ to_char() [14/22]

static char xtd::convert::to_char ( llong_t  value)
static

Convert llong_t to char.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
llong_t value = 42ll;
char result = convert::to_char(value);

◆ to_char() [15/22]

static char xtd::convert::to_char ( sbyte_t  value)
static

Convert sbyte_t to char.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is less than 0.
Examples
sbyte_t value = 42;
char result = convert::to_char(value);

◆ to_char() [16/22]

static char xtd::convert::to_char ( std::any  value)
static

Convert std::any to char.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Examples
std::any value = 42;
char result = convert::to_char(value);

◆ to_char() [17/22]

template<typename type_t >
static char xtd::convert::to_char ( type_t  value)
inlinestaticnoexcept

Convert type_t to char.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Examples
address_family value = address_family::inter_network;
char result = convert::to_char(value);

◆ to_char() [18/22]

static char xtd::convert::to_char ( uint16_t  value)
static

Convert uint16_t to char.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max().
Examples
uint16_t value = 42u;
char result = convert::to_char(value);

◆ to_char() [19/22]

static char xtd::convert::to_char ( uint32_t  value)
static

Convert uint32_t to char.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max().
Examples
uint32_t value = 42u;
char result = convert::to_char(value);

◆ to_char() [20/22]

static char xtd::convert::to_char ( uint64_t  value)
static

Convert uint64_t to char.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max().
Examples
uint64t value = 42ul;
char result = convert::to_char(value);

◆ to_char() [21/22]

static char xtd::convert::to_char ( ullong_t  value)
static

Convert llong_t to char.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max().
Examples
ullong_t value = 42ull;
char result = convert::to_char(value);

◆ to_char() [22/22]

static char xtd::convert::to_char ( wchar_t  value)
static

Convert char32_t to char.

Parameters
valueobject to convert.
Returns
A new char object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
wchar_t value = L'a';
char result = convert::to_char(value);

◆ to_char16() [1/22]

static char16_t xtd::convert::to_char16 ( bool  value)
static

Convert bool to char16.

Parameters
valueobject to convert.
Returns
A new char16_t object converted from value.
Examples
bool value = true;
char16_t result = convert::to_char16(value);
static char16_t to_char16(std::any value)
Convert std::any to char16.

◆ to_char16() [2/22]

static char16_t xtd::convert::to_char16 ( byte_t  value)
staticnoexcept

Convert byte_t to char16.

Parameters
valueobject to convert.
Returns
A new char16_t object converted from value.
Examples
byte_t value = 42;
char16_t result = convert::to_char16(value);

◆ to_char16() [3/22]

static char16_t xtd::convert::to_char16 ( char  value)
staticnoexcept

Convert char to char16.

Parameters
valueobject to convert.
Returns
A new char16_t object converted from value.
Examples
char value = 'a';
char16_t result = convert::to_char16(value);

◆ to_char16() [4/22]

static char16_t xtd::convert::to_char16 ( char16_t  value)
staticnoexcept

Convert char16_t to char16.

Parameters
valueobject to convert.
Returns
A new char16_t object converted from value.
Examples
char16_t value = u'a';
char16_t result = convert::to_char16(value);

◆ to_char16() [5/22]

static char16_t xtd::convert::to_char16 ( char32_t  value)
static

Convert char32_t to char16.

Parameters
valueobject to convert.
Returns
A new char16_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
char32_t value = U'a';
char16_t result = convert::to_char16(value);

◆ to_char16() [6/22]

static char16_t xtd::convert::to_char16 ( char8_t  value)
staticnoexcept

Convert char8_t to char16.

Parameters
valueobject to convert.
Returns
A new char16_t object converted from value.
Examples
char8_t value = u8'a';
char16_t result = convert::to_char16(value);

◆ to_char16() [7/22]

static char16_t xtd::convert::to_char16 ( const xtd::ustring value)
static

Convert string to char16.

Parameters
valueobject to convert.
Returns
A new char16_t object converted from value.
Exceptions
xtd::atgument_exceptionvalue does not represent a byte.
Examples
ustring value = "42";
char16_t result = convert::to_char16(value);

◆ to_char16() [8/22]

static char16_t xtd::convert::to_char16 ( decimal_t  value)
static

Convert decimal_t to char16.

Parameters
valueobject to convert.
Remarks
The result is rounded.
Returns
A new char16_t object converted from value.
Examples
decimal_t value = 42.50l;
char16_t result = convert::to_char16(value);

◆ to_char16() [9/22]

static char16_t xtd::convert::to_char16 ( double  value)
static

Convert double to char16.

Parameters
valueobject to convert.
Returns
A new char16_t object converted from value.
Remarks
The result is rounded.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
double value = 42.50;
char16_t result = convert::to_char16(value);

◆ to_char16() [10/22]

static char16_t xtd::convert::to_char16 ( float  value)
static

Convert float to char16.

Parameters
valueobject to convert.
Returns
A new char16_t object converted from value.
Remarks
The result is rounded.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
float value = 42.50f;
char16_t result = convert::to_char16(value);

◆ to_char16() [11/22]

static char16_t xtd::convert::to_char16 ( int16_t  value)
static

Convert int16_t to char16.

Parameters
valueobject to convert.
Returns
A new char16_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
int16_t value = 42;
char16_t result = convert::to_char16(value);

◆ to_char16() [12/22]

static char16_t xtd::convert::to_char16 ( int32_t  value)
static

Convert int32_t to char16.

Parameters
valueobject to convert.
Returns
A new char16_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
int32_t value = 42;
char16_t result = convert::to_char16(value);

◆ to_char16() [13/22]

static char16_t xtd::convert::to_char16 ( int64_t  value)
static

Convert int64_t to char16.

Parameters
valueobject to convert.
Returns
A new char16_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
int64_t value = 42l;
char16_t result = convert::to_char16(value);

◆ to_char16() [14/22]

static char16_t xtd::convert::to_char16 ( llong_t  value)
static

Convert llong_t to char16.

Parameters
valueobject to convert.
Returns
A new char16_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
llong_t value = 42ll;
char16_t result = convert::to_char16(value);

◆ to_char16() [15/22]

static char16_t xtd::convert::to_char16 ( sbyte_t  value)
static

Convert sbyte_t to char16.

Parameters
valueobject to convert.
Returns
A new char16_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is less than 0.
Examples
sbyte_t value = 42;
char16_t result = convert::to_char16(value);

◆ to_char16() [16/22]

static char16_t xtd::convert::to_char16 ( std::any  value)
static

Convert std::any to char16.

Parameters
valueobject to convert.
Returns
A new char16_t object converted from value.
Examples
std::any value = 42;
char16_t result = convert::to_char16(value);

◆ to_char16() [17/22]

template<typename type_t >
static char16_t xtd::convert::to_char16 ( type_t  value)
inlinestaticnoexcept

Convert type_t to char16.

Parameters
valueobject to convert.
Returns
A new char16_t object converted from value.
Examples
address_family value = address_family::inter_network;
char16_t result = convert::to_char16(value);

◆ to_char16() [18/22]

static char16_t xtd::convert::to_char16 ( uint16_t  value)
staticnoexcept

Convert uint16_t to char16.

Parameters
valueobject to convert.
Returns
A new char16_t object converted from value.
Examples
uint16_t value = 42u;
char16_t result = convert::to_char16(value);

◆ to_char16() [19/22]

static char16_t xtd::convert::to_char16 ( uint32_t  value)
static

Convert uint32_t to char16.

Parameters
valueobject to convert.
Returns
A new char16_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max().
Examples
uint32_t value = 42u;
char16_t result = convert::to_char16(value);

◆ to_char16() [20/22]

static char16_t xtd::convert::to_char16 ( uint64_t  value)
static

Convert uint64_t to char16.

Parameters
valueobject to convert.
Returns
A new char16_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max().
Examples
uint64t value = 42ul;
char16_t result = convert::to_char16(value);

◆ to_char16() [21/22]

static char16_t xtd::convert::to_char16 ( ullong_t  value)
static

Convert llong_t to char16.

Parameters
valueobject to convert.
Returns
A new char16_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max().
Examples
ullong_t value = 42ull;
char16_t result = convert::to_char16(value);

◆ to_char16() [22/22]

static char16_t xtd::convert::to_char16 ( wchar_t  value)
staticnoexcept

Convert char32_t to char16.

Parameters
valueobject to convert.
Returns
A new char16_t object converted from value.
Examples
wchar_t value = L'a';
char16_t result = convert::to_char16(value);

◆ to_char32() [1/22]

static char32_t xtd::convert::to_char32 ( bool  value)
static

Convert bool to char32.

Parameters
valueobject to convert.
Returns
A new char32_t object converted from value.
Examples
bool value = true;
char32_t result = convert::to_char32(value);
static char32_t to_char32(std::any value)
Convert std::any to char32.

◆ to_char32() [2/22]

static char32_t xtd::convert::to_char32 ( byte_t  value)
staticnoexcept

Convert byte_t to char32.

Parameters
valueobject to convert.
Returns
A new char32_t object converted from value.
Examples
byte_t value = 42;
char32_t result = convert::to_char32(value);

◆ to_char32() [3/22]

static char32_t xtd::convert::to_char32 ( char  value)
staticnoexcept

Convert char to char32.

Parameters
valueobject to convert.
Returns
A new char32_t object converted from value.
Examples
char value = 'a';
char32_t result = convert::to_char32(value);

◆ to_char32() [4/22]

static char32_t xtd::convert::to_char32 ( char16_t  value)
staticnoexcept

Convert char16_t to char32.

Parameters
valueobject to convert.
Returns
A new char32_t object converted from value.
Examples
char16_t value = u'a';
char32_t result = convert::to_char32(value);

◆ to_char32() [5/22]

static char32_t xtd::convert::to_char32 ( char32_t  value)
staticnoexcept

Convert char32_t to char32.

Parameters
valueobject to convert.
Returns
A new char32_t object converted from value.
Examples
char32_t value = U'a';
char32_t result = convert::to_char32(value);

◆ to_char32() [6/22]

static char32_t xtd::convert::to_char32 ( char8_t  value)
staticnoexcept

Convert char8_t to char32.

Parameters
valueobject to convert.
Returns
A new char32_t object converted from value.
Examples
char8_t value = u8'a';
char32_t result = convert::to_char32(value);

◆ to_char32() [7/22]

static char32_t xtd::convert::to_char32 ( const xtd::ustring value)
static

Convert string to char32.

Parameters
valueobject to convert.
Returns
A new char32_t object converted from value.
Exceptions
xtd::atgument_exceptionvalue does not represent a byte.
Examples
ustring value = "42";
char32_t result = convert::to_char32(value);

◆ to_char32() [8/22]

static char32_t xtd::convert::to_char32 ( decimal_t  value)
static

Convert decimal_t to char32.

Parameters
valueobject to convert.
Remarks
The result is rounded.
Returns
A new char32_t object converted from value.
Examples
decimal_t value = 42.50l;
char32_t result = convert::to_char32(value);

◆ to_char32() [9/22]

static char32_t xtd::convert::to_char32 ( double  value)
static

Convert double to char32.

Parameters
valueobject to convert.
Returns
A new char32_t object converted from value.
Remarks
The result is rounded.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
double value = 42.50;
char32_t result = convert::to_char32(value);

◆ to_char32() [10/22]

static char32_t xtd::convert::to_char32 ( float  value)
static

Convert float to char32.

Parameters
valueobject to convert.
Returns
A new char32_t object converted from value.
Remarks
The result is rounded.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
float value = 42.50f;
char32_t result = convert::to_char32(value);

◆ to_char32() [11/22]

static char32_t xtd::convert::to_char32 ( int16_t  value)
static

Convert int16_t to char32.

Parameters
valueobject to convert.
Returns
A new char32_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
int16_t value = 42;
char32_t result = convert::to_char32(value);

◆ to_char32() [12/22]

static char32_t xtd::convert::to_char32 ( int32_t  value)
static

Convert int32_t to char32.

Parameters
valueobject to convert.
Returns
A new char32_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
int32_t value = 42;
char32_t result = convert::to_char32(value);

◆ to_char32() [13/22]

static char32_t xtd::convert::to_char32 ( int64_t  value)
static

Convert int64_t to char32.

Parameters
valueobject to convert.
Returns
A new char32_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
int64_t value = 42l;
char32_t result = convert::to_char32(value);

◆ to_char32() [14/22]

static char32_t xtd::convert::to_char32 ( llong_t  value)
static

Convert llong_t to char32.

Parameters
valueobject to convert.
Returns
A new char32_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
llong_t value = 42ll;
char32_t result = convert::to_char32(value);

◆ to_char32() [15/22]

static char32_t xtd::convert::to_char32 ( sbyte_t  value)
static

Convert sbyte_t to char32.

Parameters
valueobject to convert.
Returns
A new char32_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is less than 0.
Examples
sbyte_t value = 42;
char32_t result = convert::to_char32(value);

◆ to_char32() [16/22]

static char32_t xtd::convert::to_char32 ( std::any  value)
static

Convert std::any to char32.

Parameters
valueobject to convert.
Returns
A new char32_t object converted from value.
Examples
std::any value = 42;
char32_t result = convert::to_char32(value);

◆ to_char32() [17/22]

template<typename type_t >
static char32_t xtd::convert::to_char32 ( type_t  value)
inlinestaticnoexcept

Convert type_t to char32.

Parameters
valueobject to convert.
Returns
A new char32_t object converted from value.
Examples
address_family value = address_family::inter_network;
char32_t result = convert::to_char32(value);

◆ to_char32() [18/22]

static char32_t xtd::convert::to_char32 ( uint16_t  value)
staticnoexcept

Convert uint16_t to char32.

Parameters
valueobject to convert.
Returns
A new char32_t object converted from value.
Examples
uint16_t value = 42u;
char32_t result = convert::to_char32(value);

◆ to_char32() [19/22]

static char32_t xtd::convert::to_char32 ( uint32_t  value)
staticnoexcept

Convert uint32_t to char32.

Parameters
valueobject to convert.
Returns
A new char32_t object converted from value.
Examples
uint32_t value = 42u;
char32_t result = convert::to_char32(value);

◆ to_char32() [20/22]

static char32_t xtd::convert::to_char32 ( uint64_t  value)
static

Convert uint64_t to char32.

Parameters
valueobject to convert.
Returns
A new char32_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max().
Examples
uint64t value = 42ul;
char32_t result = convert::to_char32(value);

◆ to_char32() [21/22]

static char32_t xtd::convert::to_char32 ( ullong_t  value)
static

Convert llong_t to char32.

Parameters
valueobject to convert.
Returns
A new char32_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max().
Examples
ullong_t value = 42ull;
char32_t result = convert::to_char32(value);

◆ to_char32() [22/22]

static char32_t xtd::convert::to_char32 ( wchar_t  value)
staticnoexcept

Convert char32_t to char32.

Parameters
valueobject to convert.
Returns
A new char32_t object converted from value.
Examples
wchar_t value = L'a';
char32_t result = convert::to_char32(value);

◆ to_char8() [1/22]

static char8_t xtd::convert::to_char8 ( bool  value)
static

Convert bool to char8.

Parameters
valueobject to convert.
Returns
A new char8_t object converted from value.
Examples
bool value = true;
char8_t result = convert::to_char8(value);
static char8_t to_char8(std::any value)
Convert std::any to char8.

◆ to_char8() [2/22]

static char8_t xtd::convert::to_char8 ( byte_t  value)
staticnoexcept

Convert byte_t to char8.

Parameters
valueobject to convert.
Returns
A new char8_t object converted from value.
Examples
byte_t value = 42;
char8_t result = convert::to_char8(value);

◆ to_char8() [3/22]

static char8_t xtd::convert::to_char8 ( char  value)
staticnoexcept

Convert char to char8.

Parameters
valueobject to convert.
Returns
A new char8_t object converted from value.
Examples
char value = 'a';
char8_t result = convert::to_char8(value);

◆ to_char8() [4/22]

static char8_t xtd::convert::to_char8 ( char16_t  value)
static

Convert char16_t to char8.

Parameters
valueobject to convert.
Returns
A new char8_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
char16_t value = u'a';
char8_t result = convert::to_char8(value);

◆ to_char8() [5/22]

static char8_t xtd::convert::to_char8 ( char32_t  value)
static

Convert char32_t to char8.

Parameters
valueobject to convert.
Returns
A new char8_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
char32_t value = U'a';
char8_t result = convert::to_char8(value);

◆ to_char8() [6/22]

static char8_t xtd::convert::to_char8 ( char8_t  value)
staticnoexcept

Convert char8_t to char8.

Parameters
valueobject to convert.
Returns
A new char8_t object converted from value.
Examples
char8_t value = u8'a';
char8_t result = convert::to_char8(value);

◆ to_char8() [7/22]

static char8_t xtd::convert::to_char8 ( const xtd::ustring value)
static

Convert string to char8.

Parameters
valueobject to convert.
Returns
A new char8_t object converted from value.
Exceptions
xtd::atgument_exceptionvalue does not represent a byte.
Examples
ustring value = "42";
char8_t result = convert::to_char8(value);

◆ to_char8() [8/22]

static char8_t xtd::convert::to_char8 ( decimal_t  value)
static

Convert decimal_t to char8.

Parameters
valueobject to convert.
Remarks
The result is rounded.
Returns
A new char8_t object converted from value.
Examples
decimal_t value = 42.50l;
char8_t result = convert::to_char8(value);

◆ to_char8() [9/22]

static char8_t xtd::convert::to_char8 ( double  value)
static

Convert double to char8.

Parameters
valueobject to convert.
Returns
A new char8_t object converted from value.
Remarks
The result is rounded.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
double value = 42.50;
char8_t result = convert::to_char8(value);

◆ to_char8() [10/22]

static char8_t xtd::convert::to_char8 ( float  value)
static

Convert float to char8.

Parameters
valueobject to convert.
Returns
A new char8_t object converted from value.
Remarks
The result is rounded.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
float value = 42.50f;
char8_t result = convert::to_char8(value);

◆ to_char8() [11/22]

static char8_t xtd::convert::to_char8 ( int16_t  value)
static

Convert int16_t to char8.

Parameters
valueobject to convert.
Returns
A new char8_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
int16_t value = 42;
char8_t result = convert::to_char8(value);

◆ to_char8() [12/22]

static char8_t xtd::convert::to_char8 ( int32_t  value)
static

Convert int32_t to char8.

Parameters
valueobject to convert.
Returns
A new char8_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
int32_t value = 42;
char8_t result = convert::to_char8(value);

◆ to_char8() [13/22]

static char8_t xtd::convert::to_char8 ( int64_t  value)
static

Convert int64_t to char8.

Parameters
valueobject to convert.
Returns
A new char8_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
int64_t value = 42l;
char8_t result = convert::to_char8(value);

◆ to_char8() [14/22]

static char8_t xtd::convert::to_char8 ( llong_t  value)
static

Convert llong_t to char8.

Parameters
valueobject to convert.
Returns
A new char8_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
llong_t value = 42ll;
char8_t result = convert::to_char8(value);

◆ to_char8() [15/22]

static char8_t xtd::convert::to_char8 ( sbyte_t  value)
static

Convert sbyte_t to char8.

Parameters
valueobject to convert.
Returns
A new char8_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is less than 0.
Examples
sbyte_t value = 42;
char8_t result = convert::to_char8(value);

◆ to_char8() [16/22]

static char8_t xtd::convert::to_char8 ( std::any  value)
static

Convert std::any to char8.

Parameters
valueobject to convert.
Returns
A new char8_t object converted from value.
Examples
std::any value = 42;
char8_t result = convert::to_char8(value);

◆ to_char8() [17/22]

template<typename type_t >
static char8_t xtd::convert::to_char8 ( type_t  value)
inlinestaticnoexcept

Convert type_t to char8.

Parameters
valueobject to convert.
Returns
A new char8_t object converted from value.
Examples
address_family value = address_family::inter_network;
char8_t result = convert::to_char8(value);

◆ to_char8() [18/22]

static char8_t xtd::convert::to_char8 ( uint16_t  value)
static

Convert uint16_t to char8.

Parameters
valueobject to convert.
Returns
A new char8_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max().
Examples
uint16_t value = 42u;
char8_t result = convert::to_char8(value);

◆ to_char8() [19/22]

static char8_t xtd::convert::to_char8 ( uint32_t  value)
static

Convert uint32_t to char8.

Parameters
valueobject to convert.
Returns
A new char8_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max().
Examples
uint32_t value = 42u;
char8_t result = convert::to_char8(value);

◆ to_char8() [20/22]

static char8_t xtd::convert::to_char8 ( uint64_t  value)
static

Convert uint64_t to char8.

Parameters
valueobject to convert.
Returns
A new char8_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max().
Examples
uint64t value = 42ul;
char8_t result = convert::to_char8(value);

◆ to_char8() [21/22]

static char8_t xtd::convert::to_char8 ( ullong_t  value)
static

Convert llong_t to char8.

Parameters
valueobject to convert.
Returns
A new char8_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max().
Examples
ullong_t value = 42ull;
char8_t result = convert::to_char8(value);

◆ to_char8() [22/22]

static char8_t xtd::convert::to_char8 ( wchar_t  value)
static

Convert char32_t to char8.

Parameters
valueobject to convert.
Returns
A new char8_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
wchar_t value = L'a';
char8_t result = convert::to_char8(value);

◆ to_decimal() [1/22]

static decimal_t xtd::convert::to_decimal ( bool  value)
staticnoexcept

Convert bool to decimal.

Parameters
valueobject to convert.
Returns
A new decimal_t object converted from value.
Examples
bool value = true;
decimal_t result = convert::to_decimal(value);
static decimal_t to_decimal(std::any value)
Convert std::any to decimal.

◆ to_decimal() [2/22]

static decimal_t xtd::convert::to_decimal ( byte_t  value)
staticnoexcept

Convert byte_t to decimal.

Parameters
valueobject to convert.
Returns
A new decimal_t object converted from value.
Examples
byte_t value = 42;
decimal_t result = convert::to_decimal(value);

◆ to_decimal() [3/22]

static decimal_t xtd::convert::to_decimal ( char  value)
staticnoexcept

Convert char to decimal.

Parameters
valueobject to convert.
Returns
A new decimal_t object converted from value.
Examples
char value = 'a';
decimal_t result = convert::to_decimal(value);

◆ to_decimal() [4/22]

static decimal_t xtd::convert::to_decimal ( char16_t  value)
staticnoexcept

Convert char16_t to decimal.

Parameters
valueobject to convert.
Returns
A new decimal_t object converted from value.
Examples
char16_t value = u'a';
decimal_t result = convert::to_decimal(value);

◆ to_decimal() [5/22]

static decimal_t xtd::convert::to_decimal ( char32_t  value)
staticnoexcept

Convert char32_t to decimal.

Parameters
valueobject to convert.
Returns
A new decimal_t object converted from value.
Examples
char32_t value = U'a';
decimal_t result = convert::to_decimal(value);

◆ to_decimal() [6/22]

static decimal_t xtd::convert::to_decimal ( char8_t  value)
staticnoexcept

Convert char8_t to decimal.

Parameters
valueobject to convert.
Returns
A new decimal_t object converted from value.
Examples
char8_t value = u8'a';
decimal_t result = convert::to_decimal(value);

◆ to_decimal() [7/22]

static decimal_t xtd::convert::to_decimal ( const xtd::ustring value)
static

Convert string to decimal.

Parameters
valueobject to convert.
Returns
A new decimal_t object converted from value.
Exceptions
xtd::atgument_exceptionvalue does not represent a byte.
Examples
ustring value = "42";
decimal_t result = convert::to_decimal(value);

◆ to_decimal() [8/22]

static decimal_t xtd::convert::to_decimal ( decimal_t  value)
staticnoexcept

Convert decimal_t to decimal.

Parameters
valueobject to convert.
Remarks
The result is rounded.
Returns
A new decimal_t object converted from value.
Examples
decimal_t value = 42.50l;
decimal_t result = convert::to_decimal(value);

◆ to_decimal() [9/22]

static decimal_t xtd::convert::to_decimal ( double  value)
staticnoexcept

Convert double to decimal.

Parameters
valueobject to convert.
Returns
A new decimal_t object converted from value.
Remarks
The result is rounded.
Examples
double value = 42.50;
decimal_t result = convert::to_decimal(value);

◆ to_decimal() [10/22]

static decimal_t xtd::convert::to_decimal ( float  value)
staticnoexcept

Convert float to decimal.

Parameters
valueobject to convert.
Returns
A new decimal_t object converted from value.
Remarks
The result is rounded.
Examples
float value = 42.50f;
decimal_t result = convert::to_decimal(value);

◆ to_decimal() [11/22]

static decimal_t xtd::convert::to_decimal ( int16_t  value)
staticnoexcept

Convert int16_t to decimal.

Parameters
valueobject to convert.
Returns
A new decimal_t object converted from value.
Examples
int16_t value = 42;
decimal_t result = convert::to_decimal(value);

◆ to_decimal() [12/22]

static decimal_t xtd::convert::to_decimal ( int32_t  value)
staticnoexcept

Convert int32_t to decimal.

Parameters
valueobject to convert.
Returns
A new decimal_t object converted from value.
Examples
int32_t value = 42;
decimal_t result = convert::to_decimal(value);

◆ to_decimal() [13/22]

static decimal_t xtd::convert::to_decimal ( int64_t  value)
staticnoexcept

Convert int64_t to decimal.

Parameters
valueobject to convert.
Returns
A new decimal_t object converted from value.
Examples
int64_t value = 42l;
decimal_t result = convert::to_decimal(value);

◆ to_decimal() [14/22]

static decimal_t xtd::convert::to_decimal ( llong_t  value)
staticnoexcept

Convert llong_t to decimal.

Parameters
valueobject to convert.
Returns
A new decimal_t object converted from value.
Examples
llong_t value = 42ll;
decimal_t result = convert::to_decimal(value);

◆ to_decimal() [15/22]

static decimal_t xtd::convert::to_decimal ( sbyte_t  value)
staticnoexcept

Convert sbyte_t to decimal.

Parameters
valueobject to convert.
Returns
A new decimal_t object converted from value.
Examples
sbyte_t value = 42;
decimal_t result = convert::to_decimal(value);

◆ to_decimal() [16/22]

static decimal_t xtd::convert::to_decimal ( std::any  value)
static

Convert std::any to decimal.

Parameters
valueobject to convert.
Returns
A new decimal_t object converted from value.
Examples
std::any value = 42;
decimal_t result = convert::to_decimal(value);

◆ to_decimal() [17/22]

template<typename type_t >
static decimal_t xtd::convert::to_decimal ( type_t  value)
inlinestaticnoexcept

Convert type_t to decimal.

Parameters
valueobject to convert.
Returns
A new decimal_t object converted from value.
Examples
address_family value = address_family::inter_network;
decimal_t result = convert::to_decimal(value);

◆ to_decimal() [18/22]

static decimal_t xtd::convert::to_decimal ( uint16_t  value)
staticnoexcept

Convert uint16_t to decimal.

Parameters
valueobject to convert.
Returns
A new decimal_t object converted from value.
Examples
uint16_t value = 42u;
decimal_t result = convert::to_decimal(value);

◆ to_decimal() [19/22]

static decimal_t xtd::convert::to_decimal ( uint32_t  value)
staticnoexcept

Convert uint32_t to decimal.

Parameters
valueobject to convert.
Returns
A new decimal_t object converted from value.
Examples
uint32_t value = 42u;
decimal_t result = convert::to_decimal(value);

◆ to_decimal() [20/22]

static decimal_t xtd::convert::to_decimal ( uint64_t  value)
staticnoexcept

Convert uint64_t to decimal.

Parameters
valueobject to convert.
Returns
A new decimal_t object converted from value.
Examples
uint64t value = 42ul;
decimal_t result = convert::to_decimal(value);

◆ to_decimal() [21/22]

static decimal_t xtd::convert::to_decimal ( ullong_t  value)
staticnoexcept

Convert llong_t to decimal.

Parameters
valueobject to convert.
Returns
A new decimal_t object converted from value.
Examples
ullong_t value = 42ull;
decimal_t result = convert::to_decimal(value);

◆ to_decimal() [22/22]

static decimal_t xtd::convert::to_decimal ( wchar_t  value)
staticnoexcept

Convert char32_t to decimal.

Parameters
valueobject to convert.
Returns
A new decimal_t object converted from value.
Examples
wchar_t value = L'a';
decimal_t result = convert::to_decimal(value);

◆ to_double() [1/22]

static double xtd::convert::to_double ( bool  value)
staticnoexcept

Convert bool to double.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Examples
bool value = true;
double result = convert::to_double(value);
static double to_double(std::any value)
Convert std::any to double.

◆ to_double() [2/22]

static double xtd::convert::to_double ( byte_t  value)
staticnoexcept

Convert byte_t to double.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Examples
byte_t value = 42;
double result = convert::to_double(value);

◆ to_double() [3/22]

static double xtd::convert::to_double ( char  value)
staticnoexcept

Convert char to double.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Examples
char value = 'a';
double result = convert::to_double(value);

◆ to_double() [4/22]

static double xtd::convert::to_double ( char16_t  value)
staticnoexcept

Convert char16_t to double.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Examples
char16_t value = u'a';
double result = convert::to_double(value);

◆ to_double() [5/22]

static double xtd::convert::to_double ( char32_t  value)
staticnoexcept

Convert char32_t to double.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Examples
char32_t value = U'a';
double result = convert::to_double(value);

◆ to_double() [6/22]

static double xtd::convert::to_double ( char8_t  value)
staticnoexcept

Convert char8_t to double.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Examples
char8_t value = u8'a';
double result = convert::to_double(value);

◆ to_double() [7/22]

static double xtd::convert::to_double ( const xtd::ustring value)
static

Convert string to double.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Exceptions
xtd::atgument_exceptionvalue does not represent a byte.
Examples
ustring value = "42";
double result = convert::to_double(value);

◆ to_double() [8/22]

static double xtd::convert::to_double ( decimal_t  value)
staticnoexcept

Convert decimal_t to double.

Parameters
valueobject to convert.
Remarks
The result is rounded.
Returns
A new double object converted from value.
Examples
decimal_t value = 42.50l;
double result = convert::to_double(value);

◆ to_double() [9/22]

static double xtd::convert::to_double ( double  value)
staticnoexcept

Convert double to double.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Remarks
The result is rounded.
Examples
double value = 42.50;
double result = convert::to_double(value);

◆ to_double() [10/22]

static double xtd::convert::to_double ( float  value)
staticnoexcept

Convert float to double.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Remarks
The result is rounded.
Examples
float value = 42.50f;
double result = convert::to_double(value);

◆ to_double() [11/22]

static double xtd::convert::to_double ( int16_t  value)
staticnoexcept

Convert int16_t to double.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Examples
int16_t value = 42;
double result = convert::to_double(value);

◆ to_double() [12/22]

static double xtd::convert::to_double ( int32_t  value)
staticnoexcept

Convert int32_t to double.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Examples
int32_t value = 42;
double result = convert::to_double(value);

◆ to_double() [13/22]

static double xtd::convert::to_double ( int64_t  value)
staticnoexcept

Convert int64_t to double.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Examples
int64_t value = 42l;
double result = convert::to_double(value);

◆ to_double() [14/22]

static double xtd::convert::to_double ( llong_t  value)
staticnoexcept

Convert llong_t to double.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Examples
llong_t value = 42ll;
double result = convert::to_double(value);

◆ to_double() [15/22]

static double xtd::convert::to_double ( sbyte_t  value)
staticnoexcept

Convert sbyte_t to double.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Examples
sbyte_t value = 42;
double result = convert::to_double(value);

◆ to_double() [16/22]

static double xtd::convert::to_double ( std::any  value)
static

Convert std::any to double.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Examples
std::any value = 42;
double result = convert::to_double(value);

◆ to_double() [17/22]

template<typename type_t >
static double xtd::convert::to_double ( type_t  value)
inlinestaticnoexcept

Convert type_t to double.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Examples
address_family value = address_family::inter_network;
double result = convert::to_double(value);

◆ to_double() [18/22]

static double xtd::convert::to_double ( uint16_t  value)
staticnoexcept

Convert uint16_t to double.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Examples
uint16_t value = 42u;
double result = convert::to_double(value);

◆ to_double() [19/22]

static double xtd::convert::to_double ( uint32_t  value)
staticnoexcept

Convert uint32_t to double.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Examples
uint32_t value = 42u;
double result = convert::to_double(value);

◆ to_double() [20/22]

static double xtd::convert::to_double ( uint64_t  value)
staticnoexcept

Convert uint64_t to double.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Examples
uint64t value = 42ul;
double result = convert::to_double(value);

◆ to_double() [21/22]

static double xtd::convert::to_double ( ullong_t  value)
staticnoexcept

Convert llong_t to double.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Examples
ullong_t value = 42ull;
double result = convert::to_double(value);

◆ to_double() [22/22]

static double xtd::convert::to_double ( wchar_t  value)
staticnoexcept

Convert char32_t to double.

Parameters
valueobject to convert.
Returns
A new double object converted from value.
Examples
wchar_t value = L'a';
double result = convert::to_double(value);

◆ to_int16() [1/23]

static int16_t xtd::convert::to_int16 ( bool  value)
staticnoexcept

Convert bool to int16.

Parameters
valueobject to convert.
Returns
A new int16_t object converted from value.
Examples
bool value = true;
int16_t result = convert::to_int16(value);
static int16_t to_int16(std::any value)
Convert std::any to int16.

◆ to_int16() [2/23]

static int16_t xtd::convert::to_int16 ( byte_t  value)
staticnoexcept

Convert byte_t to int16.

Parameters
valueobject to convert.
Returns
A new int16_t object converted from value.
Examples
byte_t value = 42;
int16_t result = convert::to_int16(value);

◆ to_int16() [3/23]

static int16_t xtd::convert::to_int16 ( char  value)
staticnoexcept

Convert char to int16.

Parameters
valueobject to convert.
Returns
A new int16_t object converted from value.
Examples
char value = 'a';
int16_t result = convert::to_int16(value);

◆ to_int16() [4/23]

static int16_t xtd::convert::to_int16 ( char16_t  value)
staticnoexcept

Convert char16_t to int16.

Parameters
valueobject to convert.
Returns
A new int16_t object converted from value.
Examples
char16_t value = u'a';
int16_t result = convert::to_int16(value);

◆ to_int16() [5/23]

static int16_t xtd::convert::to_int16 ( char32_t  value)
static

Convert char32_t to int16.

Parameters
valueobject to convert.
Returns
A new int16_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
char32_t value = U'a';
int16_t result = convert::to_int16(value);

◆ to_int16() [6/23]

static int16_t xtd::convert::to_int16 ( char8_t  value)
staticnoexcept

Convert char8_t to int16.

Parameters
valueobject to convert.
Returns
A new int16_t object converted from value.
Examples
char8_t value = u8'a';
int16_t result = convert::to_int16(value);

◆ to_int16() [7/23]

static int16_t xtd::convert::to_int16 ( const xtd::ustring value)
static

Convert string to int16.

Parameters
valueobject to convert.
Returns
A new int16_t object converted from value.
Exceptions
xtd::atgument_exceptionvalue does not represent a byte.
Examples
ustring value = "42";
int16_t result = convert::to_int16(value);

◆ to_int16() [8/23]

static int16_t xtd::convert::to_int16 ( const xtd::ustring value,
byte_t  from_base 
)
static

Convert string to int16.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new intt16_t object converted from value.
Exceptions
xtd::atgument_exceptionvalue does not represent a int16.
Examples
ustring value = "42";
int16_t result = convert::to_int16(value);

◆ to_int16() [9/23]

static int16_t xtd::convert::to_int16 ( decimal_t  value)
static

Convert decimal_t to int16.

Parameters
valueobject to convert.
Remarks
The result is rounded.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Returns
A new int16_t object converted from value.
Examples
decimal_t value = 42.50l;
int16_t result = convert::to_int16(value);

◆ to_int16() [10/23]

static int16_t xtd::convert::to_int16 ( double  value)
static

Convert double to int16.

Parameters
valueobject to convert.
Returns
A new int16_t object converted from value.
Remarks
The result is rounded.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
double value = 42.50;
int16_t result = convert::to_int16(value);

◆ to_int16() [11/23]

static int16_t xtd::convert::to_int16 ( float  value)
static

Convert float to int16.

Parameters
valueobject to convert.
Returns
A new int16_t object converted from value.
Remarks
The result is rounded.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
float value = 42.50f;
int16_t result = convert::to_int16(value);

◆ to_int16() [12/23]

static int16_t xtd::convert::to_int16 ( int16_t  value)
staticnoexcept

Convert int16_t to int16.

Parameters
valueobject to convert.
Returns
A new int16_t object converted from value.
Examples
int16_t value = 42;
int16_t result = convert::to_int16(value);

◆ to_int16() [13/23]

static int16_t xtd::convert::to_int16 ( int32_t  value)
static

Convert int32_t to int16.

Parameters
valueobject to convert.
Returns
A new int16_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
int32_t value = 42;
int16_t result = convert::to_int16(value);

◆ to_int16() [14/23]

static int16_t xtd::convert::to_int16 ( int64_t  value)
static

Convert int64_t to int16.

Parameters
valueobject to convert.
Returns
A new int16_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
int64_t value = 42l;
int16_t result = convert::to_int16(value);

◆ to_int16() [15/23]

static int16_t xtd::convert::to_int16 ( llong_t  value)
static

Convert llong_t to int16.

Parameters
valueobject to convert.
Returns
A new int16_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
llong_t value = 42ll;
int16_t result = convert::to_int16(value);

◆ to_int16() [16/23]

static int16_t xtd::convert::to_int16 ( sbyte_t  value)
staticnoexcept

Convert sbyte_t to int16.

Parameters
valueobject to convert.
Returns
A new int16_t object converted from value.
Examples
sbyte_t value = 42;
int16_t result = convert::to_int16(value);

◆ to_int16() [17/23]

static int16_t xtd::convert::to_int16 ( std::any  value)
static

Convert std::any to int16.

Parameters
valueobject to convert.
Returns
A new int16_t object converted from value.
Examples
std::any value = 42;
int16_t result = convert::to_int16(value);

◆ to_int16() [18/23]

template<typename type_t >
static int16_t xtd::convert::to_int16 ( type_t  value)
inlinestaticnoexcept

Convert type_t to int16.

Parameters
valueobject to convert.
Returns
A new int16_t object converted from value.
Examples
address_family value = address_family::inter_network;
int16_t result = convert::to_int16(value);

◆ to_int16() [19/23]

static int16_t xtd::convert::to_int16 ( uint16_t  value)
static

Convert uint16_t to int16.

Parameters
valueobject to convert.
Returns
A new int16_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max().
Examples
uint16_t value = 42u;
int16_t result = convert::to_int16(value);

◆ to_int16() [20/23]

static int16_t xtd::convert::to_int16 ( uint32_t  value)
static

Convert uint32_t to int16.

Parameters
valueobject to convert.
Returns
A new int16_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max().
Examples
uint32_t value = 42u;
int16_t result = convert::to_int16(value);

◆ to_int16() [21/23]

static int16_t xtd::convert::to_int16 ( uint64_t  value)
static

Convert uint64_t to int16.

Parameters
valueobject to convert.
Returns
A new int16_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max().
Examples
uint64t value = 42ul;
int16_t result = convert::to_int16(value);

◆ to_int16() [22/23]

static int16_t xtd::convert::to_int16 ( ullong_t  value)
static

Convert llong_t to int16.

Parameters
valueobject to convert.
Returns
A new int16_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max().
Examples
ullong_t value = 42ull;
int16_t result = convert::to_int16(value);

◆ to_int16() [23/23]

static int16_t xtd::convert::to_int16 ( wchar_t  value)
staticnoexcept

Convert char32_t to int16.

Parameters
valueobject to convert.
Returns
A new int16_t object converted from value.
Examples
wchar_t value = L'a';
int16_t result = convert::to_int16(value);

◆ to_int32() [1/23]

static int32_t xtd::convert::to_int32 ( bool  value)
staticnoexcept

Convert bool to int32.

Parameters
valueobject to convert.
Returns
A new int32_t object converted from value.
Examples
bool value = true;
int32_t result = convert::to_int32(value);
static int32_t to_int32(std::any value)
Convert std::any to int32.

◆ to_int32() [2/23]

static int32_t xtd::convert::to_int32 ( byte_t  value)
staticnoexcept

Convert byte_t to int32.

Parameters
valueobject to convert.
Returns
A new int32_t object converted from value.
Examples
byte_t value = 42;
int32_t result = convert::to_int32(value);

◆ to_int32() [3/23]

static int32_t xtd::convert::to_int32 ( char  value)
staticnoexcept

Convert char to int32.

Parameters
valueobject to convert.
Returns
A new int32_t object converted from value.
Examples
char value = 'a';
int32_t result = convert::to_int32(value);

◆ to_int32() [4/23]

static int32_t xtd::convert::to_int32 ( char16_t  value)
staticnoexcept

Convert char16_t to int32.

Parameters
valueobject to convert.
Returns
A new int32_t object converted from value.
Examples
char16_t value = u'a';
int32_t result = convert::to_int32(value);

◆ to_int32() [5/23]

static int32_t xtd::convert::to_int32 ( char32_t  value)
staticnoexcept

Convert char32_t to int32.

Parameters
valueobject to convert.
Returns
A new int32_t object converted from value.
Examples
char32_t value = U'a';
int32_t result = convert::to_int32(value);

◆ to_int32() [6/23]

static int32_t xtd::convert::to_int32 ( char8_t  value)
staticnoexcept

Convert char8_t to int32.

Parameters
valueobject to convert.
Returns
A new int32_t object converted from value.
Examples
char8_t value = u8'a';
int32_t result = convert::to_int32(value);

◆ to_int32() [7/23]

static int32_t xtd::convert::to_int32 ( const xtd::ustring value)
static

Convert string to int32.

Parameters
valueobject to convert.
Returns
A new int32_t object converted from value.
Exceptions
xtd::atgument_exceptionvalue does not represent a byte.
Examples
ustring value = "42";
int32_t result = convert::to_int32(value);

◆ to_int32() [8/23]

static int32_t xtd::convert::to_int32 ( const xtd::ustring value,
byte_t  from_base 
)
static

Convert string to int32.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new intt32_t object converted from value.
Exceptions
xtd::atgument_exceptionvalue does not represent a int32.
Examples
ustring value = "42";
int32_t result = convert::to_int32(value);

◆ to_int32() [9/23]

static int32_t xtd::convert::to_int32 ( decimal_t  value)
static

Convert decimal_t to int32.

Parameters
valueobject to convert.
Remarks
The result is rounded.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Returns
A new int32_t object converted from value.
Examples
decimal_t value = 42.50l;
int32_t result = convert::to_int32(value);

◆ to_int32() [10/23]

static int32_t xtd::convert::to_int32 ( double  value)
static

Convert double to int32.

Parameters
valueobject to convert.
Returns
A new int32_t object converted from value.
Remarks
The result is rounded.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
double value = 42.50;
int32_t result = convert::to_int32(value);

◆ to_int32() [11/23]

static int32_t xtd::convert::to_int32 ( float  value)
staticnoexcept

Convert float to int32.

Parameters
valueobject to convert.
Returns
A new int32_t object converted from value.
Remarks
The result is rounded.
Examples
float value = 42.50f;
int32_t result = convert::to_int32(value);

◆ to_int32() [12/23]

static int32_t xtd::convert::to_int32 ( int16_t  value)
staticnoexcept

Convert int16_t to int32.

Parameters
valueobject to convert.
Returns
A new int32_t object converted from value.
Examples
int16_t value = 42;
int32_t result = convert::to_int32(value);

◆ to_int32() [13/23]

static int32_t xtd::convert::to_int32 ( int32_t  value)
staticnoexcept

Convert int32_t to int32.

Parameters
valueobject to convert.
Returns
A new int32_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
int32_t value = 42;
int32_t result = convert::to_int32(value);

◆ to_int32() [14/23]

static int32_t xtd::convert::to_int32 ( int64_t  value)
static

Convert int64_t to int32.

Parameters
valueobject to convert.
Returns
A new int32_t object converted from value.
Examples
int64_t value = 42l;
int32_t result = convert::to_int32(value);

◆ to_int32() [15/23]

static int32_t xtd::convert::to_int32 ( llong_t  value)
static

Convert llong_t to int32.

Parameters
valueobject to convert.
Returns
A new int32_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
llong_t value = 42ll;
int32_t result = convert::to_int32(value);

◆ to_int32() [16/23]

static int32_t xtd::convert::to_int32 ( sbyte_t  value)
staticnoexcept

Convert sbyte_t to int32.

Parameters
valueobject to convert.
Returns
A new int32_t object converted from value.
Examples
sbyte_t value = 42;
int32_t result = convert::to_int32(value);

◆ to_int32() [17/23]

static int32_t xtd::convert::to_int32 ( std::any  value)
static

Convert std::any to int32.

Parameters
valueobject to convert.
Returns
A new int32_t object converted from value.
Examples
std::any value = 42;
int32_t result = convert::to_int32(value);

◆ to_int32() [18/23]

template<typename type_t >
static int32_t xtd::convert::to_int32 ( type_t  value)
inlinestaticnoexcept

Convert type_t to int32.

Parameters
valueobject to convert.
Returns
A new int32_t object converted from value.
Examples
address_family value = address_family::inter_network;
int32_t result = convert::to_int32(value);

◆ to_int32() [19/23]

static int32_t xtd::convert::to_int32 ( uint16_t  value)
staticnoexcept

Convert uint16_t to int32.

Parameters
valueobject to convert.
Returns
A new int32_t object converted from value.
Examples
uint16_t value = 42u;
int32_t result = convert::to_int32(value);

◆ to_int32() [20/23]

static int32_t xtd::convert::to_int32 ( uint32_t  value)
static

Convert uint32_t to int32.

Parameters
valueobject to convert.
Returns
A new int32_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max().
Examples
uint32_t value = 42u;
int32_t result = convert::to_int32(value);

◆ to_int32() [21/23]

static int32_t xtd::convert::to_int32 ( uint64_t  value)
static

Convert uint64_t to int32.

Parameters
valueobject to convert.
Returns
A new int32_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max().
Examples
uint64t value = 42ul;
int32_t result = convert::to_int32(value);

◆ to_int32() [22/23]

static int32_t xtd::convert::to_int32 ( ullong_t  value)
static

Convert llong_t to int32.

Parameters
valueobject to convert.
Returns
A new int32_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max().
Examples
ullong_t value = 42ull;
int32_t result = convert::to_int32(value);

◆ to_int32() [23/23]

static int32_t xtd::convert::to_int32 ( wchar_t  value)
staticnoexcept

Convert char32_t to int32.

Parameters
valueobject to convert.
Returns
A new int32_t object converted from value.
Examples
wchar_t value = L'a';
int32_t result = convert::to_int32(value);

◆ to_int64() [1/23]

static int64_t xtd::convert::to_int64 ( bool  value)
staticnoexcept

Convert bool to int64.

Parameters
valueobject to convert.
Returns
A new int64_t object converted from value.
Examples
bool value = true;
int64_t result = convert::to_int64(value);
static int64_t to_int64(std::any value)
Convert std::any to int64.

◆ to_int64() [2/23]

static int64_t xtd::convert::to_int64 ( byte_t  value)
staticnoexcept

Convert byte_t to int64.

Parameters
valueobject to convert.
Returns
A new int64_t object converted from value.
Examples
byte_t value = 42;
int64_t result = convert::to_int64(value);

◆ to_int64() [3/23]

static int64_t xtd::convert::to_int64 ( char  value)
staticnoexcept

Convert char to int64.

Parameters
valueobject to convert.
Returns
A new int64_t object converted from value.
Examples
char value = 'a';
int64_t result = convert::to_int64(value);

◆ to_int64() [4/23]

static int64_t xtd::convert::to_int64 ( char16_t  value)
staticnoexcept

Convert char16_t to int64.

Parameters
valueobject to convert.
Returns
A new int64_t object converted from value.
Examples
char16_t value = u'a';
int64_t result = convert::to_int64(value);

◆ to_int64() [5/23]

static int64_t xtd::convert::to_int64 ( char32_t  value)
staticnoexcept

Convert char32_t to int64.

Parameters
valueobject to convert.
Returns
A new int64_t object converted from value.
Examples
char32_t value = U'a';
int64_t result = convert::to_int64(value);

◆ to_int64() [6/23]

static int64_t xtd::convert::to_int64 ( char8_t  value)
staticnoexcept

Convert char8_t to int64.

Parameters
valueobject to convert.
Returns
A new int64_t object converted from value.
Examples
char8_t value = u8'a';
int64_t result = convert::to_int64(value);

◆ to_int64() [7/23]

static int64_t xtd::convert::to_int64 ( const xtd::ustring value)
static

Convert string to int64.

Parameters
valueobject to convert.
Returns
A new int64_t object converted from value.
Exceptions
xtd::atgument_exceptionvalue does not represent a byte.
Examples
ustring value = "42";
int64_t result = convert::to_int64(value);

◆ to_int64() [8/23]

static int64_t xtd::convert::to_int64 ( const xtd::ustring value,
byte_t  from_base 
)
static

Convert string to int64.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new intt64_t object converted from value.
Exceptions
xtd::atgument_exceptionvalue does not represent a int64.
Examples
ustring value = "42";
int16_t result = convert::to_int16(value);

◆ to_int64() [9/23]

static int64_t xtd::convert::to_int64 ( decimal_t  value)
staticnoexcept

Convert decimal_t to int64.

Parameters
valueobject to convert.
Remarks
The result is rounded.
Returns
A new int64_t object converted from value.
Examples
decimal_t value = 42.50l;
int64_t result = convert::to_int64(value);

◆ to_int64() [10/23]

static int64_t xtd::convert::to_int64 ( double  value)
staticnoexcept

Convert double to int64.

Parameters
valueobject to convert.
Returns
A new int64_t object converted from value.
Remarks
The result is rounded.
Examples
double value = 42.50;
int64_t result = convert::to_int64(value);

◆ to_int64() [11/23]

static int64_t xtd::convert::to_int64 ( float  value)
staticnoexcept

Convert float to int64.

Parameters
valueobject to convert.
Returns
A new int64_t object converted from value.
Remarks
The result is rounded.
Examples
float value = 42.50f;
int64_t result = convert::to_int64(value);

◆ to_int64() [12/23]

static int64_t xtd::convert::to_int64 ( int16_t  value)
staticnoexcept

Convert int16_t to int64.

Parameters
valueobject to convert.
Returns
A new int64_t object converted from value.
Examples
int16_t value = 42;
int64_t result = convert::to_int64(value);

◆ to_int64() [13/23]

static int64_t xtd::convert::to_int64 ( int32_t  value)
staticnoexcept

Convert int32_t to int64.

Parameters
valueobject to convert.
Returns
A new int64_t object converted from value.
Examples
int32_t value = 42;
int64_t result = convert::to_int64(value);

◆ to_int64() [14/23]

static int64_t xtd::convert::to_int64 ( int64_t  value)
staticnoexcept

Convert int64_t to int64.

Parameters
valueobject to convert.
Returns
A new int64_t object converted from value.
Examples
int64_t value = 42l;
int64_t result = convert::to_int64(value);

◆ to_int64() [15/23]

static int64_t xtd::convert::to_int64 ( llong_t  value)
staticnoexcept

Convert llong_t to int64.

Parameters
valueobject to convert.
Returns
A new int64_t object converted from value.
Examples
llong_t value = 42ll;
int64_t result = convert::to_int64(value);

◆ to_int64() [16/23]

static int64_t xtd::convert::to_int64 ( sbyte_t  value)
staticnoexcept

Convert sbyte_t to int64.

Parameters
valueobject to convert.
Returns
A new int64_t object converted from value.
Examples
sbyte_t value = 42;
int64_t result = convert::to_int64(value);

◆ to_int64() [17/23]

static int64_t xtd::convert::to_int64 ( std::any  value)
static

Convert std::any to int64.

Parameters
valueobject to convert.
Returns
A new int64_t object converted from value.
Examples
std::any value = 42;
int64_t result = convert::to_int64(value);

◆ to_int64() [18/23]

template<typename type_t >
static int64_t xtd::convert::to_int64 ( type_t  value)
inlinestaticnoexcept

Convert type_t to int64.

Parameters
valueobject to convert.
Returns
A new int64_t object converted from value.
Examples
address_family value = address_family::inter_network;
int64_t result = convert::to_int64(value);

◆ to_int64() [19/23]

static int64_t xtd::convert::to_int64 ( uint16_t  value)
staticnoexcept

Convert uint16_t to int64.

Parameters
valueobject to convert.
Returns
A new int64_t object converted from value.
Examples
uint16_t value = 42u;
int64_t result = convert::to_int64(value);

◆ to_int64() [20/23]

static int64_t xtd::convert::to_int64 ( uint32_t  value)
staticnoexcept

Convert uint32_t to int64.

Parameters
valueobject to convert.
Returns
A new int64_t object converted from value.
Examples
uint32_t value = 42u;
int64_t result = convert::to_int64(value);

◆ to_int64() [21/23]

static int64_t xtd::convert::to_int64 ( uint64_t  value)
static

Convert uint64_t to int64.

Parameters
valueobject to convert.
Returns
A new int64_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max().
Examples
uint64t value = 42ul;
int64_t result = convert::to_int64(value);

◆ to_int64() [22/23]

static int64_t xtd::convert::to_int64 ( ullong_t  value)
static

Convert llong_t to int64.

Parameters
valueobject to convert.
Returns
A new int64_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max().
Examples
ullong_t value = 42ull;
int64_t result = convert::to_int64(value);

◆ to_int64() [23/23]

static int64_t xtd::convert::to_int64 ( wchar_t  value)
staticnoexcept

Convert char32_t to int64.

Parameters
valueobject to convert.
Returns
A new int64_t object converted from value.
Examples
wchar_t value = L'a';
int64_t result = convert::to_int64(value);

◆ to_llong() [1/23]

static llong_t xtd::convert::to_llong ( bool  value)
staticnoexcept

Convert bool to llong.

Parameters
valueobject to convert.
Returns
A new llong_t object converted from value.
Examples
bool value = true;
llong_t result = convert::to_llong(value);
static llong_t to_llong(std::any value)
Convert std::any to llong.

◆ to_llong() [2/23]

static llong_t xtd::convert::to_llong ( byte_t  value)
staticnoexcept

Convert byte_t to llong.

Parameters
valueobject to convert.
Returns
A new llong_t object converted from value.
Examples
byte_t value = 42;
llong_t result = convert::to_llong(value);

◆ to_llong() [3/23]

static llong_t xtd::convert::to_llong ( char  value)
staticnoexcept

Convert char to llong.

Parameters
valueobject to convert.
Returns
A new llong_t object converted from value.
Examples
char value = 'a';
llong_t result = convert::to_llong(value);

◆ to_llong() [4/23]

static llong_t xtd::convert::to_llong ( char16_t  value)
staticnoexcept

Convert char16_t to llong.

Parameters
valueobject to convert.
Returns
A new llong_t object converted from value.
Examples
char16_t value = u'a';
llong_t result = convert::to_llong(value);

◆ to_llong() [5/23]

static llong_t xtd::convert::to_llong ( char32_t  value)
staticnoexcept

Convert char32_t to llong.

Parameters
valueobject to convert.
Returns
A new llong_t object converted from value.
Examples
char32_t value = U'a';
llong_t result = convert::to_llong(value);

◆ to_llong() [6/23]

static llong_t xtd::convert::to_llong ( char8_t  value)
staticnoexcept

Convert char8_t to llong.

Parameters
valueobject to convert.
Returns
A new llong_t object converted from value.
Examples
char8_t value = u8'a';
llong_t result = convert::to_llong(value);

◆ to_llong() [7/23]

static llong_t xtd::convert::to_llong ( const xtd::ustring value)
static

Convert string to llong.

Parameters
valueobject to convert.
Returns
A new llong_t object converted from value.
Exceptions
xtd::atgument_exceptionvalue does not represent a byte.
Examples
ustring value = "42";
llong_t result = convert::to_llong(value);

◆ to_llong() [8/23]

static llong_t xtd::convert::to_llong ( const xtd::ustring value,
byte_t  from_base 
)
static

Convert string to llong.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new llong_t object converted from value.
Exceptions
xtd::atgument_exceptionvalue does not represent a llong.
Examples
ustring value = "42";
llong_t result = convert::to_llong(value);

◆ to_llong() [9/23]

static llong_t xtd::convert::to_llong ( decimal_t  value)
staticnoexcept

Convert decimal_t to llong.

Parameters
valueobject to convert.
Remarks
The result is rounded.
Returns
A new llong_t object converted from value.
Examples
decimal_t value = 42.50l;
llong_t result = convert::to_llong(value);

◆ to_llong() [10/23]

static llong_t xtd::convert::to_llong ( double  value)
staticnoexcept

Convert double to llong.

Parameters
valueobject to convert.
Returns
A new llong_t object converted from value.
Remarks
The result is rounded.
Examples
double value = 42.50;
llong_t result = convert::to_llong(value);

◆ to_llong() [11/23]

static llong_t xtd::convert::to_llong ( float  value)
staticnoexcept

Convert float to llong.

Parameters
valueobject to convert.
Returns
A new llong_t object converted from value.
Remarks
The result is rounded.
Examples
float value = 42.50f;
llong_t result = convert::to_llong(value);

◆ to_llong() [12/23]

static llong_t xtd::convert::to_llong ( int16_t  value)
staticnoexcept

Convert int16_t to llong.

Parameters
valueobject to convert.
Returns
A new llong_t object converted from value.
Examples
int16_t value = 42;
llong_t result = convert::to_llong(value);

◆ to_llong() [13/23]

static llong_t xtd::convert::to_llong ( int32_t  value)
staticnoexcept

Convert int32_t to llong.

Parameters
valueobject to convert.
Returns
A new llong_t object converted from value.
Examples
int32_t value = 42;
llong_t result = convert::to_llong(value);

◆ to_llong() [14/23]

static llong_t xtd::convert::to_llong ( int64_t  value)
staticnoexcept

Convert int64_t to llong.

Parameters
valueobject to convert.
Returns
A new llong_t object converted from value.
Examples
int64_t value = 42l;
llong_t result = convert::to_llong(value);

◆ to_llong() [15/23]

static llong_t xtd::convert::to_llong ( llong_t  value)
staticnoexcept

Convert llong_t to llong.

Parameters
valueobject to convert.
Returns
A new llong_t object converted from value.
Examples
llong_t value = 42ll;
llong_t result = convert::to_llong(value);

◆ to_llong() [16/23]

static llong_t xtd::convert::to_llong ( sbyte_t  value)
staticnoexcept

Convert sbyte_t to llong.

Parameters
valueobject to convert.
Returns
A new llong_t object converted from value.
Examples
sbyte_t value = 42;
llong_t result = convert::to_llong(value);

◆ to_llong() [17/23]

static llong_t xtd::convert::to_llong ( std::any  value)
static

Convert std::any to llong.

Parameters
valueobject to convert.
Returns
A new llong_t object converted from value.
Examples
std::any value = 42;
llong_t result = convert::to_llong(value);

◆ to_llong() [18/23]

template<typename type_t >
static llong_t xtd::convert::to_llong ( type_t  value)
inlinestaticnoexcept

Convert type_t to llong.

Parameters
valueobject to convert.
Returns
A new llong_t object converted from value.
Examples
address_family value = address_family::inter_network;
llong_t result = convert::to_llong(value);

◆ to_llong() [19/23]

static llong_t xtd::convert::to_llong ( uint16_t  value)
staticnoexcept

Convert uint16_t to llong.

Parameters
valueobject to convert.
Returns
A new llong_t object converted from value.
Examples
uint16_t value = 42u;
llong_t result = convert::to_llong(value);

◆ to_llong() [20/23]

static llong_t xtd::convert::to_llong ( uint32_t  value)
staticnoexcept

Convert uint32_t to llong.

Parameters
valueobject to convert.
Returns
A new llong_t object converted from value.
Examples
uint32_t value = 42u;
llong_t result = convert::to_llong(value);

◆ to_llong() [21/23]

static llong_t xtd::convert::to_llong ( uint64_t  value)
static

Convert uint64_t to llong.

Parameters
valueobject to convert.
Returns
A new llong_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max().
Examples
uint64t value = 42ul;
llong_t result = convert::to_llong(value);

◆ to_llong() [22/23]

static llong_t xtd::convert::to_llong ( ullong_t  value)
static

Convert llong_t to llong.

Parameters
valueobject to convert.
Returns
A new llong_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max().
Examples
ullong_t value = 42ull;
llong_t result = convert::to_llong(value);

◆ to_llong() [23/23]

static llong_t xtd::convert::to_llong ( wchar_t  value)
staticnoexcept

Convert char32_t to llong.

Parameters
valueobject to convert.
Returns
A new llong_t object converted from value.
Examples
wchar_t value = L'a';
llong_t result = convert::to_llong(value);

◆ to_sbyte() [1/23]

static sbyte_t xtd::convert::to_sbyte ( bool  value)
staticnoexcept

Convert bool to sbyte.

Parameters
valueobject to convert.
Returns
A new sbyte_t object converted from value.
Examples
bool value = true;
sbyte_t result = convert::to_sbyte(value);
static sbyte_t to_sbyte(std::any value)
Convert std::any to sbyte.

◆ to_sbyte() [2/23]

static sbyte_t xtd::convert::to_sbyte ( byte_t  value)
staticnoexcept

Convert byte_t to sbyte.

Parameters
valueobject to convert.
Returns
A new sbyte_t object converted from value.
Examples
byte_t value = 42;
sbyte_t result = convert::to_sbyte(value);

◆ to_sbyte() [3/23]

static sbyte_t xtd::convert::to_sbyte ( char  value)
staticnoexcept

Convert char to sbyte.

Parameters
valueobject to convert.
Returns
A new sbyte_t object converted from value.
Examples
char value = 'a';
sbyte_t result = convert::to_sbyte(value);

◆ to_sbyte() [4/23]

static sbyte_t xtd::convert::to_sbyte ( char16_t  value)
static

Convert char16_t to sbyte.

Parameters
valueobject to convert.
Returns
A new sbyte_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
char16_t value = u'a';
sbyte_t result = convert::to_sbyte(value);

◆ to_sbyte() [5/23]

static sbyte_t xtd::convert::to_sbyte ( char32_t  value)
static

Convert char32_t to sbyte.

Parameters
valueobject to convert.
Returns
A new sbyte_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
char32_t value = U'a';
sbyte_t result = convert::to_sbyte(value);

◆ to_sbyte() [6/23]

static sbyte_t xtd::convert::to_sbyte ( char8_t  value)
staticnoexcept

Convert char8_t to sbyte.

Parameters
valueobject to convert.
Returns
A new sbyte_t object converted from value.
Examples
char8_t value = u8'a';
sbyte_t result = convert::to_sbyte(value);

◆ to_sbyte() [7/23]

static sbyte_t xtd::convert::to_sbyte ( const xtd::ustring value)
static

Convert string to sbyte.

Parameters
valueobject to convert.
Returns
A new sbyte_t object converted from value.
Exceptions
xtd::atgument_exceptionvalue does not represent a byte.
Examples
ustring value = "42";
sbyte_t result = convert::to_sbyte(value);

◆ to_sbyte() [8/23]

static sbyte_t xtd::convert::to_sbyte ( const xtd::ustring value,
byte_t  from_base 
)
static

Convert string to sbyte.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new sbyte_t object converted from value.
Exceptions
xtd::atgument_exceptionvalue does not represent a sbyte.
Examples
ustring value = "42";
sbyte_t result = convert::to_sbyte(value);

◆ to_sbyte() [9/23]

static sbyte_t xtd::convert::to_sbyte ( decimal_t  value)
static

Convert decimal_t to sbyte.

Parameters
valueobject to convert.
Remarks
The result is rounded.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Returns
A new sbyte_t object converted from value.
Examples
decimal_t value = 42.50l;
sbyte_t result = convert::to_sbyte(value);

◆ to_sbyte() [10/23]

static sbyte_t xtd::convert::to_sbyte ( double  value)
static

Convert double to sbyte.

Parameters
valueobject to convert.
Returns
A new sbyte_t object converted from value.
Remarks
The result is rounded.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
double value = 42.50;
sbyte_t result = convert::to_sbyte(value);

◆ to_sbyte() [11/23]

static sbyte_t xtd::convert::to_sbyte ( float  value)
static

Convert float to sbyte.

Parameters
valueobject to convert.
Returns
A new sbyte_t object converted from value.
Remarks
The result is rounded.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
float value = 42.50f;
sbyte_t result = convert::to_sbyte(value);

◆ to_sbyte() [12/23]

static sbyte_t xtd::convert::to_sbyte ( int16_t  value)
static

Convert int16_t to sbyte.

Parameters
valueobject to convert.
Returns
A new sbyte_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
int16_t value = 42;
sbyte_t result = convert::to_sbyte(value);

◆ to_sbyte() [13/23]

static sbyte_t xtd::convert::to_sbyte ( int32_t  value)
static

Convert int32_t to sbyte.

Parameters
valueobject to convert.
Returns
A new sbyte_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
int32_t value = 42;
sbyte_t result = convert::to_sbyte(value);

◆ to_sbyte() [14/23]

static sbyte_t xtd::convert::to_sbyte ( int64_t  value)
static

Convert int64_t to sbyte.

Parameters
valueobject to convert.
Returns
A new sbyte_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
int64_t value = 42l;
sbyte_t result = convert::to_sbyte(value);

◆ to_sbyte() [15/23]

static sbyte_t xtd::convert::to_sbyte ( llong_t  value)
static

Convert llong_t to sbyte.

Parameters
valueobject to convert.
Returns
A new sbyte_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
llong_t value = 42ll;
sbyte_t result = convert::to_sbyte(value);

◆ to_sbyte() [16/23]

static sbyte_t xtd::convert::to_sbyte ( sbyte_t  value)
static

Convert sbyte_t to sbyte.

Parameters
valueobject to convert.
Returns
A new sbyte_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is less than 0.
Examples
sbyte_t value = 42;
sbyte_t result = convert::to_sbyte(value);

◆ to_sbyte() [17/23]

static sbyte_t xtd::convert::to_sbyte ( std::any  value)
static

Convert std::any to sbyte.

Parameters
valueobject to convert.
Returns
A new sbyte_t object converted from value.
Examples
std::any value = 42;
sbyte_t result = convert::to_sbyte(value);

◆ to_sbyte() [18/23]

template<typename type_t >
static sbyte_t xtd::convert::to_sbyte ( type_t  value)
inlinestaticnoexcept

Convert type_t to sbyte.

Parameters
valueobject to convert.
Returns
A new sbyte_t object converted from value.
Examples
address_family value = address_family::inter_network;
sbyte_t result = convert::to_sbyte(value);

◆ to_sbyte() [19/23]

static sbyte_t xtd::convert::to_sbyte ( uint16_t  value)
static

Convert uint16_t to sbyte.

Parameters
valueobject to convert.
Returns
A new sbyte_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max().
Examples
uint16_t value = 42u;
sbyte_t result = convert::to_sbyte(value);

◆ to_sbyte() [20/23]

static sbyte_t xtd::convert::to_sbyte ( uint32_t  value)
static

Convert uint32_t to sbyte.

Parameters
valueobject to convert.
Returns
A new sbyte_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max().
Examples
uint32_t value = 42u;
sbyte_t result = convert::to_sbyte(value);

◆ to_sbyte() [21/23]

static sbyte_t xtd::convert::to_sbyte ( uint64_t  value)
static

Convert uint64_t to sbyte.

Parameters
valueobject to convert.
Returns
A new sbyte_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max().
Examples
uint64t value = 42ul;
sbyte_t result = convert::to_sbyte(value);

◆ to_sbyte() [22/23]

static sbyte_t xtd::convert::to_sbyte ( ullong_t  value)
static

Convert llong_t to sbyte.

Parameters
valueobject to convert.
Returns
A new sbyte_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max().
Examples
ullong_t value = 42ull;
sbyte_t result = convert::to_sbyte(value);

◆ to_sbyte() [23/23]

static sbyte_t xtd::convert::to_sbyte ( wchar_t  value)
static

Convert char32_t to sbyte.

Parameters
valueobject to convert.
Returns
A new sbyte_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
wchar_t value = L'a';
sbyte_t result = convert::to_sbyte(value);

◆ to_single() [1/22]

static float xtd::convert::to_single ( bool  value)
staticnoexcept

Convert bool to single.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Examples
bool value = true;
float result = convert::to_single(value);
static float to_single(std::any value)
Convert std::any to single.

◆ to_single() [2/22]

static float xtd::convert::to_single ( byte_t  value)
staticnoexcept

Convert byte_t to single.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Examples
byte_t value = 42;
float result = convert::to_single(value);

◆ to_single() [3/22]

static float xtd::convert::to_single ( char  value)
staticnoexcept

Convert char to single.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Examples
char value = 'a';
float result = convert::to_single(value);

◆ to_single() [4/22]

static float xtd::convert::to_single ( char16_t  value)
staticnoexcept

Convert char16_t to single.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Examples
char16_t value = u'a';
float result = convert::to_single(value);

◆ to_single() [5/22]

static float xtd::convert::to_single ( char32_t  value)
staticnoexcept

Convert char32_t to single.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Examples
char32_t value = U'a';
float result = convert::to_single(value);

◆ to_single() [6/22]

static float xtd::convert::to_single ( char8_t  value)
staticnoexcept

Convert char8_t to single.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Examples
char8_t value = u8'a';
float result = convert::to_single(value);

◆ to_single() [7/22]

static float xtd::convert::to_single ( const xtd::ustring value)
static

Convert string to single.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Exceptions
xtd::atgument_exceptionvalue does not represent a byte.
Examples
ustring value = "42";
float result = convert::to_single(value);

◆ to_single() [8/22]

static float xtd::convert::to_single ( decimal_t  value)
staticnoexcept

Convert decimal_t to single.

Parameters
valueobject to convert.
Remarks
The result is rounded.
Returns
A new float object converted from value.
Examples
decimal_t value = 42.50l;
float result = convert::to_single(value);

◆ to_single() [9/22]

static float xtd::convert::to_single ( double  value)
staticnoexcept

Convert double to single.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Remarks
The result is rounded.
Examples
double value = 42.50;
float result = convert::to_single(value);

◆ to_single() [10/22]

static float xtd::convert::to_single ( float  value)
staticnoexcept

Convert float to single.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Remarks
The result is rounded.
Examples
float value = 42.50f;
float result = convert::to_single(value);

◆ to_single() [11/22]

static float xtd::convert::to_single ( int16_t  value)
staticnoexcept

Convert int16_t to single.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Examples
int16_t value = 42;
float result = convert::to_single(value);

◆ to_single() [12/22]

static float xtd::convert::to_single ( int32_t  value)
staticnoexcept

Convert int32_t to single.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Examples
int32_t value = 42;
float result = convert::to_single(value);

◆ to_single() [13/22]

static float xtd::convert::to_single ( int64_t  value)
staticnoexcept

Convert int64_t to single.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Examples
int64_t value = 42l;
float result = convert::to_single(value);

◆ to_single() [14/22]

static float xtd::convert::to_single ( llong_t  value)
staticnoexcept

Convert llong_t to single.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Examples
llong_t value = 42ll;
float result = convert::to_single(value);

◆ to_single() [15/22]

static float xtd::convert::to_single ( sbyte_t  value)
staticnoexcept

Convert sbyte_t to single.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Examples
sbyte_t value = 42;
float result = convert::to_single(value);

◆ to_single() [16/22]

static float xtd::convert::to_single ( std::any  value)
static

Convert std::any to single.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Examples
std::any value = 42;
float result = convert::to_single(value);

◆ to_single() [17/22]

template<typename type_t >
static float xtd::convert::to_single ( type_t  value)
inlinestaticnoexcept

Convert type_t to single.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Examples
address_family value = address_family::inter_network;
float result = convert::to_single(value);

◆ to_single() [18/22]

static float xtd::convert::to_single ( uint16_t  value)
staticnoexcept

Convert uint16_t to single.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Examples
uint16_t value = 42u;
float result = convert::to_single(value);

◆ to_single() [19/22]

static float xtd::convert::to_single ( uint32_t  value)
staticnoexcept

Convert uint32_t to single.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Examples
uint32_t value = 42u;
float result = convert::to_single(value);

◆ to_single() [20/22]

static float xtd::convert::to_single ( uint64_t  value)
staticnoexcept

Convert uint64_t to single.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Examples
uint64t value = 42ul;
float result = convert::to_single(value);

◆ to_single() [21/22]

static float xtd::convert::to_single ( ullong_t  value)
staticnoexcept

Convert llong_t to single.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Examples
ullong_t value = 42ull;
float result = convert::to_single(value);

◆ to_single() [22/22]

static float xtd::convert::to_single ( wchar_t  value)
staticnoexcept

Convert char32_t to single.

Parameters
valueobject to convert.
Returns
A new float object converted from value.
Examples
wchar_t value = L'a';
float result = convert::to_single(value);

◆ to_string() [1/32]

static ustring xtd::convert::to_string ( bool  value)
staticnoexcept

Convert bool to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Examples
bool value = true;
ustring result = convert::to_string(value);
static ustring to_string(std::any value)
Convert std::any to ustring.

◆ to_string() [2/32]

static ustring xtd::convert::to_string ( byte_t  value)
staticnoexcept

Convert byte_t to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Examples
byte_t value = 42;
ustring result = convert::to_string(value);

◆ to_string() [3/32]

static ustring xtd::convert::to_string ( byte_t  value,
byte_t  from_base 
)
static

Convert string to ustring.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new ustring object converted from value.
Exceptions
xtd::atgument_exceptionfrom_base is not 2 or 8 or 10 orr 16.
Examples
byte_t value = 42;
ustring result = convert::to_string(value, 16);

◆ to_string() [4/32]

static ustring xtd::convert::to_string ( char  value)
staticnoexcept

Convert char to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Examples
char value = 'a';
ustring result = convert::to_string(value);

◆ to_string() [5/32]

static ustring xtd::convert::to_string ( char16_t  value)
staticnoexcept

Convert char16_t to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Examples
char16_t value = u'a';
ustring result = convert::to_string(value);

◆ to_string() [6/32]

static ustring xtd::convert::to_string ( char32_t  value)
staticnoexcept

Convert char32_t to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Examples
char32_t value = U'a';
ustring result = convert::to_string(value);

◆ to_string() [7/32]

static ustring xtd::convert::to_string ( char8_t  value)
staticnoexcept

Convert char8_t to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Examples
char8_t value = u8'a';
ustring result = convert::to_string(value);

◆ to_string() [8/32]

static ustring xtd::convert::to_string ( const xtd::ustring value)
static

Convert string to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Examples
ustring value = "42";
ustring result = convert::to_string(value);

◆ to_string() [9/32]

static ustring xtd::convert::to_string ( decimal_t  value)
static

Convert decimal_t to ustring.

Parameters
valueobject to convert.
Remarks
The result is rounded.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Returns
A new ustring object converted from value.
Examples
decimal_t value = 42.50l;
ustring result = convert::to_string(value);

◆ to_string() [10/32]

static ustring xtd::convert::to_string ( double  value)
static

Convert double to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Remarks
The result is rounded.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
double value = 42.50;
ustring result = convert::to_string(value);

◆ to_string() [11/32]

static ustring xtd::convert::to_string ( float  value)
static

Convert float to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Remarks
The result is rounded.
Examples
float value = 42.50f;
ustring result = convert::to_string(value);

◆ to_string() [12/32]

static ustring xtd::convert::to_string ( int16_t  value)
static

Convert int16_t to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max().
Examples
int16_t value = 42;
ustring result = convert::to_string(value);

◆ to_string() [13/32]

static ustring xtd::convert::to_string ( int16_t  value,
byte_t  from_base 
)
static

Convert string to ustring.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new ustring object converted from value.
Exceptions
xtd::atgument_exceptionfrom_base is not 2 or 8 or 10 orr 16.
Examples
int16_t value = 42;
ustring result = convert::to_string(value, 16);

◆ to_string() [14/32]

static ustring xtd::convert::to_string ( int32_t  value)
static

Convert int32_t to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
int32_t value = 42;
ustring result = convert::to_string(value);

◆ to_string() [15/32]

static ustring xtd::convert::to_string ( int32_t  value,
byte_t  from_base 
)
static

Convert string to ustring.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new ustring object converted from value.
Exceptions
xtd::atgument_exceptionfrom_base is not 2 or 8 or 10 orr 16.
Examples
int32_t value = 42;
ustring result = convert::to_string(value, 16);

◆ to_string() [16/32]

static ustring xtd::convert::to_string ( int64_t  value)
static

Convert int64_t to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
int64_t value = 42l;
ustring result = convert::to_string(value);

◆ to_string() [17/32]

static ustring xtd::convert::to_string ( int64_t  value,
byte_t  from_base 
)
static

Convert string to ustring.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new ustring object converted from value.
Exceptions
xtd::atgument_exceptionfrom_base is not 2 or 8 or 10 orr 16.
Examples
int64_t value = 42;
ustring result = convert::to_string(value, 16);

◆ to_string() [18/32]

static ustring xtd::convert::to_string ( llong_t  value)
static

Convert llong_t to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
llong_t value = 42ll;
ustring result = convert::to_string(value);

◆ to_string() [19/32]

static ustring xtd::convert::to_string ( llong_t  value,
byte_t  from_base 
)
static

Convert string to ustring.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new ustring object converted from value.
Exceptions
xtd::atgument_exceptionfrom_base is not 2 or 8 or 10 orr 16.
Examples
llong_t value = 42;
ustring result = convert::to_string(value, 16);

◆ to_string() [20/32]

static ustring xtd::convert::to_string ( sbyte_t  value)
static

Convert sbyte_t to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max().
Examples
sbyte_t value = 42;
ustring result = convert::to_string(value);

◆ to_string() [21/32]

static ustring xtd::convert::to_string ( sbyte_t  value,
byte_t  from_base 
)
static

Convert string to ustring.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new ustring object converted from value.
Exceptions
xtd::atgument_exceptionfrom_base is not 2 or 8 or 10 orr 16.
Examples
sbyte_t value = 42;
ustring result = convert::to_string(value, 16);

◆ to_string() [22/32]

static ustring xtd::convert::to_string ( std::any  value)
static

Convert std::any to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Examples
std::any value = 42;
ustring result = convert::to_string(value);

◆ to_string() [23/32]

template<typename type_t >
static ustring xtd::convert::to_string ( type_t  value)
inlinestaticnoexcept

Convert type_t to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Examples
address_family value = address_family::inter_network;
ustring result = convert::to_string(value);

◆ to_string() [24/32]

static ustring xtd::convert::to_string ( uint16_t  value)
staticnoexcept

Convert uint16_t to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Examples
uint16_t value = 42u;
ustring result = convert::to_string(value);

◆ to_string() [25/32]

static ustring xtd::convert::to_string ( uint16_t  value,
byte_t  from_base 
)
static

Convert string to ustring.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new ustring object converted from value.
Exceptions
xtd::atgument_exceptionfrom_base is not 2 or 8 or 10 orr 16.
Examples
uint16_t value = 42u;
ustring result = convert::to_string(value, 16);

◆ to_string() [26/32]

static ustring xtd::convert::to_string ( uint32_t  value)
staticnoexcept

Convert uint32_t to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Examples
uint32_t value = 42u;
ustring result = convert::to_string(value);

◆ to_string() [27/32]

static ustring xtd::convert::to_string ( uint32_t  value,
byte_t  from_base 
)
static

Convert string to ustring.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new ustring object converted from value.
Exceptions
xtd::atgument_exceptionfrom_base is not 2 or 8 or 10 orr 16.
Examples
uint32_t value = 42;
ustring result = convert::to_string(value, 16);

◆ to_string() [28/32]

static ustring xtd::convert::to_string ( uint64_t  value)
staticnoexcept

Convert uint64_t to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max().
Examples
uint64t value = 42u;
ustring result = convert::to_string(value);

◆ to_string() [29/32]

static ustring xtd::convert::to_string ( uint64_t  value,
byte_t  from_base 
)
static

Convert string to ustring.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new ustring object converted from value.
Exceptions
xtd::atgument_exceptionfrom_base is not 2 or 8 or 10 orr 16.
Examples
uint64_t value = 42ul;
ustring result = convert::to_string(value, 16);

◆ to_string() [30/32]

static ustring xtd::convert::to_string ( ullong_t  value)
staticnoexcept

Convert llong_t to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Examples
ullong_t value = 42ull;
ustring result = convert::to_string(value);

◆ to_string() [31/32]

static ustring xtd::convert::to_string ( ullong_t  value,
byte_t  from_base 
)
static

Convert string to ustring.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new ustring object converted from value.
Exceptions
xtd::atgument_exceptionfrom_base is not 2 or 8 or 10 orr 16.
Examples
ullong_t value = 42ull;
ustring result = convert::to_string(value, 16);

◆ to_string() [32/32]

static ustring xtd::convert::to_string ( wchar_t  value)
staticnoexcept

Convert char32_t to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Examples
wchar_t value = L'a';
ustring result = convert::to_string(value);

◆ to_uint16() [1/23]

static uint16_t xtd::convert::to_uint16 ( bool  value)
staticnoexcept

Convert bool to uint16.

Parameters
valueobject to convert.
Returns
A new uint16_t object converted from value.
Examples
bool value = true;
uint16_t result = convert::to_uint16(value);
static uint16_t to_uint16(std::any value)
Convert std::any to uint16.

◆ to_uint16() [2/23]

static uint16_t xtd::convert::to_uint16 ( byte_t  value)
staticnoexcept

Convert byte_t to uint16.

Parameters
valueobject to convert.
Returns
A new uint16_t object converted from value.
Examples
byte_t value = 42;
uint16_t result = convert::to_uint16(value);

◆ to_uint16() [3/23]

static uint16_t xtd::convert::to_uint16 ( char  value)
staticnoexcept

Convert char to uint16.

Parameters
valueobject to convert.
Returns
A new uint16_t object converted from value.
Examples
char value = 'a';
uint16_t result = convert::to_uint16(value);

◆ to_uint16() [4/23]

static uint16_t xtd::convert::to_uint16 ( char16_t  value)
staticnoexcept

Convert char16_t to uint16.

Parameters
valueobject to convert.
Returns
A new uint16_t object converted from value.
Examples
char16_t value = u'a';
uint16_t result = convert::to_uint16(value);

◆ to_uint16() [5/23]

static uint16_t xtd::convert::to_uint16 ( char32_t  value)
static

Convert char32_t to uint16.

Parameters
valueobject to convert.
Returns
A new uint16_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
char32_t value = U'a';
uint16_t result = convert::to_uint16(value);

◆ to_uint16() [6/23]

static uint16_t xtd::convert::to_uint16 ( char8_t  value)
staticnoexcept

Convert char8_t to uint16.

Parameters
valueobject to convert.
Returns
A new uint16_t object converted from value.
Examples
char8_t value = u8'a';
uint16_t result = convert::to_uint16(value);

◆ to_uint16() [7/23]

static uint16_t xtd::convert::to_uint16 ( const xtd::ustring value)
static

Convert string to uint16.

Parameters
valueobject to convert.
Returns
A new uint16_t object converted from value.
Exceptions
xtd::atgument_exceptionvalue does not represent a byte.
Examples
ustring value = "42";
uint16_t result = convert::to_uint16(value);

◆ to_uint16() [8/23]

static uint16_t xtd::convert::to_uint16 ( const xtd::ustring value,
byte_t  from_base 
)
static

Convert string to uint16.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new intt16_t object converted from value.
Exceptions
xtd::atgument_exceptionvalue does not represent a uint16.
Examples
ustring value = "42";
uint16_t result = convert::to_uuint16(value);

◆ to_uint16() [9/23]

static uint16_t xtd::convert::to_uint16 ( decimal_t  value)
static

Convert decimal_t to uint16.

Parameters
valueobject to convert.
Remarks
The result is rounded.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Returns
A new uint16_t object converted from value.
Examples
decimal_t value = 42.50l;
uint16_t result = convert::to_uint16(value);

◆ to_uint16() [10/23]

static uint16_t xtd::convert::to_uint16 ( double  value)
static

Convert double to uint16.

Parameters
valueobject to convert.
Returns
A new uint16_t object converted from value.
Remarks
The result is rounded.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
double value = 42.50;
uint16_t result = convert::to_uint16(value);

◆ to_uint16() [11/23]

static uint16_t xtd::convert::to_uint16 ( float  value)
static

Convert float to uint16.

Parameters
valueobject to convert.
Returns
A new uint16_t object converted from value.
Remarks
The result is rounded.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
float value = 42.50f;
uint16_t result = convert::to_uint16(value);

◆ to_uint16() [12/23]

static uint16_t xtd::convert::to_uint16 ( int16_t  value)
static

Convert int16_t to uint16.

Parameters
valueobject to convert.
Returns
A new uint16_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max().
Examples
int16_t value = 42;
uint16_t result = convert::to_uint16(value);

◆ to_uint16() [13/23]

static uint16_t xtd::convert::to_uint16 ( int32_t  value)
static

Convert int32_t to uint16.

Parameters
valueobject to convert.
Returns
A new uint16_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
int32_t value = 42;
uint16_t result = convert::to_uint16(value);

◆ to_uint16() [14/23]

static uint16_t xtd::convert::to_uint16 ( int64_t  value)
static

Convert int64_t to uint16.

Parameters
valueobject to convert.
Returns
A new uint16_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
int64_t value = 42l;
uint16_t result = convert::to_uint16(value);

◆ to_uint16() [15/23]

static uint16_t xtd::convert::to_uint16 ( llong_t  value)
static

Convert llong_t to uint16.

Parameters
valueobject to convert.
Returns
A new uint16_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
llong_t value = 42ll;
uint16_t result = convert::to_uint16(value);

◆ to_uint16() [16/23]

static uint16_t xtd::convert::to_uint16 ( sbyte_t  value)
static

Convert sbyte_t to uint16.

Parameters
valueobject to convert.
Returns
A new uint16_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max().
Examples
sbyte_t value = 42;
uint16_t result = convert::to_uint16(value);

◆ to_uint16() [17/23]

static uint16_t xtd::convert::to_uint16 ( std::any  value)
static

Convert std::any to uint16.

Parameters
valueobject to convert.
Returns
A new uint16_t object converted from value.
Examples
std::any value = 42;
uint16_t result = convert::to_uint16(value);

◆ to_uint16() [18/23]

template<typename type_t >
static uint16_t xtd::convert::to_uint16 ( type_t  value)
inlinestaticnoexcept

Convert type_t to uint16.

Parameters
valueobject to convert.
Returns
A new uint16_t object converted from value.
Examples
address_family value = address_family::inter_network;
uint16_t result = convert::to_uint16(value);

◆ to_uint16() [19/23]

static uint16_t xtd::convert::to_uint16 ( uint16_t  value)
staticnoexcept

Convert uint16_t to uint16.

Parameters
valueobject to convert.
Returns
A new uint16_t object converted from value.
Examples
uint16_t value = 42u;
uint16_t result = convert::to_uint16(value);

◆ to_uint16() [20/23]

static uint16_t xtd::convert::to_uint16 ( uint32_t  value)
static

Convert uint32_t to uint16.

Parameters
valueobject to convert.
Returns
A new uint16_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max().
Examples
uint32_t value = 42u;
uint16_t result = convert::to_uint16(value);

◆ to_uint16() [21/23]

static uint16_t xtd::convert::to_uint16 ( uint64_t  value)
static

Convert uint64_t to uint16.

Parameters
valueobject to convert.
Returns
A new uint16_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max().
Examples
uint64t value = 42ul;
uint16_t result = convert::to_uint16(value);

◆ to_uint16() [22/23]

static uint16_t xtd::convert::to_uint16 ( ullong_t  value)
static

Convert llong_t to uint16.

Parameters
valueobject to convert.
Returns
A new uint16_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max().
Examples
ullong_t value = 42ull;
uint16_t result = convert::to_uint16(value);

◆ to_uint16() [23/23]

static uint16_t xtd::convert::to_uint16 ( wchar_t  value)
staticnoexcept

Convert char32_t to uint16.

Parameters
valueobject to convert.
Returns
A new uint16_t object converted from value.
Examples
wchar_t value = L'a';
uint16_t result = convert::to_uint16(value);

◆ to_uint32() [1/23]

static uint32_t xtd::convert::to_uint32 ( bool  value)
staticnoexcept

Convert bool to uint32.

Parameters
valueobject to convert.
Returns
A new uint32_t object converted from value.
Examples
bool value = true;
uint32_t result = convert::to_uint32(value);
static uint32_t to_uint32(std::any value)
Convert std::any to uint32.

◆ to_uint32() [2/23]

static uint32_t xtd::convert::to_uint32 ( byte_t  value)
staticnoexcept

Convert byte_t to uint32.

Parameters
valueobject to convert.
Returns
A new uint32_t object converted from value.
Examples
byte_t value = 42;
uint32_t result = convert::to_uint32(value);

◆ to_uint32() [3/23]

static uint32_t xtd::convert::to_uint32 ( char  value)
staticnoexcept

Convert char to uint32.

Parameters
valueobject to convert.
Returns
A new uint32_t object converted from value.
Examples
char value = 'a';
uint32_t result = convert::to_uint32(value);

◆ to_uint32() [4/23]

static uint32_t xtd::convert::to_uint32 ( char16_t  value)
staticnoexcept

Convert char16_t to uint32.

Parameters
valueobject to convert.
Returns
A new uint32_t object converted from value.
Examples
char16_t value = u'a';
uint32_t result = convert::to_uint32(value);

◆ to_uint32() [5/23]

static uint32_t xtd::convert::to_uint32 ( char32_t  value)
staticnoexcept

Convert char32_t to uint32.

Parameters
valueobject to convert.
Returns
A new uint32_t object converted from value.
Examples
char32_t value = U'a';
uint32_t result = convert::to_uint32(value);

◆ to_uint32() [6/23]

static uint32_t xtd::convert::to_uint32 ( char8_t  value)
staticnoexcept

Convert char8_t to uint32.

Parameters
valueobject to convert.
Returns
A new uint32_t object converted from value.
Examples
char8_t value = u8'a';
uint32_t result = convert::to_uint32(value);

◆ to_uint32() [7/23]

static uint32_t xtd::convert::to_uint32 ( const xtd::ustring value)
static

Convert string to uint32.

Parameters
valueobject to convert.
Returns
A new uint32_t object converted from value.
Exceptions
xtd::atgument_exceptionvalue does not represent a byte.
Examples
ustring value = "42";
uint32_t result = convert::to_uint32(value);

◆ to_uint32() [8/23]

static uint32_t xtd::convert::to_uint32 ( const xtd::ustring value,
byte_t  from_base 
)
static

Convert string to uint32.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new uintt32_t object converted from value.
Exceptions
xtd::atgument_exceptionvalue does not represent a byte.
Examples
ustring value = "42";
uint32_t result = convert::to_uint32(value);

◆ to_uint32() [9/23]

static uint32_t xtd::convert::to_uint32 ( decimal_t  value)
static

Convert decimal_t to uint32.

Parameters
valueobject to convert.
Remarks
The result is rounded.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Returns
A new uint32_t object converted from value.
Examples
decimal_t value = 42.50l;
uint32_t result = convert::to_uint32(value);

◆ to_uint32() [10/23]

static uint32_t xtd::convert::to_uint32 ( double  value)
static

Convert double to uint32.

Parameters
valueobject to convert.
Returns
A new uint32_t object converted from value.
Remarks
The result is rounded.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
double value = 42.50;
uint32_t result = convert::to_uint32(value);

◆ to_uint32() [11/23]

static uint32_t xtd::convert::to_uint32 ( float  value)
static

Convert float to uint32.

Parameters
valueobject to convert.
Returns
A new uint32_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Remarks
The result is rounded.
Examples
float value = 42.50f;
uint32_t result = convert::to_uint32(value);

◆ to_uint32() [12/23]

static uint32_t xtd::convert::to_uint32 ( int16_t  value)
static

Convert int16_t to uint32.

Parameters
valueobject to convert.
Returns
A new uint32_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max().
Examples
int16_t value = 42;
uint32_t result = convert::to_uint32(value);

◆ to_uint32() [13/23]

static uint32_t xtd::convert::to_uint32 ( int32_t  value)
static

Convert int32_t to uint32.

Parameters
valueobject to convert.
Returns
A new uint32_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
int32_t value = 42;
uint32_t result = convert::to_uint32(value);

◆ to_uint32() [14/23]

static uint32_t xtd::convert::to_uint32 ( int64_t  value)
static

Convert int64_t to uint32.

Parameters
valueobject to convert.
Returns
A new uint32_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
int64_t value = 42l;
uint32_t result = convert::to_uint32(value);

◆ to_uint32() [15/23]

static uint32_t xtd::convert::to_uint32 ( llong_t  value)
static

Convert llong_t to uint32.

Parameters
valueobject to convert.
Returns
A new uint32_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
llong_t value = 42ll;
uint32_t result = convert::to_uint32(value);

◆ to_uint32() [16/23]

static uint32_t xtd::convert::to_uint32 ( sbyte_t  value)
static

Convert sbyte_t to uint32.

Parameters
valueobject to convert.
Returns
A new uint32_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max().
Examples
sbyte_t value = 42;
uint32_t result = convert::to_uint32(value);

◆ to_uint32() [17/23]

static uint32_t xtd::convert::to_uint32 ( std::any  value)
static

Convert std::any to uint32.

Parameters
valueobject to convert.
Returns
A new uint32_t object converted from value.
Examples
std::any value = 42;
uint32_t result = convert::to_uint32(value);

◆ to_uint32() [18/23]

template<typename type_t >
static uint32_t xtd::convert::to_uint32 ( type_t  value)
inlinestaticnoexcept

Convert type_t to uint32.

Parameters
valueobject to convert.
Returns
A new uint32_t object converted from value.
Examples
address_family value = address_family::inter_network;
uint32_t result = convert::to_uint32(value);

◆ to_uint32() [19/23]

static uint32_t xtd::convert::to_uint32 ( uint16_t  value)
staticnoexcept

Convert uint16_t to uint32.

Parameters
valueobject to convert.
Returns
A new uint32_t object converted from value.
Examples
uint16_t value = 42u;
uint32_t result = convert::to_uint32(value);

◆ to_uint32() [20/23]

static uint32_t xtd::convert::to_uint32 ( uint32_t  value)
staticnoexcept

Convert uint32_t to uint32.

Parameters
valueobject to convert.
Returns
A new uint32_t object converted from value.
Examples
uint32_t value = 42u;
uint32_t result = convert::to_uint32(value);

◆ to_uint32() [21/23]

static uint32_t xtd::convert::to_uint32 ( uint64_t  value)
static

Convert uint64_t to uint32.

Parameters
valueobject to convert.
Returns
A new uint32_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max().
Examples
uint64t value = 42ul;
uint32_t result = convert::to_uint32(value);

◆ to_uint32() [22/23]

static uint32_t xtd::convert::to_uint32 ( ullong_t  value)
static

Convert llong_t to uint32.

Parameters
valueobject to convert.
Returns
A new uint32_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max().
Examples
ullong_t value = 42ull;
uint32_t result = convert::to_uint32(value);

◆ to_uint32() [23/23]

static uint32_t xtd::convert::to_uint32 ( wchar_t  value)
staticnoexcept

Convert char32_t to uint32.

Parameters
valueobject to convert.
Returns
A new uint32_t object converted from value.
Examples
wchar_t value = L'a';
uint32_t result = convert::to_uint32(value);

◆ to_uint64() [1/22]

static uint64_t xtd::convert::to_uint64 ( bool  value)
staticnoexcept

Convert bool to uint64.

Parameters
valueobject to convert.
Returns
A new uint64_t object converted from value.
Examples
bool value = true;
uint64_t result = convert::to_uint64(value);
static uint64_t to_uint64(std::any value)
Convert std::any to uint64.

◆ to_uint64() [2/22]

static uint64_t xtd::convert::to_uint64 ( byte_t  value)
staticnoexcept

Convert byte_t to uint64.

Parameters
valueobject to convert.
Returns
A new uint64_t object converted from value.
Examples
byte_t value = 42;
uint64_t result = convert::to_uint64(value);

◆ to_uint64() [3/22]

static uint64_t xtd::convert::to_uint64 ( char  value)
staticnoexcept

Convert char to uint64.

Parameters
valueobject to convert.
Returns
A new uint64_t object converted from value.
Examples
char value = 'a';
uint64_t result = convert::to_uint64(value);

◆ to_uint64() [4/22]

static uint64_t xtd::convert::to_uint64 ( char16_t  value)
staticnoexcept

Convert char16_t to uint64.

Parameters
valueobject to convert.
Returns
A new uint64_t object converted from value.
Examples
char16_t value = u'a';
uint64_t result = convert::to_uint64(value);

◆ to_uint64() [5/22]

static uint64_t xtd::convert::to_uint64 ( char32_t  value)
staticnoexcept

Convert char32_t to uint64.

Parameters
valueobject to convert.
Returns
A new uint64_t object converted from value.
Examples
char32_t value = U'a';
uint64_t result = convert::to_uint64(value);

◆ to_uint64() [6/22]

static uint64_t xtd::convert::to_uint64 ( char8_t  value)
staticnoexcept

Convert char8_t to uint64.

Parameters
valueobject to convert.
Returns
A new uint64_t object converted from value.
Examples
char8_t value = u8'a';
uint64_t result = convert::to_uint64(value);

◆ to_uint64() [7/22]

static uint64_t xtd::convert::to_uint64 ( const xtd::ustring value)
static

Convert string to uint64.

Parameters
valueobject to convert.
Returns
A new uint64_t object converted from value.
Examples
ustring value = "42";
uint64_t result = convert::to_uint64(value);

◆ to_uint64() [8/22]

static uint64_t xtd::convert::to_uint64 ( const xtd::ustring value,
byte_t  from_base 
)
static

Convert string to uint64.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new intt16_t object converted from value.
Exceptions
xtd::atgument_exceptionvalue does not represent a uint64.
Examples
ustring value = "42";
uuint64_t result = convert::to_uint64(value);

◆ to_uint64() [9/22]

static uint64_t xtd::convert::to_uint64 ( decimal_t  value)
static

Convert decimal_t to uint64.

Parameters
valueobject to convert.
Remarks
The result is rounded.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Returns
A new uint64_t object converted from value.
Examples
decimal_t value = 42.50l;
uint64_t result = convert::to_uint64(value);

◆ to_uint64() [10/22]

static uint64_t xtd::convert::to_uint64 ( double  value)
static

Convert double to uint64.

Parameters
valueobject to convert.
Returns
A new uint64_t object converted from value.
Remarks
The result is rounded.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
double value = 42.50;
uint64_t result = convert::to_uint64(value);

◆ to_uint64() [11/22]

static uint64_t xtd::convert::to_uint64 ( float  value)
static

Convert float to uint64.

Parameters
valueobject to convert.
Returns
A new uint64_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Remarks
The result is rounded.
Examples
float value = 42.50f;
uint64_t result = convert::to_uint64(value);

◆ to_uint64() [12/22]

static uint64_t xtd::convert::to_uint64 ( int16_t  value)
static

Convert int16_t to uint64.

Parameters
valueobject to convert.
Returns
A new uint64_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max().
Examples
int16_t value = 42;
uint64_t result = convert::to_uint64(value);

◆ to_uint64() [13/22]

static uint64_t xtd::convert::to_uint64 ( int32_t  value)
static

Convert int32_t to uint64.

Parameters
valueobject to convert.
Returns
A new uint64_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
int32_t value = 42;
uint64_t result = convert::to_uint64(value);

◆ to_uint64() [14/22]

static uint64_t xtd::convert::to_uint64 ( int64_t  value)
static

Convert int64_t to uint64.

Parameters
valueobject to convert.
Returns
A new uint64_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
int64_t value = 42l;
uint64_t result = convert::to_uint64(value);

◆ to_uint64() [15/22]

static uint64_t xtd::convert::to_uint64 ( llong_t  value)
static

Convert llong_t to uint64.

Parameters
valueobject to convert.
Returns
A new uint64_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
llong_t value = 42ll;
uint64_t result = convert::to_uint64(value);

◆ to_uint64() [16/22]

static uint64_t xtd::convert::to_uint64 ( sbyte_t  value)
static

Convert sbyte_t to uint64.

Parameters
valueobject to convert.
Returns
A new uint64_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max().
Examples
sbyte_t value = 42;
uint64_t result = convert::to_uint64(value);

◆ to_uint64() [17/22]

static uint64_t xtd::convert::to_uint64 ( std::any  value)
static

Convert std::any to uint64.

Parameters
valueobject to convert.
Returns
A new uint64_t object converted from value.
Examples
std::any value = 42;
uint64_t result = convert::to_uint64(value);

◆ to_uint64() [18/22]

static uint64_t xtd::convert::to_uint64 ( uint16_t  value)
staticnoexcept

Convert uint16_t to uint64.

Parameters
valueobject to convert.
Returns
A new uint64_t object converted from value.
Examples
uint16_t value = 42u;
uint64_t result = convert::to_uint64(value);

◆ to_uint64() [19/22]

static uint64_t xtd::convert::to_uint64 ( uint32_t  value)
staticnoexcept

Convert uint32_t to uint64.

Parameters
valueobject to convert.
Returns
A new uint64_t object converted from value.
Examples
uint32_t value = 42u;
uint64_t result = convert::to_uint64(value);

◆ to_uint64() [20/22]

static uint64_t xtd::convert::to_uint64 ( uint64_t  value)
staticnoexcept

Convert uint64_t to uint64.

Parameters
valueobject to convert.
Returns
A new uint64_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max().
Examples
uint64t value = 42ul;
uint64_t result = convert::to_uint64(value);

◆ to_uint64() [21/22]

static uint64_t xtd::convert::to_uint64 ( ullong_t  value)
staticnoexcept

Convert llong_t to uint64.

Parameters
valueobject to convert.
Returns
A new uint64_t object converted from value.
Examples
ullong_t value = 42ull;
uint64_t result = convert::to_uint64(value);

◆ to_uint64() [22/22]

static uint64_t xtd::convert::to_uint64 ( wchar_t  value)
staticnoexcept

Convert char32_t to uint64.

Parameters
valueobject to convert.
Returns
A new uint64_t object converted from value.
Examples
wchar_t value = L'a';
uint64_t result = convert::to_uint64(value);

◆ to_ullong()

template<typename type_t >
static ullong_t xtd::convert::to_ullong ( type_t  value)
inlinestaticnoexcept

Convert type_t to ullong.

Parameters
valueobject to convert.
Returns
A new ullong_t object converted from value.
Examples
address_family value = address_family::inter_network;
ullong_t result = convert::to_ullong(value);
static ullong_t to_ullong(type_t value) noexcept
Convert type_t to ullong.
Definition: convert.h:4731

◆ to_ustring() [1/32]

static ustring xtd::convert::to_ustring ( bool  value)
staticnoexcept

Convert bool to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Examples
bool value = true;
ustring result = convert::to_ustring(value);
static ustring to_ustring(std::any value)
Convert std::any to ustring.

◆ to_ustring() [2/32]

static ustring xtd::convert::to_ustring ( byte_t  value)
staticnoexcept

Convert byte_t to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Examples
byte_t value = 42;
ustring result = convert::to_ustring(value);

◆ to_ustring() [3/32]

static ustring xtd::convert::to_ustring ( byte_t  value,
byte_t  from_base 
)
static

Convert string to ustring.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new ustring object converted from value.
Exceptions
xtd::atgument_exceptionfrom_base is not 2 or 8 or 10 orr 16.
Examples
byte_t value = 42;
ustring result = convert::to_ustring(value, 16);

◆ to_ustring() [4/32]

static ustring xtd::convert::to_ustring ( char  value)
staticnoexcept

Convert char to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Examples
char value = 'a';
ustring result = convert::to_ustring(value);

◆ to_ustring() [5/32]

static ustring xtd::convert::to_ustring ( char16_t  value)
staticnoexcept

Convert char16_t to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Examples
char16_t value = u'a';
ustring result = convert::to_ustring(value);

◆ to_ustring() [6/32]

static ustring xtd::convert::to_ustring ( char32_t  value)
staticnoexcept

Convert char32_t to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Examples
char32_t value = U'a';
ustring result = convert::to_ustring(value);

◆ to_ustring() [7/32]

static ustring xtd::convert::to_ustring ( char8_t  value)
staticnoexcept

Convert char8_t to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Examples
char8_t value = u8'a';
ustring result = convert::to_ustring(value);

◆ to_ustring() [8/32]

static ustring xtd::convert::to_ustring ( const xtd::ustring value)
static

Convert string to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Examples
ustring value = "42";
ustring result = convert::to_ustring(value);

◆ to_ustring() [9/32]

static ustring xtd::convert::to_ustring ( decimal_t  value)
static

Convert decimal_t to ustring.

Parameters
valueobject to convert.
Remarks
The result is rounded.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Returns
A new ustring object converted from value.
Examples
decimal_t value = 42.50l;
ustring result = convert::to_ustring(value);

◆ to_ustring() [10/32]

static ustring xtd::convert::to_ustring ( double  value)
static

Convert double to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Remarks
The result is rounded.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
double value = 42.50;
ustring result = convert::to_ustring(value);

◆ to_ustring() [11/32]

static ustring xtd::convert::to_ustring ( float  value)
static

Convert float to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Remarks
The result is rounded.
Examples
float value = 42.50f;
ustring result = convert::to_ustring(value);

◆ to_ustring() [12/32]

static ustring xtd::convert::to_ustring ( int16_t  value)
static

Convert int16_t to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max().
Examples
int16_t value = 42;
ustring result = convert::to_ustring(value);

◆ to_ustring() [13/32]

static ustring xtd::convert::to_ustring ( int16_t  value,
byte_t  from_base 
)
static

Convert string to ustring.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new ustring object converted from value.
Exceptions
xtd::atgument_exceptionfrom_base is not 2 or 8 or 10 orr 16.
Examples
int16_t value = 42;
ustring result = convert::to_ustring(value, 16);

◆ to_ustring() [14/32]

static ustring xtd::convert::to_ustring ( int32_t  value)
static

Convert int32_t to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
int32_t value = 42;
ustring result = convert::to_ustring(value);

◆ to_ustring() [15/32]

static ustring xtd::convert::to_ustring ( int32_t  value,
byte_t  from_base 
)
static

Convert string to ustring.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new ustring object converted from value.
Exceptions
xtd::atgument_exceptionfrom_base is not 2 or 8 or 10 orr 16.
Examples
int32_t value = 42;
ustring result = convert::to_ustring(value, 16);

◆ to_ustring() [16/32]

static ustring xtd::convert::to_ustring ( int64_t  value)
static

Convert int64_t to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
int64_t value = 42l;
ustring result = convert::to_ustring(value);

◆ to_ustring() [17/32]

static ustring xtd::convert::to_ustring ( int64_t  value,
byte_t  from_base 
)
static

Convert string to ustring.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new ustring object converted from value.
Exceptions
xtd::atgument_exceptionfrom_base is not 2 or 8 or 10 orr 16.
Examples
int64_t value = 42;
ustring result = convert::to_ustring(value, 16);

◆ to_ustring() [18/32]

static ustring xtd::convert::to_ustring ( llong_t  value)
static

Convert llong_t to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
llong_t value = 42ll;
ustring result = convert::to_ustring(value);

◆ to_ustring() [19/32]

static ustring xtd::convert::to_ustring ( llong_t  value,
byte_t  from_base 
)
static

Convert string to ustring.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new ustring object converted from value.
Exceptions
xtd::atgument_exceptionfrom_base is not 2 or 8 or 10 orr 16.
Examples
llong_t value = 42;
ustring result = convert::to_ustring(value, 16);

◆ to_ustring() [20/32]

static ustring xtd::convert::to_ustring ( sbyte_t  value)
static

Convert sbyte_t to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max().
Examples
sbyte_t value = 42;
ustring result = convert::to_ustring(value);

◆ to_ustring() [21/32]

static ustring xtd::convert::to_ustring ( sbyte_t  value,
byte_t  from_base 
)
static

Convert string to ustring.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new ustring object converted from value.
Exceptions
xtd::atgument_exceptionfrom_base is not 2 or 8 or 10 orr 16.
Examples
sbyte_t value = 42;
ustring result = convert::to_ustring(value, 16);

◆ to_ustring() [22/32]

static ustring xtd::convert::to_ustring ( std::any  value)
static

Convert std::any to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Examples
std::any value = 42;
ustring result = convert::to_string(value);

◆ to_ustring() [23/32]

template<typename type_t >
static ustring xtd::convert::to_ustring ( type_t  value)
inlinestaticnoexcept

Convert type_t to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Examples
address_family value = address_family::inter_network;
ustring result = convert::to_ustring(value);

◆ to_ustring() [24/32]

static ustring xtd::convert::to_ustring ( uint16_t  value)
staticnoexcept

Convert uint16_t to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Examples
uint16_t value = 42u;
ustring result = convert::to_ustring(value);

◆ to_ustring() [25/32]

static ustring xtd::convert::to_ustring ( uint16_t  value,
byte_t  from_base 
)
static

Convert string to ustring.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new ustring object converted from value.
Exceptions
xtd::atgument_exceptionfrom_base is not 2 or 8 or 10 orr 16.
Examples
uint16_t value = 42u;
ustring result = convert::to_ustring(value, 16);

◆ to_ustring() [26/32]

static ustring xtd::convert::to_ustring ( uint32_t  value)
staticnoexcept

Convert uint32_t to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Examples
uint32_t value = 42u;
ustring result = convert::to_ustring(value);

◆ to_ustring() [27/32]

static ustring xtd::convert::to_ustring ( uint32_t  value,
byte_t  from_base 
)
static

Convert string to ustring.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new ustring object converted from value.
Exceptions
xtd::atgument_exceptionfrom_base is not 2 or 8 or 10 orr 16.
Examples
uint32_t value = 42;
ustring result = convert::to_ustring(value, 16);

◆ to_ustring() [28/32]

static ustring xtd::convert::to_ustring ( uint64_t  value)
staticnoexcept

Convert uint64_t to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max().
Examples
uint64t value = 42u;
ustring result = convert::to_ustring(value);

◆ to_ustring() [29/32]

static ustring xtd::convert::to_ustring ( uint64_t  value,
byte_t  from_base 
)
static

Convert string to ustring.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new ustring object converted from value.
Exceptions
xtd::atgument_exceptionfrom_base is not 2 or 8 or 10 orr 16.
Examples
uint64_t value = 42ul;
ustring result = convert::to_ustring(value, 16);

◆ to_ustring() [30/32]

static ustring xtd::convert::to_ustring ( ullong_t  value)
staticnoexcept

Convert llong_t to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Examples
ullong_t value = 42ull;
ustring result = convert::to_ustring(value);

◆ to_ustring() [31/32]

static ustring xtd::convert::to_ustring ( ullong_t  value,
byte_t  from_base 
)
static

Convert string to ustring.

Parameters
valueobject to convert.
from_baseThe base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new ustring object converted from value.
Exceptions
xtd::atgument_exceptionfrom_base is not 2 or 8 or 10 orr 16.
Examples
ullong_t value = 42ull;
ustring result = convert::to_ustring(value, 16);

◆ to_ustring() [32/32]

static ustring xtd::convert::to_ustring ( wchar_t  value)
staticnoexcept

Convert char32_t to ustring.

Parameters
valueobject to convert.
Returns
A new ustring object converted from value.
Examples
wchar_t value = L'a';
ustring result = convert::to_ustring(value);

◆ to_wchar() [1/22]

static wchar_t xtd::convert::to_wchar ( bool  value)
static

Convert bool to wchar.

Parameters
valueobject to convert.
Returns
A new wchar_t object converted from value.
Examples
bool value = true;
wchar_t result = convert::to_wchar(value);
static wchar_t to_wchar(std::any value)
Convert std::any to wchar.

◆ to_wchar() [2/22]

static wchar_t xtd::convert::to_wchar ( byte_t  value)
staticnoexcept

Convert byte_t to wchar.

Parameters
valueobject to convert.
Returns
A new wchar_t object converted from value.
Examples
byte_t value = 42;
wchar_t result = convert::to_wchar(value);

◆ to_wchar() [3/22]

static wchar_t xtd::convert::to_wchar ( char  value)
staticnoexcept

Convert char to wchar.

Parameters
valueobject to convert.
Returns
A new wchar_t object converted from value.
Examples
char value = 'a';
wchar_t result = convert::to_wchar(value);

◆ to_wchar() [4/22]

static wchar_t xtd::convert::to_wchar ( char16_t  value)
staticnoexcept

Convert char16_t to wchar.

Parameters
valueobject to convert.
Returns
A new wchar_t object converted from value.
Examples
char16_t value = u'a';
wchar_t result = convert::to_wchar(value);

◆ to_wchar() [5/22]

static wchar_t xtd::convert::to_wchar ( char32_t  value)
static

Convert char32_t to wchar.

Parameters
valueobject to convert.
Returns
A new wchar_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
char32_t value = U'a';
wchar_t result = convert::to_wchar(value);

◆ to_wchar() [6/22]

static wchar_t xtd::convert::to_wchar ( char8_t  value)
staticnoexcept

Convert char8_t to wchar.

Parameters
valueobject to convert.
Returns
A new wchar_t object converted from value.
Examples
char8_t value = u8'a';
wchar_t result = convert::to_wchar(value);

◆ to_wchar() [7/22]

static wchar_t xtd::convert::to_wchar ( const xtd::ustring value)
static

Convert string to wchar.

Parameters
valueobject to convert.
Returns
A new wchar_t object converted from value.
Exceptions
xtd::atgument_exceptionvalue does not represent a byte.
Examples
ustring value = "42";
wchar_t result = convert::to_wchar(value);

◆ to_wchar() [8/22]

static wchar_t xtd::convert::to_wchar ( decimal_t  value)
static

Convert decimal_t to wchar.

Parameters
valueobject to convert.
Remarks
The result is rounded.
Returns
A new wchar_t object converted from value.
Examples
decimal_t value = 42.50l;
wchar_t result = convert::to_wchar(value);

◆ to_wchar() [9/22]

static wchar_t xtd::convert::to_wchar ( double  value)
static

Convert double to wchar.

Parameters
valueobject to convert.
Returns
A new wchar_t object converted from value.
Remarks
The result is rounded.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
double value = 42.50;
wchar_t result = convert::to_wchar(value);

◆ to_wchar() [10/22]

static wchar_t xtd::convert::to_wchar ( float  value)
static

Convert float to wchar.

Parameters
valueobject to convert.
Returns
A new wchar_t object converted from value.
Remarks
The result is rounded.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
float value = 42.50f;
wchar_t result = convert::to_wchar(value);

◆ to_wchar() [11/22]

static wchar_t xtd::convert::to_wchar ( int16_t  value)
static

Convert int16_t to wchar.

Parameters
valueobject to convert.
Returns
A new wchar_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
int16_t value = 42;
wchar_t result = convert::to_wchar(value);

◆ to_wchar() [12/22]

static wchar_t xtd::convert::to_wchar ( int32_t  value)
static

Convert int32_t to wchar.

Parameters
valueobject to convert.
Returns
A new wchar_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
int32_t value = 42;
wchar_t result = convert::to_wchar(value);

◆ to_wchar() [13/22]

static wchar_t xtd::convert::to_wchar ( int64_t  value)
static

Convert int64_t to wchar.

Parameters
valueobject to convert.
Returns
A new wchar_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
int64_t value = 42l;
wchar_t result = convert::to_wchar(value);

◆ to_wchar() [14/22]

static wchar_t xtd::convert::to_wchar ( llong_t  value)
static

Convert llong_t to wchar.

Parameters
valueobject to convert.
Returns
A new wchar_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max() or is less than 0.
Examples
llong_t value = 42ll;
wchar_t result = convert::to_wchar(value);

◆ to_wchar() [15/22]

static wchar_t xtd::convert::to_wchar ( sbyte_t  value)
static

Convert sbyte_t to wchar.

Parameters
valueobject to convert.
Returns
A new wchar_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is less than 0.
Examples
sbyte_t value = 42;
wchar_t result = convert::to_wchar(value);

◆ to_wchar() [16/22]

static wchar_t xtd::convert::to_wchar ( std::any  value)
static

Convert std::any to wchar.

Parameters
valueobject to convert.
Returns
A new wchar_t object converted from value.
Examples
std::any value = 42;
wchar_t result = convert::to_wchar(value);

◆ to_wchar() [17/22]

template<typename type_t >
static wchar_t xtd::convert::to_wchar ( type_t  value)
inlinestaticnoexcept

Convert type_t to wchar.

Parameters
valueobject to convert.
Returns
A new wchar_t object converted from value.
Examples
address_family value = address_family::inter_network;
wchar_t result = convert::to_wchar(value);

◆ to_wchar() [18/22]

static wchar_t xtd::convert::to_wchar ( uint16_t  value)
staticnoexcept

Convert uint16_t to wchar.

Parameters
valueobject to convert.
Returns
A new wchar_t object converted from value.
Examples
uint16_t value = 42u;
wchar_t result = convert::to_wchar(value);

◆ to_wchar() [19/22]

static wchar_t xtd::convert::to_wchar ( uint32_t  value)
static

Convert uint32_t to wchar.

Parameters
valueobject to convert.
Returns
A new wchar_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max().
Examples
uint32_t value = 42u;
wchar_t result = convert::to_wchar(value);

◆ to_wchar() [20/22]

static wchar_t xtd::convert::to_wchar ( uint64_t  value)
static

Convert uint64_t to wchar.

Parameters
valueobject to convert.
Returns
A new wchar_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max().
Examples
uint64t value = 42ul;
wchar_t result = convert::to_wchar(value);

◆ to_wchar() [21/22]

static wchar_t xtd::convert::to_wchar ( ullong_t  value)
static

Convert llong_t to wchar.

Parameters
valueobject to convert.
Returns
A new wchar_t object converted from value.
Exceptions
xtd::overflow_exceptionvalue represents a number that is greater than std::numric_limit<byte_t>::max().
Examples
ullong_t value = 42ull;
wchar_t result = convert::to_wchar(value);

◆ to_wchar() [22/22]

static wchar_t xtd::convert::to_wchar ( wchar_t  value)
staticnoexcept

Convert char32_t to wchar.

Parameters
valueobject to convert.
Returns
A new wchar_t object converted from value.
Examples
wchar_t value = L'a';
wchar_t result = convert::to_wchar(value);

The documentation for this class was generated from the following file: