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

Function xmlAddIDSafe

ThirdParty/libxml2/vtklibxml2/valid.c:2400–2403  ·  view source on GitHub ↗

* xmlAddIDSafe: * @attr: the attribute holding the ID * @value: the attribute (ID) value * * Register a new id declaration * * Available since 2.13.0. * * Returns 1 on success, 0 if the ID already exists, -1 if a memory * allocation fails. */

Source from the content-addressed store, hash-verified

2398 * allocation fails.
2399 */
2400int
2401xmlAddIDSafe(xmlAttrPtr attr, const xmlChar *value) {
2402 return(xmlAddIDInternal(attr, value, NULL));
2403}
2404
2405/**
2406 * xmlAddID:

Callers 6

xmlNewPropInternalFunction · 0.85
xmlCopyPropInternalFunction · 0.85
xmlSetNsPropFunction · 0.85
xmlDOMWrapCloneNodeFunction · 0.85
xmlSchemaPValAttrNodeIDFunction · 0.85
xmlSchemaValAtomicTypeFunction · 0.85

Calls 1

xmlAddIDInternalFunction · 0.85

Tested by

no test coverage detected