* msWMSIsSubGroup */
| 1912 | * msWMSIsSubGroup |
| 1913 | */ |
| 1914 | int 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() * |
no outgoing calls
no test coverage detected