[][src]Function encoding_c::encoding_is_single_byte

#[no_mangle]
pub unsafe extern "C" fn encoding_is_single_byte(
    encoding: *const Encoding
) -> bool

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.