helix/helix-stdx/src
Michael Davis 23b424a46d
stdx: Add floor/ceil char boundary functions to RopeSliceExt
These functions mimic `str::floor_char_boundary` and
`str::floor_char_boundary` (currently unstable under
`round_char_boundary`). They're useful for correcting a byte index
which may not lie on a character boundary. For example you might limit
a search within a slice to some fixed number of bytes. The fixed number
might not lie on a boundary though so it needs to be corrected to
either the earlier (floor) or later (ceil) boundary.
2025-01-26 11:10:24 -05:00
..
env.rs Fix slicing panic in path completion variable expansion (#12556) 2025-01-16 18:10:30 -06:00
faccess.rs stdx: ...and this cast is now unnecessary 2024-08-07 07:29:35 +09:00
lib.rs Add range type to helix stdx 2024-12-17 13:34:39 -05:00
path.rs perf: cache `Document`s relative path (#12385) 2025-01-05 16:29:16 -06:00
range.rs Add range type to helix stdx 2024-12-17 13:34:39 -05:00
rope.rs stdx: Add floor/ceil char boundary functions to RopeSliceExt 2025-01-26 11:10:24 -05:00