| 5919 | } |
| 5920 | |
| 5921 | static 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 | |
| 5939 | static void layerSubstituteString(layerObj *layer, char *from, char *to) { |
| 5940 | int i; |
no test coverage detected