Go to the documentation of this file.
5 #ifndef RE2_TESTING_REGEXP_GENERATOR_H_
6 #define RE2_TESTING_REGEXP_GENERATOR_H_
16 #include "util/util.h"
17 #include "re2/stringpiece.h"
30 class RegexpGenerator {
33 const std::vector<std::string>& atoms,
34 const std::vector<std::string>&
ops);
47 static const std::vector<std::string>&
EgrepOps();
52 int nstk,
int ops,
int lits);
54 int nstk,
int ops,
int lits);
58 std::vector<std::string>
atoms_;
59 std::vector<std::string>
ops_;
60 std::minstd_rand0
rng_;
69 std::vector<std::string>
Explode(
const StringPiece& s);
73 std::vector<std::string>
Split(
const StringPiece&
sep,
const StringPiece& s);
77 #endif // RE2_TESTING_REGEXP_GENERATOR_H_
std::vector< std::string > ops_
static void post(QUEUE *q, enum uv__work_kind kind)
std::vector< std::string > Split(const StringPiece &sep, const StringPiece &s)
static const uint8_t seed[20]
RegexpGenerator(int maxatoms, int maxops, const std::vector< std::string > &atoms, const std::vector< std::string > &ops)
void RunPostfix(const std::vector< std::string > &post)
virtual ~RegexpGenerator()
std::vector< std::string > atoms_
RegexpGenerator & operator=(const RegexpGenerator &)=delete
virtual void HandleRegexp(const std::string ®exp)=0
static const std::vector< std::string > & EgrepOps()
std::vector< std::string > Explode(const StringPiece &s)
void GeneratePostfix(std::vector< std::string > *post, int nstk, int ops, int lits)
void GenerateRandom(int32_t seed, int n)
bool GenerateRandomPostfix(std::vector< std::string > *post, int nstk, int ops, int lits)
grpc
Author(s):
autogenerated on Fri May 16 2025 03:00:02