(self, pos: int)
| 3981 | return self.segment_at(pos).kind == "text" |
| 3982 | |
| 3983 | def clamp_to_reusable_boundary(self, pos: int) -> int: |
| 3984 | if pos <= 0: |
| 3985 | return 0 |
| 3986 | if pos >= self.length: |
| 3987 | return self.length |
| 3988 | if self.is_reusable_boundary(pos): |
| 3989 | return pos |
| 3990 | segment = self.segment_at(pos) |
| 3991 | return segment.start_pos |
| 3992 | |
| 3993 | def decoder_pos_up_to(self, pos: int) -> int: |
| 3994 | if not self.is_reusable_boundary(pos): |
no test coverage detected