Skip to main content

xmlUTF8Strpos

Function xmlUTF8Strpos 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn xmlUTF8Strpos( utf: *const xmlChar, pos: c_int, ) -> *const xmlChar
Expand description

Pointer to the UTF-8 character at character position pos (upstream xmlstring.c xmlUTF8Strpos).

§UPSTREAM-PARITY

const xmlChar *xmlUTF8Strpos(const xmlChar *utf, int pos);

Returns NULL when utf is NULL, pos < 0, the position is past the end, or the input is not well-formed UTF-8.

§SAFETY

  • utf must be a valid NUL-terminated byte string or NULL.