Skip to main content

xmlRegexpCompile

Function xmlRegexpCompile 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn xmlRegexpCompile( pattern: *const xmlChar, ) -> *mut XmlRegexp
Expand description

Compile a regex pattern.

§UPSTREAM-PARITY

xmlRegexpPtr xmlRegexpCompile(const xmlChar *pattern);

Returns a compiled regex or NULL on error.

§SAFETY

  • pattern must be a valid null-terminated xmlChar string, or NULL.