MCPcopy Create free account
hub / github.com/dmtcp/dmtcp / Search

Function Search

util/cpplint.py:674–678  ·  view source on GitHub ↗

Searches the string for the pattern, caching the compiled regexp.

(pattern, s)

Source from the content-addressed store, hash-verified

672
673
674def Search(pattern, s):
675 """Searches the string for the pattern, caching the compiled regexp."""
676 if pattern not in _regexp_compile_cache:
677 _regexp_compile_cache[pattern] = sre_compile.compile(pattern)
678 return _regexp_compile_cache[pattern].search(s)
679
680
681def _IsSourceExtension(s):

Callers 15

ParseNolintSuppressionsFunction · 0.85
_CollapseStringsMethod · 0.85
CheckForHeaderGuardFunction · 0.85
CheckHeaderFileIncludedFunction · 0.85
CheckPosixThreadingFunction · 0.85
CheckVlogArgumentsFunction · 0.85
IsMacroDefinitionFunction · 0.85
CheckBeginMethod · 0.85
CheckEndMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected