30 template<
typename enum_t>
64 explicit operator auto()
const noexcept {
return xtd::enum_collection<xtd::number_styles> {{
xtd::number_styles::none,
"none"}, {
xtd::number_styles::allow_leading_white,
"allow_leading_white"}, {
xtd::number_styles::allow_trailing_white,
"allow_trailing_white"}, {
xtd::number_styles::allow_leading_sign,
"allow_leading_sign"}, {
xtd::number_styles::allow_trailing_sign,
"allow_trailing_sign"}, {
xtd::number_styles::allow_parentheses,
"allow_parentheses"}, {
xtd::number_styles::allow_decimal_point,
"allow_decimal_point"}, {
xtd::number_styles::allow_thousands,
"allow_thousands"}, {
xtd::number_styles::allow_exponent,
"allow_exponent"}, {
xtd::number_styles::allow_currency_symbol,
"allow_currency_symbol"}, {
xtd::number_styles::allow_hex_specifier,
"allow_hex_specifier"}, {
xtd::number_styles::allow_binary_specifier,
"allow_binary_specifier"}, {
xtd::number_styles::allow_octal_specifier,
"allow_octal_specifier"}, {
xtd::number_styles::integer,
"integer"}, {
xtd::number_styles::number,
"number"}, {
xtd::number_styles::fixed_point,
"fixed_point"}, {
xtd::number_styles::currency,
"currency"}, {
xtd::number_styles::any,
"any"}, {
xtd::number_styles::hex_number,
"hex_number"}, {
xtd::number_styles::binary_number,
"binary_number"}, {
xtd::number_styles::octal_number,
"octal_number"}};}
Contains xtd::enum_attribute enum class.
string_comparison
Specifies the culture, case, and sort rules to be used by certain overloads of the xtd::string::compa...
Definition string_comparison.hpp:14
number_styles
Determines the styles permitted in numeric string arguments that are passed to the xtd::parse and xtd...
Definition number_styles.hpp:16
string_split_options
Specifies whether applicable xtd::string::split method overloads include or omit empty substrings fro...
Definition string_split_options.hpp:14
enum_attribute
Specifies the enum attribute.
Definition enum_attribute.hpp:22
std::vector< xtd::collections::generic::key_value_pair< enum_t, xtd::string > > enum_collection
Represents a pair of an enum_t value and a string of an enum of type enum_t.
Definition enum_collection.hpp:22
@ ordinal
Compare strings using ordinal (binary) sort rules.
@ ordinal_ignore_case
Compare strings using ordinal (binary) sort rules and ignoring the case of the strings being compared...
@ allow_thousands
Indicates that the numeric string can have group separators, such as symbols that separate hundreds f...
@ allow_decimal_point
Indicates that the numeric string can have a decimal point. If the number_styles value includes the a...
@ any
Indicates that all styles except allow_binary_specifier, allow_octal_specifier and allow_hex_specifie...
@ integer
Indicates that the allow_leading_white, allow_trailing_white, and allow_leading_sign styles are used....
@ currency
Indicates that all styles except allow_exponent, allow_hex_specifier, allow_binary_specifier and allo...
@ allow_trailing_sign
Indicates that the numeric string can have a trailing sign. Valid trailing sign characters are determ...
@ allow_leading_sign
Indicates that the numeric string can have a leading sign.
@ none
Indicates that no style elements, such as leading or trailing white space, thousands separators,...
@ allow_parentheses
Indicates that the numeric string can have one pair of parentheses enclosing the number....
@ binary_number
Indicates that the allow_leading_white, allow_trailing_white, and allow_binary_specifier styles are u...
@ allow_exponent
Indicates that the numeric string can be in exponential notation. The allow_exponent flag allows the ...
@ allow_hex_specifier
Indicates that the numeric string represents a hexadecimal value. Valid hexadecimal values include th...
@ fixed_point
Indicates that the allow_leading_white, allow_trailing_white, allow_leading_sign, allow_decimal_point...
@ allow_octal_specifier
Indicates that the numeric string represents a octal value. Valid octal values include the numeric di...
@ allow_leading_white
Indicates that leading white-space characters can be present in the parsed string....
@ octal_number
Indicates that the allow_leading_white, allow_trailing_white, and allow_octal_specifier styles are us...
@ number
Indicates that the allow_leading_white, allow_trailing_white, allow_leading_sign, allow_trailing_sign...
@ allow_trailing_white
Indicates that trailing white-space characters can be present in the parsed string....
@ allow_currency_symbol
Indicates that the numeric string can contain a currency symbol. Valid currency symbols are determine...
@ hex_number
Indicates that the allow_leading_white, allow_trailing_white, and allow_hex_specifier styles are used...
@ allow_binary_specifier
Indicates that the numeric string represents a binary value. Valid binary values include the numeric ...
@ none
The return value includes array elements that contain an empty string.
@ remove_empty_entries
The return value does not include array elements that contain an empty string.
@ flags
Enum flags attribute.
@ standard
Enum standard attribute. The default value.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10
Provides the registration struct for enumerations.
Definition enum_register.hpp:38
Provides the set attribute struct for enumerations.
Definition enum_set_attribute.hpp:31