MCPcopy Create free account
hub / github.com/cschanck/single-file-java / consumeWS

Method consumeWS

src/main/java/org/sfj/PegLegParser.java:508–510  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

506 }
507
508 private void consumeWS() {
509 for (; ; get().nextChar()) { if (!get().peekOneOf(whiteSpace)) { return; } }
510 }
511
512 private static boolean isCharMatch(boolean iCase, char ch1, char ch2) {
513 return (iCase) ? Character.toUpperCase(ch1) == Character.toUpperCase(ch2) : (ch1 == ch2);

Callers 2

wsRuleMethod · 0.95
wsMethod · 0.95

Calls 3

getMethod · 0.95
nextCharMethod · 0.45
peekOneOfMethod · 0.45

Tested by

no test coverage detected