char(8/16/32)_t
This makes char(8/16/32)_t
available under the type definitions of ztd::uchar(8/16/32)_t
. This allows their use uniformly in C and C++, regardless of whether or not the type definition is present in the proper place.
-
using ztd::uchar8_t = ZTD_CHAR8_T_I_
An alias to a unsigned representation of an 8-bit (or greater) code unit type.
Remark
This will be a type alias for the type given in the
ZTD_CHAR8_T
define if it is defined by the user. Otherwise, it will be a type alias for char8_t if present. If neither are available, it will aliasunsigned char
for the type.
-
using ztd::uchar16_t = char16_t
An alias to a unsigned representation of an 16-bit (or greater) code unit type.
Remark
This alias will always point to
char16_t
, because C++ has this as a built-in type.
-
using ztd::uchar32_t = char32_t
An alias to a unsigned representation of an 32-bit (or greater) code unit type.
Remark
This alias will always point to
char32_t
, because C++ has this as a built-in type.