MCPcopy Create free account
hub / github.com/apache/mesos / Search

Function Search

support/cpplint.py:690–694  ·  view source on GitHub ↗

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

(pattern, s)

Source from the content-addressed store, hash-verified

688
689
690def Search(pattern, s):
691 """Searches the string for the pattern, caching the compiled regexp."""
692 if pattern not in _regexp_compile_cache:
693 _regexp_compile_cache[pattern] = sre_compile.compile(pattern)
694 return _regexp_compile_cache[pattern].search(s)
695
696
697def _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