Skip to main content

validate_nmtoken

Function validate_nmtoken 

Source
pub unsafe fn validate_nmtoken(value: *const xmlChar) -> c_int
Expand description

Validate whether value is a valid XML NMTOKEN.

§UPSTREAM-PARITY

int xmlValidateNmtoken(const xmlChar *value);

An NMTOKEN is like a Name but the first character can also be a NameChar (not just a NameStartChar). Returns 1 if valid, 0 if not.

§SAFETY

  • value must be a valid null-terminated string or NULL.