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

Function xmlGetEntityFromDtd

ThirdParty/libxml2/vtklibxml2/tree.c:113–123  ·  view source on GitHub ↗

* xmlGetEntityFromDtd: * @dtd: A pointer to the DTD to search * @name: The entity name * * Do an entity lookup in the DTD entity hash table and * return the corresponding entity, if found. * * Returns A pointer to the entity structure or NULL if not found. */

Source from the content-addressed store, hash-verified

111 * Returns A pointer to the entity structure or NULL if not found.
112 */
113static xmlEntityPtr
114xmlGetEntityFromDtd(const xmlDtd *dtd, const xmlChar *name) {
115 xmlEntitiesTablePtr table;
116
117 if((dtd != NULL) && (dtd->entities != NULL)) {
118 table = (xmlEntitiesTablePtr) dtd->entities;
119 return((xmlEntityPtr) xmlHashLookup(table, name));
120 /* return(xmlGetEntityFromTable(table, name)); */
121 }
122 return(NULL);
123}
124/**
125 * xmlGetParameterEntityFromDtd:
126 * @dtd: A pointer to the DTD to search

Callers 1

xmlCopyDtdFunction · 0.85

Calls 1

xmlHashLookupFunction · 0.85

Tested by

no test coverage detected