Skip to main content

validate_enumeration

Function validate_enumeration 

Source
pub unsafe fn validate_enumeration(
    ctxt: *mut _xmlValidCtxt,
    value: *const xmlChar,
    tree: *mut _xmlEnumeration,
) -> c_int
Expand description

Validate that value is one of the values in the enumeration.

§UPSTREAM-PARITY

int xmlValidateEnumeration(xmlValidCtxtPtr ctxt,
                           const xmlChar *value,
                           xmlEnumerationPtr tree);

Returns 1 if the value is in the enumeration, 0 otherwise.

§SAFETY

  • ctxt may be NULL.
  • value must be a valid null-terminated string or NULL.
  • tree may be NULL (returns 0).