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

Method star

java/com/google/re2j/Compiler.java:155–160  ·  view source on GitHub ↗
(Frag f1, boolean nongreedy)

Source from the content-addressed store, hash-verified

153
154 // Given a fragment a, returns a fragment for a* or a*? (if nongreedy)
155 private Frag star(Frag f1, boolean nongreedy) {
156 if (f1.nullable) {
157 return quest(plus(f1, nongreedy), nongreedy);
158 }
159 return loop(f1, nongreedy);
160 }
161
162 // Given a fragment for a, returns a fragment for a+ or a+? (if nongreedy)
163 private Frag plus(Frag f1, boolean nongreedy) {

Callers 1

compileMethod · 0.95

Calls 3

questMethod · 0.95
plusMethod · 0.95
loopMethod · 0.95

Tested by

no test coverage detected