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

Method skipNop

java/com/google/re2j/Prog.java:51–58  ·  view source on GitHub ↗
(int pc)

Source from the content-addressed store, hash-verified

49 // skipNop() follows any no-op or capturing instructions and returns the
50 // resulting instruction.
51 Inst skipNop(int pc) {
52 Inst i = inst[pc];
53 while (i.op == Inst.NOP || i.op == Inst.CAPTURE) {
54 i = inst[pc];
55 pc = i.out;
56 }
57 return i;
58 }
59
60 // prefix() returns a pair of a literal string that all matches for the
61 // regexp must start with, and a boolean which is true if the prefix is the

Callers 1

prefixMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected