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

Function msWMSIsSubGroup

mapwms.c:1914–1931  ·  view source on GitHub ↗

* msWMSIsSubGroup */

Source from the content-addressed store, hash-verified

1912 * msWMSIsSubGroup
1913 */
1914int msWMSIsSubGroup(char** currentGroups, int currentLevel, char** otherGroups, int numOtherGroups)
1915{
1916 int i;
1917 /* no match if otherGroups[] has less levels than currentLevel */
1918 if (numOtherGroups <= currentLevel)
1919 {
1920 return MS_FALSE;
1921 }
1922 /* compare all groups below the current level */
1923 for (i = 0; i <= currentLevel; i++)
1924 {
1925 if (strcmp(currentGroups[i], otherGroups[i]) != 0)
1926 {
1927 return MS_FALSE; /* if one of these is not equal it is not a sub group */
1928 }
1929 }
1930 return MS_TRUE;
1931}
1932
1933/***********************************************************************************
1934 * msWMSPrintNestedGroups() *

Callers 1

msWMSPrintNestedGroupsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected