template<typename type_t>
class xtd::box_char< type_t >
Represents a boxed char object.
- Inheritance
- xtd::object → xtd::box <type_t> → xtd::box_integer <type_t> → xtd::box_char <type_t>
- Namespace
- xtd
- Library
- xtd.core
- Examples
- The following example shows how to create and use xtd::box_char<char8>.
auto stringer = [](
const object&
value) {
return value.to_string();};
char8 unboxed_object = u8
'a';
box_char<char8> boxed_object = unboxed_object;
auto result = stringer(boxed_object);
|
static bool | is_ascii (type_t c) noexcept |
| Returns true if c is an ASCII character ([ U+0000..U+007F ]). More...
|
|
static bool | is_ascii (const ustring &s, size_t index) |
| Indicates whether the character at the specified position in a specified string is an ASCII character ([ U+0000..U+007F ]). More...
|
|
static bool | is_control (type_t c) noexcept |
| Indicates whether the specified Unicode character is categorized as a control character. More...
|
|
static bool | is_control (const ustring &s, size_t index) |
| Indicates whether the character at the specified position in a specified string is categorized as a control character. More...
|
|
static bool | is_digit (type_t c) noexcept |
| Indicates whether the specified Unicode character is categorized as a decimal digit. More...
|
|
static bool | is_digit (const ustring &s, size_t index) |
| Indicates whether the character at the specified position in a specified string is categorized as a decimal digit. More...
|
|
static bool | is_letter (type_t c) noexcept |
| Indicates whether the specified Unicode character is categorized as a Unicode letter. More...
|
|
static bool | is_letter (const ustring &s, size_t index) |
| Indicates whether the character at the specified position in a specified string is categorized as a Unicode letter. More...
|
|
static bool | is_letter_or_digit (type_t c) noexcept |
| Indicates whether a Unicode character is categorized as a letter or a decimal digit. More...
|
|
static bool | is_letter_or_digit (const ustring &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. More...
|
|
static bool | is_lower (type_t c) noexcept |
| ndicates whether the specified Unicode character is categorized as a lowercase letter. More...
|
|
static bool | is_lower (const ustring &s, size_t index) |
| Indicates whether the character at the specified position in a specified string is categorized as a lowercase letter. More...
|
|
static bool | is_number (type_t c) noexcept |
| Indicates whether a Unicode character is categorized as a number. More...
|
|
static bool | is_number (const ustring &s, size_t index) |
| Indicates whether the character at the specified position in a specified string is categorized as a number. More...
|
|
static bool | is_punctuation (type_t c) noexcept |
| Indicates whether the specified Unicode character is categorized as a punctuation mark. More...
|
|
static bool | is_punctuation (const ustring &s, size_t index) |
| Indicates whether the character at the specified position in a specified string is categorized as a punctuation mark. More...
|
|
static bool | is_separator (type_t c) noexcept |
| Indicates whether the specified Unicode character is categorized as a separator character. More...
|
|
static bool | is_separator (const ustring &s, size_t index) |
| Indicates whether the character at the specified position in a specified string is categorized as a separator character. More...
|
|
static bool | is_symbol (type_t c) noexcept |
| Indicates whether the specified Unicode character is categorized as a symbol character. More...
|
|
static bool | is_symbol (const ustring &s, size_t index) |
| Indicates whether the character at the specified position in a specified string is categorized as a symbol character. More...
|
|
static bool | is_upper (type_t c) noexcept |
| Indicates whether the specified Unicode character is categorized as an uppercase letter. More...
|
|
static bool | is_upper (const ustring &s, size_t index) |
| Indicates whether the character at the specified position in a specified string is categorized as an uppercase letter. More...
|
|
static bool | is_white_space (type_t c) noexcept |
| Indicates whether the specified Unicode character is categorized as white space. More...
|
|
static bool | is_white_space (const ustring &s, size_t index) |
| Indicates whether the character at the specified position in a specified string is categorized as white space. More...
|
|
static char | to_lower (type_t c) noexcept |
| Converts the value of a Unicode character to its lowercase equivalent. More...
|
|
static char | to_upper (type_t c) noexcept |
| Converts the value of a Unicode character to its uppercase equivalent. More...
|
|
static type_t | parse (const xtd::ustring &value) |
| Converts the string to its type_t equivalent. More...
|
|
static bool | try_parse (const xtd::ustring &value, type_t &result) noexcept |
| Converts the string to its type_t equivalent. A return value indicates whether the conversion succeeded or failed. More...
|
|
static bool | equals (const object &object_a, const object &object_b) noexcept |
| Determines whether the specified object instances are considered equal. More...
|
|
static bool | reference_equals (const object &object_a, const object &object_b) noexcept |
| Determines whether the specified object instances are the same instance. More...
|
|
|
using | underlying_type = type_t |
|
static constexpr type_t | max_value = std::numeric_limits<type_t>::max() |
| Represents the largest possible value of type_t. This field is constant. More...
|
|
static constexpr type_t | min_value = std::numeric_limits<type_t>::lowest() |
| Represents the smallest possible value of type_t. This field is constant. More...
|
|
| box ()=default |
| Initialize a new xtd::box object. More...
|
|
| box (const type_t &value) |
| Initialize a new xtd::box object with specified value. More...
|
|
template<typename ... args_t> |
| box (args_t &&...args) |
| Initialize a new xtd::box object with specified value. More...
|
|
const type_t & | value () const noexcept |
| Gets the underlying value. More...
|
|
type_t & | value () noexcept |
| Gets the underlying value. More...
|
|
box & | value (const type_t &value) |
| Sets de underlying value. More...
|
|
| operator type_t () const noexcept |
|
bool | equals (const box &value) const noexcept override |
| Indicates whether the current object is equal to another object of the same type. More...
|
|
int32 | compare_to (const box &value) const noexcept override |
| Compares the current instance with another object of the same type. More...
|
|
xtd::ustring | to_string () const noexcept override |
| Returns a sxd::ustring that represents the current object. More...
|
|
xtd::ustring | to_string (const xtd::ustring &format) const noexcept |
| Converts the value of this instance to its equivalent string representation, using the specified format. More...
|
|
| object ()=default |
| Create a new instance of the ultimate base class object. More...
|
|
bool | equals (const object &obj) const noexcept |
| Determines whether the specified object is equal to the current object. More...
|
|
virtual size_t | get_hash_code () const noexcept |
| Serves as a hash function for a particular type. More...
|
|
template<typename object_t > |
std::unique_ptr< object_t > | memberwise_clone () const noexcept |
| Gets the type of the current instance. More...
|
|