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

Function xmlXPathDebugDumpLocationSet

ThirdParty/libxml2/vtklibxml2/xpath.c:1191–1212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1189}
1190#if defined(LIBXML_XPTR_LOCS_ENABLED)
1191static void
1192xmlXPathDebugDumpLocationSet(FILE *output, xmlLocationSetPtr cur, int depth) {
1193 int i;
1194 char shift[100];
1195
1196 for (i = 0;((i < depth) && (i < 25));i++)
1197 shift[2 * i] = shift[2 * i + 1] = ' ';
1198 shift[2 * i] = shift[2 * i + 1] = 0;
1199
1200 if (cur == NULL) {
1201 fprintf(output, "%s", shift);
1202 fprintf(output, "LocationSet is NULL !\n");
1203 return;
1204
1205 }
1206
1207 for (i = 0;i < cur->locNr;i++) {
1208 fprintf(output, "%s", shift);
1209 fprintf(output, "%d : ", i + 1);
1210 xmlXPathDebugDumpObject(output, cur->locTab[i], depth + 1);
1211 }
1212}
1213#endif /* LIBXML_XPTR_LOCS_ENABLED */
1214
1215/**

Callers 1

xmlXPathDebugDumpObjectFunction · 0.85

Calls 2

fprintfFunction · 0.85
xmlXPathDebugDumpObjectFunction · 0.85

Tested by

no test coverage detected