private boolean currentCharIs(final char c, final boolean moveToNextToken) {
            if (moveToNextToken) {
                moveToNextToken();
            }
            return idx < config.length() && config.charAt(idx) == c;
        }
Parses next expression starting from idx and leaving idx at next token AFTER expression
main/src/main/java/cgeo/geocaching/utils/config/LegacyFilterConfigParser.java