Home
last modified time | relevance | path

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

/tools/repohooks/tools/
Dcpplint.py846 _regexp_compile_cache = {} variable
1035 if pattern not in _regexp_compile_cache:
1036 _regexp_compile_cache[pattern] = sre_compile.compile(pattern)
1037 return _regexp_compile_cache[pattern].match(s)
1053 if pattern not in _regexp_compile_cache:
1054 _regexp_compile_cache[pattern] = sre_compile.compile(pattern)
1055 return _regexp_compile_cache[pattern].sub(rep, s)
1060 if pattern not in _regexp_compile_cache:
1061 _regexp_compile_cache[pattern] = sre_compile.compile(pattern)
1062 return _regexp_compile_cache[pattern].search(s)