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

Function xmlTextReaderConstBaseUri

ThirdParty/libxml2/vtklibxml2/xmlreader.c:3459–3475  ·  view source on GitHub ↗

* xmlTextReaderConstBaseUri: * @reader: the xmlTextReaderPtr used * * The base URI of the node. * * Returns the base URI or NULL if not available, the string * will be deallocated with the reader */

Source from the content-addressed store, hash-verified

3457 * will be deallocated with the reader
3458 */
3459const xmlChar *
3460xmlTextReaderConstBaseUri(xmlTextReaderPtr reader) {
3461 xmlChar *tmp;
3462 const xmlChar *ret;
3463 int result;
3464
3465 if ((reader == NULL) || (reader->node == NULL))
3466 return(NULL);
3467 result = xmlNodeGetBaseSafe(NULL, reader->node, &tmp);
3468 if (result < 0)
3469 xmlTextReaderErrMemory(reader);
3470 if (tmp == NULL)
3471 return(NULL);
3472 ret = constString(reader, tmp);
3473 xmlFree(tmp);
3474 return(ret);
3475}
3476
3477/**
3478 * xmlTextReaderDepth:

Callers

nothing calls this directly

Calls 3

xmlNodeGetBaseSafeFunction · 0.85
xmlTextReaderErrMemoryFunction · 0.85
constStringFunction · 0.85

Tested by

no test coverage detected