* 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. */
| 132 | * Returns A pointer to the entity structure or NULL if not found. |
| 133 | */ |
| 134 | static xmlEntityPtr |
| 135 | xmlGetParameterEntityFromDtd(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 | /************************************************************************ |
no test coverage detected