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

Function xmlCtxtDumpString

ThirdParty/libxml2/vtklibxml2/debugXML.c:404–427  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

402}
403
404static void
405xmlCtxtDumpString(xmlDebugCtxtPtr ctxt, const xmlChar * str)
406{
407 int i;
408
409 if (ctxt->check) {
410 return;
411 }
412 /* TODO: check UTF8 content of the string */
413 if (str == NULL) {
414 fprintf(ctxt->output, "(NULL)");
415 return;
416 }
417 for (i = 0; i < 40; i++)
418 if (str[i] == 0)
419 return;
420 else if (IS_BLANK_CH(str[i]))
421 fputc(' ', ctxt->output);
422 else if (str[i] >= 0x80)
423 fprintf(ctxt->output, "#%X", str[i]);
424 else
425 fputc(str[i], ctxt->output);
426 fprintf(ctxt->output, "...");
427}
428
429static void
430xmlCtxtDumpDtdNode(xmlDebugCtxtPtr ctxt, xmlDtdPtr dtd)

Callers 8

xmlCtxtDumpAttrDeclFunction · 0.85
xmlCtxtDumpElemDeclFunction · 0.85
xmlCtxtDumpEntityDeclFunction · 0.85
xmlCtxtDumpNamespaceFunction · 0.85
xmlCtxtDumpEntityFunction · 0.85
xmlCtxtDumpAttrFunction · 0.85
xmlCtxtDumpOneNodeFunction · 0.85
xmlCtxtDumpDocumentHeadFunction · 0.85

Calls 1

fprintfFunction · 0.85

Tested by

no test coverage detected