#[no_mangle]
pub unsafe extern "C" fn encoding_is_single_byte(
encoding: *const Encoding,
) -> bool
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
.