Skip to content

Commit

Permalink
Expose FilteredRE2::GetRE2() as public.
Browse files Browse the repository at this point in the history
Change-Id: Id40f0e46365b12f321e1591f679ad2ad63030f0c
Reviewed-on: https://code-review.googlesource.com/c/re2/+/42010
Reviewed-by: Paul Wankadia <[email protected]>
  • Loading branch information
junyer committed Jun 14, 2019
1 parent 0c95bcc commit d067bdd
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions re2/filtered_re2.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,10 @@ class FilteredRE2 {
// The number of regexps added.
int NumRegexps() const { return static_cast<int>(re2_vec_.size()); }

private:

// Get the individual RE2 objects. Useful for testing.
RE2* GetRE2(int regexpid) const { return re2_vec_[regexpid]; }
// Get the individual RE2 objects.
const RE2& GetRE2(int regexpid) const { return *re2_vec_[regexpid]; }

private:
// Print prefilter.
void PrintPrefilter(int regexpid);

Expand Down

0 comments on commit d067bdd

Please sign in to comment.