commit | d4ab000a209b98f63cd0ac1fd514c9084e961051 | [log] [tgz] |
---|---|---|
author | Dave Borowitz <dborowitz@google.com> | Thu Aug 07 13:19:23 2014 -0700 |
committer | Dave Borowitz <dborowitz@google.com> | Thu Aug 07 13:19:23 2014 -0700 |
tree | 0dcdf4f44988cfad4df675ac4d22ae0173a6f1df | |
parent | 1e0e85045ee9586d43c63f867341541e6f4ff8e4 [diff] |
Factor out a class for efficient regex search over lists RegexPathPredicate had some clever logic for avoiding matching regular expressions over an entire search list when we can identify a common prefix that all matching results must have. Factor this out into a new class, RegexListSearcher, add tests, and use it from ListProjects. Change-Id: Ie08ad8dcf09708a8aa3efcfbed6c4ee6879f80c7