MCPcopy Create free account
hub / github.com/alibaba/GraphScope / Search

Function Search

analytical_engine/misc/cpplint.py:1061–1065  ·  view source on GitHub ↗

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

(pattern, s)

Source from the content-addressed store, hash-verified

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

compileMethod · 0.80

Tested by

no test coverage detected