public String unescape() { StringBuilder sb = new StringBuilder(); while (!eof()) { sb.append(next()); } return sb.toString(); }
public String unescape() { StringBuilder sb = new StringBuilder(); while (!eof()) { sb.append(next()); } return sb.toString(); }
int quote(char which) { while (!eof() && (peek() != which || escaped)) { next(); } return current++; }
int quote(char which) { while (!eof() && (peek() != which || escaped)) { next(); } return current++; }
CharSequence findVar() { int start = current; char c = peek(); if (c == '{') { next(); int end = find('}', '{'); return text.subSequence(start, end); } if (c == '(') { next(); int end = find(')', '('); return text.subSequence(start, end); } if (Character.isJavaIdentifierPart(c)) { while (c == '$') { c = next(); } while (!eof() && (Character.isJavaIdentifierPart(c) || c == '.') && c != '$') { next(); c = peek(); } return text.subSequence(start, current); } throw new IllegalArgumentException( "Reference to variable does not match syntax of a variable: " + context(start)); }
CharSequence findVar() { int start = current; char c = peek(); if (c == '{') { next(); int end = find('}', '{'); return text.subSequence(start, end); } if (c == '(') { next(); int end = find(')', '('); return text.subSequence(start, end); } if (Character.isJavaIdentifierPart(c)) { while (c == '$') { c = next(); } while (!eof() && (Character.isJavaIdentifierPart(c) || c == '.') && c != '$') { next(); c = peek(); } return text.subSequence(start, current); } throw new IllegalArgumentException( "Reference to variable does not match syntax of a variable: " + context(start)); }
private void comment() { while (!eof() && peek() != '\n' && peek() != '\r') { next(); } }
private void comment() { while (!eof() && peek() != '\n' && peek() != '\r') { next(); } }
public String messy() { start = current; char c = peek(); if (c > 0 && SPECIAL.indexOf(c) < 0) { current++; try { while (!eof()) { c = peek(); if (!escaped && (c == ';' || c == '|' || c == '\n' || isWhitespace(c))) { break; } next(); } return text.substring(start, current); } finally { start = -1; } } else { return value(); } }
public String messy() { start = current; char c = peek(); if (c > 0 && SPECIAL.indexOf(c) < 0) { current++; try { while (!eof()) { c = peek(); if (!escaped && (c == ';' || c == '|' || c == '\n' || isWhitespace(c))) { break; } next(); } return text.substring(start, current); } finally { start = -1; } } else { return value(); } }
char c = next(); if (!escaped) { if (c == target) {
char c = next(); if (!escaped) { if (c == target) {