A custom (i.e. manual) string split. A single CustomSplit instance represents a single substring. Examples: Consider the following string: ``` "Hi there friend." " This is a custom" f" string {split}." ``` This string will correspond
| 314 | |
| 315 | @dataclass |
| 316 | class CustomSplit: |
| 317 | """A custom (i.e. manual) string split. |
| 318 | |
| 319 | A single CustomSplit instance represents a single substring. |
| 320 | |
| 321 | Examples: |
| 322 | Consider the following string: |
| 323 | ``` |
| 324 | "Hi there friend." |
| 325 | " This is a custom" |
| 326 | f" string {split}." |
| 327 | ``` |
| 328 | |
| 329 | This string will correspond to the following three CustomSplit instances: |
| 330 | ``` |
| 331 | CustomSplit(False, 16) |
| 332 | CustomSplit(False, 17) |
| 333 | CustomSplit(True, 16) |
| 334 | ``` |
| 335 | """ |
| 336 | |
| 337 | has_prefix: bool |
| 338 | break_idx: int |
| 339 | |
| 340 | |
| 341 | CustomSplitMapKey = tuple[StringID, str] |
no outgoing calls
no test coverage detected