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

Method DoFinish

extern/re2/re2/parse.cc:715–725  ·  view source on GitHub ↗

Processes the end of input, returning the final regexp.

Source from the content-addressed store, hash-verified

713
714// Processes the end of input, returning the final regexp.
715Regexp* Regexp::ParseState::DoFinish() {
716 DoAlternation();
717 Regexp* re = stacktop_;
718 if (re != NULL && re->down_ != NULL) {
719 status_->set_code(kRegexpMissingParen);
720 status_->set_error_arg(whole_regexp_);
721 return NULL;
722 }
723 stacktop_ = NULL;
724 return FinishRegexp(re);
725}
726
727// Returns the leading regexp that re starts with.
728// The returned Regexp* points into a piece of re,

Callers 1

ParseMethod · 0.80

Calls 2

set_codeMethod · 0.80
set_error_argMethod · 0.80

Tested by

no test coverage detected