Skip to main content

split_qname2

Function split_qname2 

Source
pub unsafe fn split_qname2(
    name: *const xmlChar,
    prefix: *mut *mut xmlChar,
) -> *mut xmlChar
Expand description

Split a QName into prefix and local part (upstream tree.c xmlSplitQName2): returns NULL when the name has no prefix (or starts with ‘:’), otherwise allocates *prefix with the prefix and returns the local part.

§Safety

  • name must be a valid null-terminated string or NULL.
  • prefix must be a valid xmlChar**.