Whether this path's canonical String identity needs escaping: any non-ASCII-graphic byte, or a literal `%` (which would make the escape scheme ambiguous). A plain printable-UTF-8 path without `%` passes through unchanged; everything else carries the injective `%XX` reversible form.
(&self)
| 117 | /// through unchanged; everything else carries the injective `%XX` |
| 118 | /// reversible form. |
| 119 | pub fn needs_escaping(&self) -> bool { |
| 120 | self.0 |
| 121 | .iter() |
| 122 | .any(|byte| !byte.is_ascii_graphic() || *byte == b'%') |
| 123 | } |
| 124 | } |
| 125 | |
| 126 | /// The canonical reversible escape for repository path bytes (review CB-9C |