Function encoding_c::encoding_is_single_byte
source · Expand description
Checks whether this encoding maps one byte to one Basic Multilingual Plane code point (i.e. byte length equals decoded UTF-16 length) and vice versa (for mappable characters).
true
iff this encoding is on the list of Legacy single-byte
encodings
in the spec or x-user-defined.
Undefined behavior
UB ensues if the argument is NULL
.