Skip to main content

dict_exists

Function dict_exists 

Source
pub unsafe fn dict_exists(
    dict: *mut Dict,
    name: *const xmlChar,
    len: c_int,
) -> *const xmlChar
Expand description

Check if a string exists in the dictionary without adding it.

§UPSTREAM-PARITY

const xmlChar *xmlDictExists(xmlDictPtr dict, const xmlChar *name, int len);

Returns a pointer to the interned string if found, or NULL if not found.

§SAFETY

  • dict must be a valid pointer to a Dict, or NULL.
  • name must be a valid pointer to a null-terminated string (if len < 0) or a buffer of at least len bytes (if len >= 0).