Skip to main content

utf8_size

Function utf8_size 

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

Size in bytes of the UTF-8 sequence starting at utf (upstream xmlUTF8Size): returns the sequence length, or -1 on invalid leading byte, 0 on NUL.

§Safety

  • utf must be a valid pointer into a UTF-8 string.