pub fn validate_utf16be_with_errors(src: &[u16]) -> Result
Validate the UTF-16BE string.
This function is not BOM-aware.