MCPcopy Create free account
hub / github.com/OpenPTrack/open_ptrack_v2 / Search

Function Search

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

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

(pattern, s)

Source from the content-addressed store, hash-verified

541
542
543def Search(pattern, s):
544 """Searches the string for the pattern, caching the compiled regexp."""
545 if pattern not in _regexp_compile_cache:
546 _regexp_compile_cache[pattern] = sre_compile.compile(pattern)
547 return _regexp_compile_cache[pattern].search(s)
548
549
550class _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