Search.
(self, data: str, start: int)
| 832 | return None |
| 833 | |
| 834 | def search(self, data: str, start: int) -> re.Match[str] | None: |
| 835 | """Search.""" |
| 836 | |
| 837 | for i in range(start, len(data)): |
| 838 | if data[i] in self.delimiters: |
| 839 | d = self.delimiters[data[i]] |
| 840 | m = d.boundary.match(data, i) |
| 841 | if m is not None: |
| 842 | if not d.stack and m.lastgroup[0] == 'e': # type: ignore[index] |
| 843 | continue |
| 844 | return m |
| 845 | return None |
| 846 | |
| 847 | def add_region(self, delim: Delimiter, a: int, b: int, c: int, d: int, size: int) -> None: |
| 848 | """Add region.""" |
no outgoing calls
no test coverage detected