Home
last modified time | relevance | path

Searched refs:_regexp_compile_cache (Results 1 – 1 of 1) sorted by relevance

/tools/repohooks/tools/
Dcpplint.py545 _regexp_compile_cache = {} variable
663 if pattern not in _regexp_compile_cache:
664 _regexp_compile_cache[pattern] = sre_compile.compile(pattern)
665 return _regexp_compile_cache[pattern].match(s)
681 if pattern not in _regexp_compile_cache:
682 _regexp_compile_cache[pattern] = sre_compile.compile(pattern)
683 return _regexp_compile_cache[pattern].sub(rep, s)
688 if pattern not in _regexp_compile_cache:
689 _regexp_compile_cache[pattern] = sre_compile.compile(pattern)
690 return _regexp_compile_cache[pattern].search(s)