xtd
0.2.0
Loading...
Searching...
No Matches
◆
as< ustring >()
[16/30]
template<>
ustring
xtd::as
<
ustring
>
(
int32
value
,
xtd::byte
from_base
)
inline
Casts a type into another type.
Parameters
value
object to convert.
from_base
The base of the number in value, which must be 2, 8, 10, or 16.
Returns
A new ustring object converted from value.
Exceptions
xtd::argument_exception
vfrom_base is not 2, 8, 10, or 16.
Header
#include <xtd/as>
Namespace
xtd
Library
xtd.core
Examples
int32
value = 42;
ustring
result =
as<ustring>
(value, 16);
xtd::ustring
Represents text as a sequence of UTF-8 code units.
Definition
ustring.h:53
xtd::int32
int32_t int32
Represents a 32-bit signed integer.
Definition
int32.h:23
xtd::as< ustring >
ustring as< ustring >(std::any value)
Casts a type into another type.
Definition
__as_ustring.h:36
xtd
Generated on Thu Aug 15 2024 14:28:52 for xtd by
Gammasoft
. All rights reserved.