|
| std::map< std::string, int > * | TakeMap () |
| virtual Ignored | PreVisit (Regexp *re, Ignored ignored, bool *stop) |
| virtual Ignored | ShortVisit (Regexp *re, Ignored ignored) |
| virtual Ignored | PostVisit (Regexp *re, Ignored parent_arg, Ignored pre_arg, Ignored *child_args, int nchild_args) |
| virtual Ignored | Copy (Ignored arg) |
| Ignored | Walk (Regexp *re, Ignored top_arg) |
| Ignored | WalkExponential (Regexp *re, Ignored top_arg, int max_visits) |
| void | Reset () |
| bool | stopped_early () |
|
|
| NamedCapturesWalker (const NamedCapturesWalker &)=delete |
|
NamedCapturesWalker & | operator= (const NamedCapturesWalker &)=delete |
|
|
std::map< std::string, int > * | map_ |
◆ NamedCapturesWalker()
| duckdb_re2::NamedCapturesWalker::NamedCapturesWalker |
( |
| ) |
|
|
inline |
◆ ~NamedCapturesWalker()
| duckdb_re2::NamedCapturesWalker::~NamedCapturesWalker |
( |
| ) |
|
|
inline |
◆ TakeMap()
| std::map< std::string, int > * duckdb_re2::NamedCapturesWalker::TakeMap |
( |
| ) |
|
|
inline |
473526 {
473527 std::map<std::string, int>* m = map_;
473528 map_ = NULL;
473529 return m;
473530 }
◆ PreVisit()
| virtual Ignored duckdb_re2::NamedCapturesWalker::PreVisit |
( |
Regexp * | re, |
|
|
Ignored | ignored, |
|
|
bool * | stop ) |
|
inlinevirtual |
Reimplemented from duckdb_re2::Regexp::Walker< Ignored >.
473532 {
473533 if (re->op() == kRegexpCapture && re->name() != NULL) {
473534
473535 if (map_ == NULL)
473536 map_ = new std::map<std::string, int>;
473537
473538
473539
473540
473541 map_->insert({*re->name(), re->cap()});
473542 }
473543 return ignored;
473544 }
◆ ShortVisit()
| virtual Ignored duckdb_re2::NamedCapturesWalker::ShortVisit |
( |
Regexp * | re, |
|
|
Ignored | ignored ) |
|
inlinevirtual |
Implements duckdb_re2::Regexp::Walker< Ignored >.
473546 {
473547
473548#ifndef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
473549 LOG(DFATAL) << "NamedCapturesWalker::ShortVisit called";
473550#endif
473551 return ignored;
473552 }
The documentation for this class was generated from the following file: