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

Method AllocSub

extern/re2/re2/regexp.h:514–519  ·  view source on GitHub ↗

Allocate space for n sub-regexps.

Source from the content-addressed store, hash-verified

512
513 // Allocate space for n sub-regexps.
514 void AllocSub(int n) {
515 DCHECK(n >= 0 && static_cast<uint16_t>(n) == n);
516 if (n > 1)
517 submany_ = new Regexp*[n];
518 nsub_ = static_cast<uint16_t>(n);
519 }
520
521 // Add Rune to LiteralString
522 void AddRuneToString(Rune r);

Callers 9

PushRepeatOpMethod · 0.80
PushRepetitionMethod · 0.80
DoRightParenMethod · 0.80
PostVisitMethod · 0.80
Concat2Method · 0.80
StarPlusOrQuestMethod · 0.80
ConcatOrAlternateMethod · 0.80
CaptureMethod · 0.80
RepeatMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected