bundles/org.apache.jasper.glassfish/src/org/apache/jasper/compiler/ELParser.java
private Token parseQuotedChars(char quote) {
	StringBuilder buf = new StringBuilder();
	buf.append(quote);
	while (hasNextChar()) {
	    char ch = nextChar();
	    if (ch == '\\') {
		ch = nextChar();
		if (ch == '\\' || ch == quote) {
		    buf.append(ch);
		}
		// else error!
	    } else if (ch == quote) {
		buf.append(ch);
		break;
	    } else {
		buf.append(ch);
	    }
	}
	return new QuotedString(buf.toString());
    }
private Token parseQuotedChars(char quote) {
	StringBuilder buf = new StringBuilder();
	buf.append(quote);
	while (hasNextChar()) {
	    char ch = nextChar();
	    if (ch == '\\') {
		ch = nextChar();
		if (ch == '\\' || ch == quote) {
		    buf.append(ch);
		}
		// else error!
	    } else if (ch == quote) {
		buf.append(ch);
		break;
	    } else {
		buf.append(ch);
	    }
	}
	return new QuotedString(buf.toString());
    }
private Token parseQuotedChars ( char quote ) { StringBuilder buf = new StringBuilder ( ) ; buf . append ( quote ) ; while ( hasNextChar ( ) ) { char ch = nextChar ( ) ; if ( ch == ' ' ) { ch = nextChar ( ) ; if ( ch == ' ' || ch == quote ) { buf . append ( ch ) ; } // else error! } else if ( ch == quote ) { buf . append ( ch ) ; break ; } else { buf . append ( ch ) ; } } return new QuotedString ( buf . toString ( ) ) ; }
/*
Parse a string in single or double quotes, allowing for escape sequences
'\\', and ('\"', or "\'")
/ * Parse a string in single or double quotes allowing for escape sequences \\ and ( \ or \ )