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

Function xmlXPathDebugDumpNodeSet

ThirdParty/libxml2/vtklibxml2/xpath.c:1144–1168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1142}
1143
1144static void
1145xmlXPathDebugDumpNodeSet(FILE *output, xmlNodeSetPtr cur, int depth) {
1146 int i;
1147 char shift[100];
1148
1149 for (i = 0;((i < depth) && (i < 25));i++)
1150 shift[2 * i] = shift[2 * i + 1] = ' ';
1151 shift[2 * i] = shift[2 * i + 1] = 0;
1152
1153 if (cur == NULL) {
1154 fprintf(output, "%s", shift);
1155 fprintf(output, "NodeSet is NULL !\n");
1156 return;
1157
1158 }
1159
1160 if (cur != NULL) {
1161 fprintf(output, "Set contains %d nodes:\n", cur->nodeNr);
1162 for (i = 0;i < cur->nodeNr;i++) {
1163 fprintf(output, "%s", shift);
1164 fprintf(output, "%d", i + 1);
1165 xmlXPathDebugDumpNode(output, cur->nodeTab[i], depth + 1);
1166 }
1167 }
1168}
1169
1170static void
1171xmlXPathDebugDumpValueTree(FILE *output, xmlNodeSetPtr cur, int depth) {

Callers 1

xmlXPathDebugDumpObjectFunction · 0.85

Calls 2

fprintfFunction · 0.85
xmlXPathDebugDumpNodeFunction · 0.85

Tested by

no test coverage detected