MCPcopy Create free account
hub / github.com/BVLC/caffe / Search

Function Search

scripts/cpp_lint.py:547–551  ·  view source on GitHub ↗

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

(pattern, s)

Source from the content-addressed store, hash-verified

545
546
547def Search(pattern, s):
548 """Searches the string for the pattern, caching the compiled regexp."""
549 if pattern not in _regexp_compile_cache:
550 _regexp_compile_cache[pattern] = sre_compile.compile(pattern)
551 return _regexp_compile_cache[pattern].search(s)
552
553
554class _IncludeState(dict):

Callers 13

CheckVlogArgumentsFunction · 0.85
CheckBeginMethod · 0.85
CheckForFunctionLengthsFunction · 0.85
CheckSpacingFunction · 0.85
CheckSectionSpacingFunction · 0.85
CheckBracesFunction · 0.85
CheckLanguageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected