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

/external/webkit/WebKitTools/Scripts/webkitpy/
H A Ddiff_parser.py35 _regexp_compile_cache = {} variable
40 if not pattern in _regexp_compile_cache:
41 _regexp_compile_cache[pattern] = re.compile(pattern)
42 return _regexp_compile_cache[pattern].match(string)
/external/webkit/WebKitTools/Scripts/webkitpy/style/processors/
H A Dcpp.py124 _regexp_compile_cache = {} variable
129 if not pattern in _regexp_compile_cache:
130 _regexp_compile_cache[pattern] = sre_compile.compile(pattern)
131 return _regexp_compile_cache[pattern].match(s)
136 if not pattern in _regexp_compile_cache:
137 _regexp_compile_cache[pattern] = sre_compile.compile(pattern)
138 return _regexp_compile_cache[pattern].search(s)
143 if not pattern in _regexp_compile_cache:
144 _regexp_compile_cache[pattern] = sre_compile.compile(pattern)
145 return _regexp_compile_cache[patter
[all...]

Completed in 37 milliseconds