* xmlTextReaderConstXmlLang: * @reader: the xmlTextReaderPtr used * * The xml:lang scope within which the node resides. * * Returns the xml:lang value or NULL if none exists. */
| 3733 | * Returns the xml:lang value or NULL if none exists. |
| 3734 | */ |
| 3735 | const xmlChar * |
| 3736 | xmlTextReaderConstXmlLang(xmlTextReaderPtr reader) { |
| 3737 | xmlChar *tmp; |
| 3738 | const xmlChar *ret; |
| 3739 | |
| 3740 | if (reader == NULL) |
| 3741 | return(NULL); |
| 3742 | if (reader->node == NULL) |
| 3743 | return(NULL); |
| 3744 | tmp = xmlNodeGetLang(reader->node); |
| 3745 | if (tmp == NULL) |
| 3746 | return(NULL); |
| 3747 | ret = constString(reader, tmp); |
| 3748 | xmlFree(tmp); |
| 3749 | return(ret); |
| 3750 | } |
| 3751 | |
| 3752 | /** |
| 3753 | * xmlTextReaderConstString: |
nothing calls this directly
no test coverage detected