MCPcopy Index your code
hub / github.com/apache/tomcat / parseName

Method parseName

java/org/apache/jasper/compiler/Parser.java:235–248  ·  view source on GitHub ↗

Name ::= (Letter | '_' | ':') (Letter | Digit | '.' | '_' | '-' | ':')

()

Source from the content-addressed store, hash-verified

233 * Name ::= (Letter | '_' | ':') (Letter | Digit | '.' | '_' | '-' | ':')*
234 */
235 private String parseName() {
236 char ch = (char) reader.peekChar();
237 if (Character.isLetter(ch) || ch == '_' || ch == ':') {
238 StringBuilder buf = new StringBuilder();
239 do {
240 buf.append(ch);
241 reader.nextChar();
242 ch = (char) reader.peekChar();
243 } while (Character.isLetter(ch) || Character.isDigit(ch) || ch == '.' || ch == '_' || ch == '-' ||
244 ch == ':');
245 return buf.toString();
246 }
247 return null;
248 }
249
250 /**
251 * AttributeValueDouble ::= (QuotedChar - '"')* ('"' | <TRANSLATION_ERROR>) RTAttributeValueDouble ::=

Callers 1

parseAttributeMethod · 0.95

Calls 5

peekCharMethod · 0.80
isDigitMethod · 0.80
toStringMethod · 0.65
appendMethod · 0.45
nextCharMethod · 0.45

Tested by

no test coverage detected