common_helper/src/main/java/com/xiongyingqi/util/xml/XmlValidationModeDetector.java
private int commentToken(String line, String token, boolean inCommentIfPresent) {
        int index = line.indexOf(token);
        if (index > -1) {
            this.inComment = inCommentIfPresent;
        }
        return (index == -1 ? index : index + token.length());
    }
private int commentToken(String line, String token, boolean inCommentIfPresent) {
        int index = line.indexOf(token);
        if (index > -1) {
            this.inComment = inCommentIfPresent;
        }
        return (index == -1 ? index : index + token.length());
    }
Try to consume the supplied token against the supplied content and update the
in comment parse state to the supplied value. Returns the index into the content
which is after the token or -1 if the token is not found.