public static int skipQuotedString(String args, int startIndex, int len, char quote) {
        for (int i = startIndex; i < len; i++) {
            char ch = args.charAt(i);
            if (ch == '\\') {
                i++;
            } else if (ch == quote && i > startIndex) {
                if (++i < len && args.charAt(i) == quote) {
                    continue;
                } else {
                    return i;
                }
            }
        }

        throw new IllegalArgumentException("Missing quote: " + quote);
    }
Skip quoted string.

@param args       non-null string to scan
@param startIndex start index, optionally start of the quoted string
@param len        end index, usually length of the given string
@param quote      quote supported by {@link #isQuote(char)}
@return index next to the other matched quote
@throws IllegalArgumentException when missing quote
clickhouse-data/src/main/java/com/clickhouse/data/ClickHouseUtils.java