Represents a boxed char object.
Public Static Methods | |
static bool | is_ascii (type_t c) noexcept |
Returns true if c is an ASCII character ([ U+0000..U+007F ]). | |
static bool | is_ascii (const string &s, size_t index) |
Indicates whether the character at the specified position in a specified string is an ASCII character ([ U+0000..U+007F ]). | |
static bool | is_control (type_t c) noexcept |
Indicates whether the specified Unicode character is categorized as a control character. | |
static bool | is_control (const string &s, size_t index) |
Indicates whether the character at the specified position in a specified string is categorized as a control character. | |
static bool | is_digit (type_t c) noexcept |
Indicates whether the specified Unicode character is categorized as a decimal digit. | |
static bool | is_digit (const string &s, size_t index) |
Indicates whether the character at the specified position in a specified string is categorized as a decimal digit. | |
static bool | is_letter (type_t c) noexcept |
Indicates whether the specified Unicode character is categorized as a Unicode letter. | |
static bool | is_letter (const string &s, size_t index) |
Indicates whether the character at the specified position in a specified string is categorized as a Unicode letter. | |
static bool | is_letter_or_digit (type_t c) noexcept |
Indicates whether a Unicode character is categorized as a letter or a decimal digit. | |
static bool | is_letter_or_digit (const string &s, size_t index) |
Indicates whether the character at the specified position in a specified string is categorized as a letter or a decimal digit. | |
static bool | is_lower (type_t c) noexcept |
ndicates whether the specified Unicode character is categorized as a lowercase letter. | |
static bool | is_lower (const string &s, size_t index) |
Indicates whether the character at the specified position in a specified string is categorized as a lowercase letter. | |
static bool | is_number (type_t c) noexcept |
Indicates whether a Unicode character is categorized as a number. | |
static bool | is_number (const string &s, size_t index) |
Indicates whether the character at the specified position in a specified string is categorized as a number. | |
static bool | is_punctuation (type_t c) noexcept |
Indicates whether the specified Unicode character is categorized as a punctuation mark. | |
static bool | is_punctuation (const string &s, size_t index) |
Indicates whether the character at the specified position in a specified string is categorized as a punctuation mark. | |
static bool | is_separator (type_t c) noexcept |
Indicates whether the specified Unicode character is categorized as a separator character. | |
static bool | is_separator (const string &s, size_t index) |
Indicates whether the character at the specified position in a specified string is categorized as a separator character. | |
static bool | is_symbol (type_t c) noexcept |
Indicates whether the specified Unicode character is categorized as a symbol character. | |
static bool | is_symbol (const string &s, size_t index) |
Indicates whether the character at the specified position in a specified string is categorized as a symbol character. | |
static bool | is_upper (type_t c) noexcept |
Indicates whether the specified Unicode character is categorized as an uppercase letter. | |
static bool | is_upper (const string &s, size_t index) |
Indicates whether the character at the specified position in a specified string is categorized as an uppercase letter. | |
static bool | is_white_space (type_t c) noexcept |
Indicates whether the specified Unicode character is categorized as white space. | |
static bool | is_white_space (const string &s, size_t index) |
Indicates whether the character at the specified position in a specified string is categorized as white space. | |
static char | to_lower (type_t c) noexcept |
Converts the value of a Unicode character to its lowercase equivalent. | |
static char | to_upper (type_t c) noexcept |
Converts the value of a Unicode character to its uppercase equivalent. | |
Additional Inherited Members | |
![]() | |
using | value_type = type_t |
using | reference = type_t & |
Represents the reference type. | |
using | const_reference = const type_t & |
Represents the cont reference type. | |
using | pointer = type_t * |
Represents the reference type. | |
using | const_pointer = const type_t * |
Represents the cont reference type. | |
![]() | |
value_type | value |
Gets or sets the underlying value. | |
![]() | |
static constexpr type_t | max_value |
Represents the largest possible value of type_t. This field is constant. | |
static constexpr type_t | min_value |
Represents the smallest possible value of type_t. This field is constant. | |
![]() | |
box ()=default | |
Initialize a new xtd::box object. | |
box (const_reference value) | |
Initialize a new xtd::box object with specified value. | |
template<class ... args_t> | |
box (args_t &&...args) | |
Initialize a new xtd::box object with specified value. | |
operator value_type () const noexcept | |
Cast operator to the value type. | |
int32 | compare_to (const box &value) const noexcept override |
Compares the current instance with another object of the same type. | |
bool | equals (const object &obj) const noexcept override |
Determines whether the specified object is equal to the current object. | |
bool | equals (const box &value) const noexcept override |
Indicates whether the current object is equal to another object of the same type. | |
xtd::size | get_hash_code () const noexcept override |
Serves as a hash function for a particular type. | |
xtd::string | to_string () const noexcept override |
Returns a xtd::string that represents the current object. | |
xtd::string | to_string (const xtd::string &format) const |
Converts the value of this instance to its equivalent string representation, using the specified format. | |
xtd::string | to_string (const xtd::string &format, const std::locale &loc) const override |
Converts the value of this instance to its equivalent string representation, using the specified format, and locale. | |
![]() | |
object ()=default | |
Create a new instance of the ultimate base class object. | |
virtual type_object | get_type () const noexcept |
Gets the type of the current instance. | |
template<class object_t > | |
xtd::uptr< object_t > | memberwise_clone () const |
Creates a shallow copy of the current object. | |
![]() | |
![]() | |
![]() | |
![]() | |
static type_t | parse (const xtd::string &value, xtd::number_styles styles) |
Converts the string to its type_t equivalent. | |
static bool | parse (const xtd::string &value, type_t &result, xtd::number_styles styles) |
Converts the string to its type_t equivalent. | |
![]() | |
static value_type | parse (const xtd::string &value) |
Converts the string to its value_type equivalent. | |
static bool | try_parse (const xtd::string &value, reference result) noexcept |
Converts the string to its value_type equivalent. A return value indicates whether the conversion succeeded or failed. | |
![]() | |
template<class object_a_t , class object_b_t > | |
static bool | equals (const object_a_t &object_a, const object_b_t &object_b) noexcept |
Determines whether the specified object instances are considered equal. | |
template<class object_a_t , class object_b_t > | |
static bool | reference_equals (const object_a_t &object_a, const object_b_t &object_b) noexcept |
Determines whether the specified object instances are the same instance. | |
|
inlinestaticnoexcept |
Returns true
if c is an ASCII character ([ U+0000..U+007F ]).
c | The character to analyze. |
true
if c is an ASCII character; false
otherwise.
|
inlinestatic |
Indicates whether the character at the specified position in a specified string is an ASCII character ([ U+0000..U+007F ]).
s | A string. |
index | The position of the character to evaluate in s. |
true
if the character at position index in s is n ASCII character; otherwise, false
. xtd::argument_out_of_range_exception | index is greater than the last position in s. |
|
inlinestaticnoexcept |
Indicates whether the specified Unicode character is categorized as a control character.
c | The Unicode character to evaluate. |
true
if c is a control character; otherwise, false
.
|
inlinestatic |
Indicates whether the character at the specified position in a specified string is categorized as a control character.
s | A string. |
index | The position of the character to evaluate in s. |
true
if the character at position index in s is a control character; otherwise, false
. xtd::argument_out_of_range_exception | index is greater than the last position in s. |
|
inlinestaticnoexcept |
Indicates whether the specified Unicode character is categorized as a decimal digit.
c | The Unicode character to evaluate. |
true
if c is a decimal digit; otherwise, false
.
|
inlinestatic |
Indicates whether the character at the specified position in a specified string is categorized as a decimal digit.
s | A string. |
index | The position of the character to evaluate in s. |
true
if the character at position index in s is decimal digit; otherwise, false
. xtd::argument_out_of_range_exception | index is greater than the last position in s. |
|
inlinestaticnoexcept |
Indicates whether the specified Unicode character is categorized as a Unicode letter.
c | The Unicode character to evaluate. |
true
if c is a letter; otherwise, false
.
|
inlinestatic |
Indicates whether the character at the specified position in a specified string is categorized as a Unicode letter.
s | A string. |
index | The position of the character to evaluate in s. |
true
if the character at position index in s is a letter; otherwise, false
. xtd::argument_out_of_range_exception | index is greater than the last position in s. |
|
inlinestaticnoexcept |
Indicates whether a Unicode character is categorized as a letter or a decimal digit.
c | The Unicode character to evaluate. |
true
if c is a letter or a decimal digit; otherwise, false
.
|
inlinestatic |
Indicates whether the character at the specified position in a specified string is categorized as a letter or a decimal digit.
s | A string. |
index | The position of the character to evaluate in s. |
true
if the character at position index in s is a letter or a decimal digit; otherwise, false
. xtd::argument_out_of_range_exception | index is greater than the last position in s. |
|
inlinestaticnoexcept |
ndicates whether the specified Unicode character is categorized as a lowercase letter.
c | The Unicode character to evaluate. |
true
if c is a lowercase letter; otherwise, false
.
|
inlinestatic |
Indicates whether the character at the specified position in a specified string is categorized as a lowercase letter.
s | A string. |
index | The position of the character to evaluate in s. |
true
if the character at position index in s is a lowercase letter; otherwise, false
. xtd::argument_out_of_range_exception | index is greater than the last position in s. |
|
inlinestaticnoexcept |
Indicates whether a Unicode character is categorized as a number.
c | The Unicode character to evaluate. |
true
if c is a number; otherwise, false
.
|
inlinestatic |
Indicates whether the character at the specified position in a specified string is categorized as a number.
s | A string. |
index | The position of the character to evaluate in s. |
true
if the character at position index in s is a number; otherwise, false
. xtd::argument_out_of_range_exception | index is greater than the last position in s. |
|
inlinestaticnoexcept |
Indicates whether the specified Unicode character is categorized as a punctuation mark.
c | The Unicode character to evaluate. |
true
if c is a punctuation mark; otherwise, false
.
|
inlinestatic |
Indicates whether the character at the specified position in a specified string is categorized as a punctuation mark.
s | A string. |
index | The position of the character to evaluate in s. |
true
if the character at position index in s is categorized as a punctuation mark. xtd::argument_out_of_range_exception | index is greater than the last position in s. |
|
inlinestaticnoexcept |
Indicates whether the specified Unicode character is categorized as a separator character.
c | The Unicode character to evaluate. |
true
if c is a separator character; otherwise, false
.
|
inlinestatic |
Indicates whether the character at the specified position in a specified string is categorized as a separator character.
s | A string. |
index | The position of the character to evaluate in s. |
true
if the character at position index in s is categorized as a separator character. xtd::argument_out_of_range_exception | index is greater than the last position in s. |
|
inlinestaticnoexcept |
Indicates whether the specified Unicode character is categorized as a symbol character.
c | The Unicode character to evaluate. |
true
if c is a symbol character; otherwise, false
.
|
inlinestatic |
Indicates whether the character at the specified position in a specified string is categorized as a symbol character.
s | A string. |
index | The position of the character to evaluate in s. |
true
if the character at position index in s is a symbol character; otherwise, false
. xtd::argument_out_of_range_exception | index is greater than the last position in s. |
|
inlinestaticnoexcept |
Indicates whether the specified Unicode character is categorized as an uppercase letter.
c | The Unicode character to evaluate. |
true
if c is an uppercase letter; otherwise, false
.
|
inlinestatic |
Indicates whether the character at the specified position in a specified string is categorized as an uppercase letter.
s | A string. |
index | The position of the character to evaluate in s. |
true
if the character at position index in s is an uppercase letter; otherwise, false
. xtd::argument_out_of_range_exception | index is greater than the last position in s. |
|
inlinestaticnoexcept |
Indicates whether the specified Unicode character is categorized as white space.
c | The Unicode character to evaluate. |
true
if c is white space; otherwise, false
.
|
inlinestatic |
Indicates whether the character at the specified position in a specified string is categorized as white space.
s | A string. |
index | The position of the character to evaluate in s. |
true
if the character at position index in s is white space; otherwise, false
. xtd::argument_out_of_range_exception | index is greater than the last position in s. |
|
inlinestaticnoexcept |
Converts the value of a Unicode character to its lowercase equivalent.
c | The Unicode character to convert. |
|
inlinestaticnoexcept |
Converts the value of a Unicode character to its uppercase equivalent.
c | The Unicode character to convert. |