MCPcopy Create free account
hub / github.com/google/re2j / lookingAt

Method lookingAt

java/com/google/re2j/Parser.java:759–761  ·  view source on GitHub ↗
(char c)

Source from the content-addressed store, hash-verified

757 // Equivalent to both peek() == c but more efficient because we
758 // don't support surrogates. Precondition: |more()|.
759 boolean lookingAt(char c) {
760 return str.charAt(pos) == c;
761 }
762
763 // Equivalent to rest().startsWith(s).
764 boolean lookingAt(String s) {

Callers 6

parseInternalMethod · 0.95
repeatMethod · 0.45
parseRepeatMethod · 0.45
parseClassCharMethod · 0.45
parseUnicodeClassMethod · 0.45
parseClassMethod · 0.45

Calls 1

restMethod · 0.95

Tested by

no test coverage detected