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

Function msUpdateStyleFromString

mapfile.c:2656–2679  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2654}
2655
2656int msUpdateStyleFromString(styleObj *style, char *string, int url_string)
2657{
2658 if(!style || !string) return MS_FAILURE;
2659
2660 msAcquireLock( TLOCK_PARSER );
2661
2662 if(url_string)
2663 msyystate = MS_TOKENIZE_URL_STRING;
2664 else
2665 msyystate = MS_TOKENIZE_STRING;
2666 msyystring = string;
2667 msyylex(); /* sets things up, but doesn't process any tokens */
2668
2669 msyylineno = 1; /* start at line 1 */
2670
2671 if(loadStyle(style) == -1) {
2672 msReleaseLock( TLOCK_PARSER );
2673 return MS_FAILURE; /* parse error */;
2674 }
2675 msReleaseLock( TLOCK_PARSER );
2676
2677 msyylex_destroy();
2678 return MS_SUCCESS;
2679}
2680
2681int freeStyle(styleObj *style) {
2682 int i;

Callers 3

msUpdateMapFromURLFunction · 0.85
msLayerGetFeatureStyleFunction · 0.85

Calls 4

msAcquireLockFunction · 0.85
loadStyleFunction · 0.85
msReleaseLockFunction · 0.85
msyylex_destroyFunction · 0.85

Tested by

no test coverage detected