Lines Matching refs:pattern
409 def Match(pattern, s): argument
414 if not pattern in _regexp_compile_cache:
415 _regexp_compile_cache[pattern] = sre_compile.compile(pattern)
416 return _regexp_compile_cache[pattern].match(s)
419 def Search(pattern, s): argument
421 if not pattern in _regexp_compile_cache:
422 _regexp_compile_cache[pattern] = sre_compile.compile(pattern)
423 return _regexp_compile_cache[pattern].search(s)
1879 for pattern in (r'\bif\s*\((.*)\)\s*{',
1883 match = Search(pattern, line)
3457 def CheckCStyleCast(filename, linenum, line, raw_line, cast_type, pattern, argument
3477 match = Search(pattern, line)
3702 for pattern, template, header in _re_pattern_algorithm_header:
3703 if pattern.search(line):
3710 for pattern, template, header in _re_pattern_templates:
3711 if pattern.search(line):