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

Function xmlXPathDebugDumpValueTree

ThirdParty/libxml2/vtklibxml2/xpath.c:1170–1189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1168}
1169
1170static void
1171xmlXPathDebugDumpValueTree(FILE *output, xmlNodeSetPtr cur, int depth) {
1172 int i;
1173 char shift[100];
1174
1175 for (i = 0;((i < depth) && (i < 25));i++)
1176 shift[2 * i] = shift[2 * i + 1] = ' ';
1177 shift[2 * i] = shift[2 * i + 1] = 0;
1178
1179 if ((cur == NULL) || (cur->nodeNr == 0) || (cur->nodeTab[0] == NULL)) {
1180 fprintf(output, "%s", shift);
1181 fprintf(output, "Value Tree is NULL !\n");
1182 return;
1183
1184 }
1185
1186 fprintf(output, "%s", shift);
1187 fprintf(output, "%d", i + 1);
1188 xmlXPathDebugDumpNodeList(output, cur->nodeTab[0]->children, depth + 1);
1189}
1190#if defined(LIBXML_XPTR_LOCS_ENABLED)
1191static void
1192xmlXPathDebugDumpLocationSet(FILE *output, xmlLocationSetPtr cur, int depth) {

Callers 1

xmlXPathDebugDumpObjectFunction · 0.85

Calls 2

fprintfFunction · 0.85

Tested by

no test coverage detected