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

Function Search

src/tests/coding/cpplint.py:1057–1061  ·  view source on GitHub ↗

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

(pattern, s)

Source from the content-addressed store, hash-verified

1055
1056
1057def Search(pattern, s):
1058 """Searches the string for the pattern, caching the compiled regexp."""
1059 if pattern not in _regexp_compile_cache:
1060 _regexp_compile_cache[pattern] = sre_compile.compile(pattern)
1061 return _regexp_compile_cache[pattern].search(s)
1062
1063
1064def _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 1

searchMethod · 0.80

Tested by

no test coverage detected