![]() 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. |
||
---|---|---|
.. | ||
src | ||
tests | ||
.gitignore | ||
build.rs | ||
Cargo.toml |