private void consumeQuotedLiteral() {
        while (!isEoi()) {
            final int ch = consumeChar();
            // Literal character in quote
            if (ch != '\'') {
                addLiteral(ch);
            }
            // Literal quote mark ('')
            else if (peek() == '\'') {
                consumeChar();
                addLiteral('\'');
            }
            // End of quoted literal
            else {
                break;
            }
        }
    }
Creates a new pattern read for processing the given string.
@param sequence String with the pattern to process.
@param visitor Visitor to call for each encountered token of the pattern.
primefaces/src/main/java/org/primefaces/convert/PatternReader.java