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

Method context

java/com/google/re2j/MachineInput.java:208–214  ·  view source on GitHub ↗
(int pos)

Source from the content-addressed store, hash-verified

206 }
207
208 @Override
209 int context(int pos) {
210 pos += start;
211 int r1 = pos > 0 && pos <= str.length() ? Character.codePointBefore(str, pos) : -1;
212 int r2 = pos < str.length() ? Character.codePointAt(str, pos) : -1;
213 return Utils.emptyOpContext(r1, r2);
214 }
215
216 @Override
217 int endPos() {

Callers

nothing calls this directly

Calls 2

emptyOpContextMethod · 0.95
lengthMethod · 0.45

Tested by

no test coverage detected