MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / Capture

Method Capture

extern/re2/re2/regexp.cc:295–301  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

293}
294
295Regexp* Regexp::Capture(Regexp* sub, ParseFlags flags, int cap) {
296 Regexp* re = new Regexp(kRegexpCapture, flags);
297 re->AllocSub(1);
298 re->sub()[0] = sub;
299 re->cap_ = cap;
300 return re;
301}
302
303Regexp* Regexp::Repeat(Regexp* sub, ParseFlags flags, int min, int max) {
304 Regexp* re = new Regexp(kRegexpRepeat, flags);

Callers

nothing calls this directly

Calls 2

AllocSubMethod · 0.80
subMethod · 0.45

Tested by

no test coverage detected