Skip to main content

check_utf8

Function check_utf8 

Source
pub unsafe fn check_utf8(utf: *const xmlChar) -> c_int
Expand description

Check that a byte string is valid UTF-8 (upstream xmlCheckUTF8): returns 1 when valid, 0 otherwise.

ยงSafety

  • utf must be a valid null-terminated byte string.