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

Method Repeat

extern/re2/re2/regexp.cc:303–310  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

301}
302
303Regexp* Regexp::Repeat(Regexp* sub, ParseFlags flags, int min, int max) {
304 Regexp* re = new Regexp(kRegexpRepeat, flags);
305 re->AllocSub(1);
306 re->sub()[0] = sub;
307 re->min_ = min;
308 re->max_ = max;
309 return re;
310}
311
312Regexp* Regexp::NewLiteral(Rune rune, ParseFlags flags) {
313 Regexp* re = new Regexp(kRegexpLiteral, flags);

Callers

nothing calls this directly

Calls 2

AllocSubMethod · 0.80
subMethod · 0.45

Tested by

no test coverage detected