Go to the documentation of this file.
25 #include "util/util.h"
26 #include "util/logging.h"
27 #include "re2/regexp.h"
28 #include "re2/walker-inl.h"
41 bool PostVisit(
Regexp* re,
bool parent_arg,
bool pre_arg,
bool* child_args,
46 LOG(DFATAL) <<
"EmptyStringWalker::ShortVisit called";
55 bool* child_args,
int nchild_args) {
57 for (
int i = 0;
i < nchild_args;
i++)
77 if (re->
rune() ==
'\v')
104 return w.
Walk(
this,
true);
119 bool* child_args,
int nchild_args);
123 LOG(DFATAL) <<
"EmptyStringWalker::ShortVisit called";
137 bool* child_args,
int nchild_args) {
160 for (
int i = 0;
i < nchild_args;
i++)
166 for (
int i = 0;
i < nchild_args;
i++)
173 return child_args[0];
176 return child_args[0] || re->
min() == 0;
184 return w.
Walk(re,
true);
bool ShortVisit(Regexp *re, bool a)
bool PostVisit(Regexp *re, bool parent_arg, bool pre_arg, bool *child_args, int nchild_args)
bool ShortVisit(Regexp *re, bool a)
T Walk(Regexp *re, T top_arg)
EmptyStringWalker & operator=(const EmptyStringWalker &)=delete
static bool CanBeEmptyString(Regexp *re)
bool PostVisit(Regexp *re, bool parent_arg, bool pre_arg, bool *child_args, int nchild_args)
grpc
Author(s):
autogenerated on Fri May 16 2025 02:59:29