MCPcopy Create free account
hub / github.com/Geant4/geant4 / XML_SetBase

Function XML_SetBase

source/externals/expat/src/xmlparse.c:1539–1551  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1537}
1538
1539enum XML_Status XMLCALL
1540XML_SetBase(XML_Parser parser, const XML_Char *p) {
1541 if (parser == NULL)
1542 return XML_STATUS_ERROR;
1543 if (p) {
1544 p = poolCopyString(&parser->m_dtd->pool, p);
1545 if (! p)
1546 return XML_STATUS_ERROR;
1547 parser->m_curBase = p;
1548 } else
1549 parser->m_curBase = NULL;
1550 return XML_STATUS_OK;
1551}
1552
1553const XML_Char *XMLCALL
1554XML_GetBase(XML_Parser parser) {

Callers

nothing calls this directly

Calls 1

poolCopyStringFunction · 0.85

Tested by

no test coverage detected