MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / __init__

Method __init__

strings/boyer_moore_search.py:32–34  ·  view source on GitHub ↗
(self, text: str, pattern: str)

Source from the content-addressed store, hash-verified

30 """
31
32 def __init__(self, text: str, pattern: str):
33 self.text, self.pattern = text, pattern
34 self.textLen, self.patLen = len(text), len(pattern)
35
36 def match_in_pattern(self, char: str) -> int:
37 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected