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

Function msUpdateLabelFromString

mapfile.c:1903–1923  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1901}
1902
1903int msUpdateLabelFromString(labelObj *label, char *string)
1904{
1905 if(!label || !string) return MS_FAILURE;
1906
1907 msAcquireLock( TLOCK_PARSER );
1908
1909 msyystate = MS_TOKENIZE_STRING;
1910 msyystring = string;
1911 msyylex(); /* sets things up, but doesn't process any tokens */
1912
1913 msyylineno = 1; /* start at line 1 */
1914
1915 if(loadLabel(label) == -1) {
1916 msReleaseLock( TLOCK_PARSER );
1917 return MS_FAILURE; /* parse error */;
1918 }
1919 msReleaseLock( TLOCK_PARSER );
1920
1921 msyylex_destroy();
1922 return MS_SUCCESS;
1923}
1924
1925static void writeLabel(FILE *stream, int indent, labelObj *label)
1926{

Callers 1

Calls 4

msAcquireLockFunction · 0.85
loadLabelFunction · 0.85
msReleaseLockFunction · 0.85
msyylex_destroyFunction · 0.85

Tested by

no test coverage detected