Skip to main content

xmlRegexpExec

Function xmlRegexpExec 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn xmlRegexpExec( compiled: *const XmlRegexp, value: *const xmlChar, ) -> c_int
Expand description

Execute a compiled regex against a string.

§UPSTREAM-PARITY

int xmlRegexpExec(const xmlRegexpPtr compiled, const xmlChar *value);

Returns 1 if the value matches, 0 if not, -1 on error.

§SAFETY

  • compiled must be a valid pointer to an XmlRegexp, or NULL.
  • value must be a valid null-terminated xmlChar string, or NULL.