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

Function msUpdateQueryMapFromString

mapfile.c:4750–4773  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4748}
4749
4750int msUpdateQueryMapFromString(queryMapObj *querymap, char *string, int url_string)
4751{
4752 if(!querymap || !string) return MS_FAILURE;
4753
4754 msAcquireLock( TLOCK_PARSER );
4755
4756 if(url_string)
4757 msyystate = MS_TOKENIZE_URL_STRING;
4758 else
4759 msyystate = MS_TOKENIZE_STRING;
4760 msyystring = string;
4761 msyylex(); /* sets things up, but doesn't process any tokens */
4762
4763 msyylineno = 1; /* start at line 1 */
4764
4765 if(loadQueryMap(querymap) == -1) {
4766 msReleaseLock( TLOCK_PARSER );
4767 return MS_FAILURE; /* parse error */;
4768 }
4769 msReleaseLock( TLOCK_PARSER );
4770
4771 msyylex_destroy();
4772 return MS_SUCCESS;
4773}
4774
4775static void writeQueryMap(FILE *stream, int indent, queryMapObj *querymap)
4776{

Callers 2

msUpdateMapFromURLFunction · 0.85

Calls 4

msAcquireLockFunction · 0.85
loadQueryMapFunction · 0.85
msReleaseLockFunction · 0.85
msyylex_destroyFunction · 0.85

Tested by

no test coverage detected