Skip to main content

dict_create_sub

Function dict_create_sub 

Source
pub unsafe fn dict_create_sub(parent: *mut Dict) -> *mut Dict
Expand description

Create a sub-dictionary that shares strings with its parent.

§UPSTREAM-PARITY

xmlDictPtr xmlDictCreateSub(xmlDictPtr parent);

A sub-dictionary uses the parent’s string table but maintains its own reference counts. Strings looked up in the sub-dictionary that exist in the parent are shared (the sub-dictionary increments the refcount).

Returns a pointer to the newly created sub-dictionary, or NULL on failure.

§SAFETY

  • parent must be a valid pointer to a Dict, or NULL.