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

Method skipUntil

java/org/apache/jasper/compiler/JspReader.java:390–417  ·  view source on GitHub ↗

Skip until the given string is matched in the stream. When returned, the context is positioned past the end of the match. @param limit The String to match. @return A non-null Mark instance (positioned immediately before the search string) if found, null ot

(String limit)

Source from the content-addressed store, hash-verified

388 * <strong>null</strong> otherwise.
389 */
390 Mark skipUntil(String limit) {
391 Mark ret = mark();
392 int limlen = limit.length();
393 char firstChar = limit.charAt(0);
394 Boolean result;
395 Mark restart = null;
396
397 skip:
398 while ((result = indexOf(firstChar, ret)) != null) {
399 if (result.booleanValue()) {
400 if (restart != null) {
401 restart.init(current, true);
402 } else {
403 restart = mark();
404 }
405 for (int i = 1; i < limlen; i++) {
406 if (peekChar() == limit.charAt(i)) {
407 nextChar();
408 } else {
409 current.init(restart, true);
410 continue skip;
411 }
412 }
413 return ret;
414 }
415 }
416 return null;
417 }
418
419 /**
420 * Skip until the given string is matched in the stream, but ignoring chars initially escaped by a '\' and any EL

Callers 12

skipUntilETagMethod · 0.95
hasJspRootMethod · 0.45
parseCommentMethod · 0.45
parseDeclarationMethod · 0.45
parseXMLDeclarationMethod · 0.45
parseExpressionMethod · 0.45
parseXMLExpressionMethod · 0.45
parseScriptletMethod · 0.45
parseXMLScriptletMethod · 0.45
parseXMLTemplateTextMethod · 0.45
parseFileDirectivesMethod · 0.45

Calls 9

markMethod · 0.95
indexOfMethod · 0.95
initMethod · 0.95
peekCharMethod · 0.95
nextCharMethod · 0.95
lengthMethod · 0.80
charAtMethod · 0.80
initMethod · 0.65
booleanValueMethod · 0.45

Tested by

no test coverage detected