MCPcopy Index your code
hub / github.com/MapServer/MapServer / writeKeyword

Function writeKeyword

mapfile.c:488–506  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

486}
487
488static void writeKeyword(FILE *stream, int indent, const char *name, int value, int size, ...) {
489 va_list argp;
490 int i, j=0;
491 const char *s;
492
493 va_start(argp, size);
494 while (j<size) { /* check each value/keyword mapping in the list, values with no match are ignored */
495 i = va_arg(argp, int);
496 s = va_arg(argp, const char *);
497 if(value == i) {
498 writeIndent(stream, ++indent);
499 fprintf(stream, "%s %s\n", name, s);
500 va_end(argp);
501 return;
502 }
503 j++;
504 }
505 va_end(argp);
506}
507
508static void writeDimension(FILE *stream, int indent, const char *name, int x, int y, char *bind_x, char *bind_y) {
509 writeIndent(stream, ++indent);

Callers 11

writeJoinFunction · 0.85
writeLabelFunction · 0.85
writeStyleFunction · 0.85
writeClassFunction · 0.85
writeLayerFunction · 0.85
writeReferenceMapFunction · 0.85
writeOutputformatobjectFunction · 0.85
writeLegendFunction · 0.85
writeScalebarFunction · 0.85
writeQueryMapFunction · 0.85
msSaveMapFunction · 0.85

Calls 1

writeIndentFunction · 0.85

Tested by

no test coverage detected