fn check_utf16_for_latin1_and_bidi_impl(buffer: &[u16]) -> Latin1Bidi