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

Function layerNeedsSubstitutions

mapfile.c:5921–5937  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5919}
5920
5921static int layerNeedsSubstitutions(layerObj *layer, char *from) {
5922 int i;
5923
5924 if(layer->data && (strcasestr(layer->data, from) != NULL)) return MS_TRUE;
5925 if(layer->tileindex && (strcasestr(layer->tileindex, from) != NULL)) return MS_TRUE;
5926 if(layer->connection && (strcasestr(layer->connection, from) != NULL)) return MS_TRUE;
5927 if(layer->filter.string && (strcasestr(layer->filter.string, from) != NULL)) return MS_TRUE;
5928
5929 for(i=0; i<layer->numclasses; i++) {
5930 if(layer->class[i]->expression.string && (strcasestr(layer->class[i]->expression.string, from) != NULL)) return MS_TRUE;
5931 if(layer->class[i]->text.string && (strcasestr(layer->class[i]->text.string, from) != NULL)) return MS_TRUE;
5932 }
5933
5934 if(!msHashIsEmpty(&layer->bindvals)) return MS_TRUE;
5935
5936 return MS_FALSE;
5937}
5938
5939static void layerSubstituteString(layerObj *layer, char *from, char *to) {
5940 int i;

Callers 1

msApplySubstitutionsFunction · 0.85

Calls 2

strcasestrFunction · 0.85
msHashIsEmptyFunction · 0.85

Tested by

no test coverage detected