Home
last modified time | relevance | path

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

/external/webkit/Tools/Scripts/webkitpy/common/checkout/
Ddiff_parser.py39 _regexp_compile_cache = {} variable
45 if not pattern in _regexp_compile_cache:
46 _regexp_compile_cache[pattern] = re.compile(pattern)
47 return _regexp_compile_cache[pattern].match(string)
/external/webkit/Tools/Scripts/webkitpy/style/checkers/
Dcpp.py134 _regexp_compile_cache = {} variable
139 if not pattern in _regexp_compile_cache:
140 _regexp_compile_cache[pattern] = sre_compile.compile(pattern)
141 return _regexp_compile_cache[pattern].match(s)
146 if not pattern in _regexp_compile_cache:
147 _regexp_compile_cache[pattern] = sre_compile.compile(pattern)
148 return _regexp_compile_cache[pattern].search(s)
153 if not pattern in _regexp_compile_cache:
154 _regexp_compile_cache[pattern] = sre_compile.compile(pattern)
155 return _regexp_compile_cache[pattern].sub(replacement, s)
[all …]