MCPcopy Create free account
hub / github.com/KhronosGroup/OpenCOLLADA / xmlOutputBufferWriteString

Function xmlOutputBufferWriteString

Externals/LibXML/xmlIO.c:3422–3434  ·  view source on GitHub ↗

* xmlOutputBufferWriteString: * @out: a buffered parser output * @str: a zero terminated C string * * Write the content of the string in the output I/O buffer * This routine handle the I18N transcoding from internal UTF-8 * The buffer is lossless, i.e. will store in case of partial * or delayed writes. * * Returns the number of chars immediately written, or -1 * in case of erro

Source from the content-addressed store, hash-verified

3420 * in case of error.
3421 */
3422int
3423xmlOutputBufferWriteString(xmlOutputBufferPtr out, const char *str) {
3424 int len;
3425
3426 if ((out == NULL) || (out->error)) return(-1);
3427 if (str == NULL)
3428 return(-1);
3429 len = strlen(str);
3430
3431 if (len > 0)
3432 return(xmlOutputBufferWrite(out, len, str));
3433 return(len);
3434}
3435
3436/**
3437 * xmlOutputBufferFlush:

Callers 15

xmlC14NPrintNamespacesFunction · 0.85
xmlC14NPrintAttrsFunction · 0.85
xmlC14NProcessNodeFunction · 0.85
htmlDtdDumpOutputFunction · 0.85
htmlAttrDumpOutputFunction · 0.85
htmlNodeDumpFormatOutputFunction · 0.85
xmlNsDumpOutputFunction · 0.85
xmlDtdDumpOutputFunction · 0.85
xmlAttrDumpOutputFunction · 0.85

Calls 1

xmlOutputBufferWriteFunction · 0.85

Tested by 1