(state: ParserState, prefix: str)
| 98 | |
| 99 | |
| 100 | def _read_str(state: ParserState, prefix: str) -> str: |
| 101 | if state.index >= len(state.lines): |
| 102 | return "" |
| 103 | current = state.lines[state.index] |
| 104 | if current.startswith(prefix): |
| 105 | state.index += 1 |
| 106 | return current[len(prefix) :] |
| 107 | return "" |
| 108 | |
| 109 | |
| 110 | def _parse_create_diff(lines: list[str], newline: str) -> str: |
no outgoing calls