helix/helix-stdx/src
Michael Davis 360c6bb061
stdx: Replace RopeSliceExt::byte_to_next_char with ceil_char_boundary
The new `RopeSliceExt::ceil_char_boundary` from the parent commits can
be used to implement `RopeSliceExt::byte_to_next_char` when used with
`RopeSlice::byte_to_char`. That function had only one caller and that
caller will eventually disappear when we switch to Ropey v2 and drop
character indexing, so we can drop `byte_to_next_char` now and replace
its caller with `byte_to_char` plus `ceil_char_boundary`.

This change keeps the unit tests for `byte_to_next_char` and checks them
against a polyfill of `byte_to_char` plus `ceil_char_boundary` to ensure
that `byte_to_next_char`'s intended behavior is not changed.
2025-01-26 11:11:53 -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: Replace RopeSliceExt::byte_to_next_char with ceil_char_boundary 2025-01-26 11:11:53 -05:00