MCPcopy Create free account
hub / github.com/Kitware/VTK / xmlDictCreateSub

Function xmlDictCreateSub

ThirdParty/libxml2/vtklibxml2/dict.c:298–308  ·  view source on GitHub ↗

* xmlDictCreateSub: * @sub: an existing dictionary * * Create a new dictionary, inheriting strings from the read-only * dictionary @sub. On lookup, strings are first searched in the * new dictionary, then in @sub, and if not found are created in the * new dictionary. * * Returns the newly created dictionary, or NULL if an error occurred. */

Source from the content-addressed store, hash-verified

296 * Returns the newly created dictionary, or NULL if an error occurred.
297 */
298xmlDictPtr
299xmlDictCreateSub(xmlDictPtr sub) {
300 xmlDictPtr dict = xmlDictCreate();
301
302 if ((dict != NULL) && (sub != NULL)) {
303 dict->seed = sub->seed;
304 dict->subdict = sub;
305 xmlDictReference(dict->subdict);
306 }
307 return(dict);
308}
309
310/**
311 * xmlDictReference:

Callers

nothing calls this directly

Calls 2

xmlDictCreateFunction · 0.85
xmlDictReferenceFunction · 0.85

Tested by

no test coverage detected