Returns a cursor offset and line with the current substitution made
(self)
| 263 | return self.matches[self.index] |
| 264 | |
| 265 | def cur_line(self) -> tuple[int, str]: |
| 266 | """Returns a cursor offset and line with the current substitution |
| 267 | made""" |
| 268 | return self.substitute(self.current()) |
| 269 | |
| 270 | def substitute(self, match: str) -> tuple[int, str]: |
| 271 | """Returns a cursor offset and line with match substituted in""" |