* xmlParseEntityRef: * @ctxt: an XML parser context * * DEPRECATED: Internal function, don't use. * * Returns the xmlEntityPtr if found, or NULL otherwise. */
| 7714 | * Returns the xmlEntityPtr if found, or NULL otherwise. |
| 7715 | */ |
| 7716 | xmlEntityPtr |
| 7717 | xmlParseEntityRef(xmlParserCtxtPtr ctxt) { |
| 7718 | const xmlChar *name; |
| 7719 | |
| 7720 | if (ctxt == NULL) |
| 7721 | return(NULL); |
| 7722 | |
| 7723 | name = xmlParseEntityRefInternal(ctxt); |
| 7724 | if (name == NULL) |
| 7725 | return(NULL); |
| 7726 | |
| 7727 | return(xmlLookupGeneralEntity(ctxt, name, /* inAttr */ 0)); |
| 7728 | } |
| 7729 | |
| 7730 | /** |
| 7731 | * xmlParseStringEntityRef: |
nothing calls this directly
no test coverage detected