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

Function xmlNodeBufGetContent

ThirdParty/libxml2/vtklibxml2/tree.c:5517–5530  ·  view source on GitHub ↗

* xmlNodeBufGetContent: * @buffer: a buffer * @cur: the node being read * * Read the value of a node @cur, this can be either the text carried * directly by this node if it's a TEXT node or the aggregate string * of the values carried by this node child's (TEXT and ENTITY_REF). * Entity references are substituted. * Fills up the buffer @buffer with this value * * Returns 0 in case of s

Source from the content-addressed store, hash-verified

5515 * Returns 0 in case of success and -1 in case of error.
5516 */
5517int
5518xmlNodeBufGetContent(xmlBufferPtr buffer, const xmlNode *cur)
5519{
5520 xmlBufPtr buf;
5521 int ret;
5522
5523 if ((cur == NULL) || (buffer == NULL)) return(-1);
5524 buf = xmlBufFromBuffer(buffer);
5525 ret = xmlBufGetNodeContent(buf, cur);
5526 buffer = xmlBufBackToBuffer(buf);
5527 if ((ret < 0) || (buffer == NULL))
5528 return(-1);
5529 return(0);
5530}
5531
5532static void
5533xmlBufGetEntityRefContent(xmlBufPtr buf, const xmlNode *ref) {

Callers

nothing calls this directly

Calls 3

xmlBufFromBufferFunction · 0.85
xmlBufGetNodeContentFunction · 0.85
xmlBufBackToBufferFunction · 0.85

Tested by

no test coverage detected