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

Function xmlGetParameterEntityFromDtd

ThirdParty/libxml2/vtklibxml2/tree.c:134–144  ·  view source on GitHub ↗

* xmlGetParameterEntityFromDtd: * @dtd: A pointer to the DTD to search * @name: The entity name * * Do an entity lookup in the DTD parameter 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

132 * Returns A pointer to the entity structure or NULL if not found.
133 */
134static xmlEntityPtr
135xmlGetParameterEntityFromDtd(const xmlDtd *dtd, const xmlChar *name) {
136 xmlEntitiesTablePtr table;
137
138 if ((dtd != NULL) && (dtd->pentities != NULL)) {
139 table = (xmlEntitiesTablePtr) dtd->pentities;
140 return((xmlEntityPtr) xmlHashLookup(table, name));
141 /* return(xmlGetEntityFromTable(table, name)); */
142 }
143 return(NULL);
144}
145#endif /* LIBXML_TREE_ENABLED */
146
147/************************************************************************

Callers 1

xmlCopyDtdFunction · 0.85

Calls 1

xmlHashLookupFunction · 0.85

Tested by

no test coverage detected