5#include "../../object.hpp"
6#include "../../string.hpp"
31 const xtd::string& value()
const noexcept {
return value_;}
32 template<
typename value_t>
33 uintptr value()
const noexcept {
return xtd::parse<value_t>(value_);}
41 sbyte to_int8()
const {
return xtd::parse<sbyte>(value_);}
42 int16 to_int16()
const {
return xtd::parse<int16>(value_);}
43 int32 to_int32()
const {
return xtd::parse<int32>(value_);}
44 int64 to_int64()
const {
return xtd::parse<int64>(value_);}
45 intptr to_intptr()
const {
return xtd::parse<intptr>(value_);}
48 xtd::byte to_uint8()
const {
return xtd::parse<xtd::byte>(value_);}
49 uint16 to_uint16()
const {
return xtd::parse<uint16>(value_);}
50 uint32 to_uint32()
const {
return xtd::parse<uint32>(value_);}
51 uint64 to_uint64()
const {
return xtd::parse<uint64>(value_);}
52 uintptr to_uintptr()
const {
return xtd::parse<uintptr>(value_);}
53 template<
typename value_t>
54 uintptr to()
const {
return xtd::parse<value_t>(value_);}
60 static property from(
bool value) {
return property(
string::format(
"{}", value));}
61 static property from(
double value) {
return property(
string::format(
"{}", value));}
62 static property from(
float value) {
return property(
string::format(
"{}", value));}
72 template<
typename value_t>
73 static property from(value_t value) {
return property(
string::format(
"{}", value));}
Represents text as a sequence of character units.
Definition basic_string.hpp:79
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:42
Definition property.hpp:13
xtd::string to_string() const noexcept override
Returns a xtd::string that represents the current object.
Definition property.hpp:47
xtd::basic_string< char > string
Represents text as a sequence of UTF-8 code units.
Definition __string_definitions.hpp:43
int16_t int16
Represents a 16-bit signed integer.
Definition int16.hpp:23
int32_t int32
Represents a 32-bit signed integer.
Definition int32.hpp:23
int64_t int64
Represents a 64-bit signed integer.
Definition int64.hpp:23
int8_t sbyte
Represents a 8-bit signed integer.
Definition sbyte.hpp:23
uint32_t uint32
Represents a 32-bit unsigned integer.
Definition uint32.hpp:23
uintmax_t uintptr
Represent a pointer or a handle.
Definition uintptr.hpp:23
intmax_t intptr
Represent a pointer or a handle.
Definition intptr.hpp:23
uint64_t uint64
Represents a 64-bit unsigned integer.
Definition uint64.hpp:23
uint8_t byte
Represents a 8-bit unsigned integer.
Definition byte.hpp:23
uint16_t uint16
Represents a 16-bit unsigned integer.
Definition uint16.hpp:23
double parse< double >(const std::string &str, number_styles styles)
Convert a string into a type.
Definition parse.hpp:209
bool parse< bool >(const std::string &str)
Convert a string into a type.
Definition parse.hpp:371
float parse< float >(const std::string &str, number_styles styles)
Convert a string into a type.
Definition parse.hpp:191
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10