| 502 | }; |
| 503 | |
| 504 | Prefilter::Info* Prefilter::BuildInfo(Regexp* re) { |
| 505 | if (ExtraDebug) |
| 506 | LOG(ERROR) << "BuildPrefilter::Info: " << re->ToString(); |
| 507 | |
| 508 | bool latin1 = (re->parse_flags() & Regexp::Latin1) != 0; |
| 509 | Prefilter::Info::Walker w(latin1); |
| 510 | Prefilter::Info* info = w.WalkExponential(re, NULL, 100000); |
| 511 | |
| 512 | if (w.stopped_early()) { |
| 513 | delete info; |
| 514 | return NULL; |
| 515 | } |
| 516 | |
| 517 | return info; |
| 518 | } |
| 519 | |
| 520 | Prefilter::Info* Prefilter::Info::Walker::ShortVisit( |
| 521 | Regexp* re, Prefilter::Info* parent_arg) { |
nothing calls this directly
no test coverage detected