Generates random regular expressions, calling HandleRegexp for each one.
| 71 | |
| 72 | // Generates random regular expressions, calling HandleRegexp for each one. |
| 73 | void RegexpGenerator::GenerateRandom(int32_t seed, int n) { |
| 74 | rng_.seed(seed); |
| 75 | |
| 76 | for (int i = 0; i < n; i++) { |
| 77 | std::vector<std::string> postfix; |
| 78 | GenerateRandomPostfix(&postfix, 0, 0, 0); |
| 79 | } |
| 80 | } |
| 81 | |
| 82 | // Counts and returns the number of occurrences of "%s" in s. |
| 83 | static int CountArgs(const std::string& s) { |