Searches the string for the pattern, caching the compiled regexp.
(pattern, s)
| 1070 | |
| 1071 | |
| 1072 | def Search(pattern, s): |
| 1073 | """Searches the string for the pattern, caching the compiled regexp.""" |
| 1074 | if pattern not in _regexp_compile_cache: |
| 1075 | _regexp_compile_cache[pattern] = sre_compile.compile(pattern) |
| 1076 | return _regexp_compile_cache[pattern].search(s) |
| 1077 | |
| 1078 | |
| 1079 | def _IsSourceExtension(s): |
no outgoing calls
no test coverage detected