MCPcopy Create free account
hub / github.com/pymupdf/PyMuPDF / find_string

Function find_string

src/__init__.py:23766–23773  ·  view source on GitHub ↗
(s, needle)

Source from the content-addressed store, hash-verified

23764
23765
23766def find_string(s, needle):
23767 assert isinstance(s, str)
23768 for i in range(len(s)):
23769 end = match_string(s[i:], needle)
23770 if end is not None:
23771 end += i
23772 return i, end
23773 return None, None
23774
23775
23776def get_pdf_now() -> str:

Callers 1

JM_search_stext_pageFunction · 0.85

Calls 1

match_stringFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…