MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / find

Method find

pydevd_attach_to_process/winappdbg/search.py:360–367  ·  view source on GitHub ↗
(self, buffer, pos=None)

Source from the content-addressed store, hash-verified

358 return self.maxLength
359
360 def find(self, buffer, pos=None):
361 if not pos: # make sure pos is an int
362 pos = 0
363 match = self.regexp.search(buffer, pos)
364 if match:
365 start, end = match.span()
366 return start, end - start
367 return -1, 0
368
369
370# ------------------------------------------------------------------------------

Callers

nothing calls this directly

Calls 1

searchMethod · 0.80

Tested by

no test coverage detected