| 4 | |
| 5 | |
| 6 | class _State: |
| 7 | __slots__ = ("can_continue", "marker", "ok", "pos", "str") |
| 8 | |
| 9 | def __init__(self) -> None: |
| 10 | self.ok = False |
| 11 | """if `true`, this is a valid link title""" |
| 12 | self.can_continue = False |
| 13 | """if `true`, this link can be continued on the next line""" |
| 14 | self.pos = 0 |
| 15 | """if `ok`, it's the position of the first character after the closing marker""" |
| 16 | self.str = "" |
| 17 | """if `ok`, it's the unescaped title""" |
| 18 | self.marker = 0 |
| 19 | """expected closing marker character code""" |
| 20 | |
| 21 | def __str__(self) -> str: |
| 22 | return self.str |
| 23 | |
| 24 | |
| 25 | def parseLinkTitle( |
no outgoing calls
no test coverage detected
searching dependent graphs…