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

Function xmlSBufAddString

ThirdParty/libxml2/vtklibxml2/parser.c:767–783  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

765}
766
767static void
768xmlSBufAddString(xmlSBuf *buf, const xmlChar *str, unsigned len) {
769 if (buf->max - buf->size < len) {
770 if (buf->code == XML_ERR_OK)
771 buf->code = XML_ERR_RESOURCE_LIMIT;
772 return;
773 }
774
775 if (buf->cap - buf->size <= len) {
776 if (xmlSBufGrow(buf, len) < 0)
777 return;
778 }
779
780 if (len > 0)
781 memcpy(buf->mem + buf->size, str, len);
782 buf->size += len;
783}
784
785static void
786xmlSBufAddCString(xmlSBuf *buf, const char *str, unsigned len) {

Callers 4

xmlSBufAddCStringFunction · 0.85
xmlParseAttValueInternalFunction · 0.85

Calls 1

xmlSBufGrowFunction · 0.85

Tested by

no test coverage detected