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

Function msSLDGetLogicalOperator

mapogcsld.c:4560–4578  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4558}
4559
4560char *msSLDGetLogicalOperator(char *pszExpression)
4561{
4562
4563 if (!pszExpression)
4564 return NULL;
4565
4566 /* TODO for NOT */
4567
4568 if(strstr(pszExpression, " AND ") || strstr(pszExpression, "AND("))
4569 return msStrdup("And");
4570
4571 if(strstr(pszExpression, " OR ") || strstr(pszExpression, "OR("))
4572 return msStrdup("Or");
4573
4574 if(strstr(pszExpression, "NOT ") || strstr(pszExpression, "NOT("))
4575 return msStrdup("Not");
4576
4577 return NULL;
4578}
4579
4580char *msSLDGetRightExpressionOfOperator(char *pszExpression)
4581{

Callers 1

BuildExpressionTreeFunction · 0.85

Calls 1

msStrdupFunction · 0.85

Tested by

no test coverage detected