MCPcopy Create free account
hub / github.com/SIPp/sipp / Search

Function Search

cpplint.py:419–423  ·  view source on GitHub ↗

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

(pattern, s)

Source from the content-addressed store, hash-verified

417
418
419def Search(pattern, s):
420 """Searches the string for the pattern, caching the compiled regexp."""
421 if not pattern in _regexp_compile_cache:
422 _regexp_compile_cache[pattern] = sre_compile.compile(pattern)
423 return _regexp_compile_cache[pattern].search(s)
424
425
426class _IncludeState(dict):

Callers 13

CheckBeginMethod · 0.85
CheckForFunctionLengthsFunction · 0.85
CheckSpacingFunction · 0.85
CheckSectionSpacingFunction · 0.85
CheckBracesFunction · 0.85
ReplaceableCheckFunction · 0.85
CheckStyleFunction · 0.85
CheckLanguageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected