MCPcopy Index your code
hub / github.com/tensorflow/tfjs / Search

Function Search

tfjs-backend-wasm/tools/cpplint.py:685–689  ·  view source on GitHub ↗

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

(pattern, s)

Source from the content-addressed store, hash-verified

683
684
685def Search(pattern, s):
686 """Searches the string for the pattern, caching the compiled regexp."""
687 if pattern not in _regexp_compile_cache:
688 _regexp_compile_cache[pattern] = sre_compile.compile(pattern)
689 return _regexp_compile_cache[pattern].search(s)
690
691
692def _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.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…