private int skipSegment(String path, int pos, String prefix) {
        int skipped = 0;
        for (int i = 0; i < prefix.length(); i++) {
            char c = prefix.charAt(i);
            if (isWildcardChar(c)) {
                return skipped;
            }
            int currPos = pos + skipped;
            if (currPos >= path.length()) {
                return 0;
            }
            if (c == path.charAt(currPos)) {
                skipped++;
            }
        }
        return skipped;
    }
Actually match the given {@code path} against the given {@code pattern}.

@param pattern   the pattern to match against
@param path      the path to test
@param fullMatch whether a full pattern match is required (else a pattern match
                 as far as the given base path goes is sufficient)
@return {@code true} if the supplied {@code path} matched, {@code false} if it didn't
analyzer/src/main/java/nl/basjes/parse/useragent/utils/springframework/util/AntPathMatcher.java