| 35 | double url_examples_bytes; |
| 36 | |
| 37 | size_t init_data() { |
| 38 | // compute the number of bytes. |
| 39 | auto compute = []() -> double { |
| 40 | size_t bytes{0}; |
| 41 | for (const auto& [base, input] : url_pattern_examples) { |
| 42 | bytes += base.size() + input.size(); |
| 43 | } |
| 44 | return double(bytes); |
| 45 | }; |
| 46 | |
| 47 | url_examples_bytes = compute(); |
| 48 | return url_pattern_examples.size(); |
| 49 | } |
| 50 | |
| 51 | size_t count_urlpattern_parse_invalid() { |
| 52 | size_t how_many = 0; |