stdx: Add floor/ceil/is grapheme boundary functions to RopeSliceExt

These functions are the equivalent of 23b424a46 for grapheme clusters.
In order to add the `is_grapheme_boundary` function we also need to
query whether a byte index lies on a character boundary, so this change
also adds `is_char_boundary`.
This commit is contained in:
Michael Davis 2025-01-26 16:52:29 -05:00
parent 0364521dca
commit 39b72329b4
No known key found for this signature in database
6 changed files with 213 additions and 4 deletions

View file

@ -43,6 +43,7 @@ slotmap = "1.0.7"
thiserror = "2.0"
tempfile = "3.15.0"
bitflags = "2.8"
unicode-segmentation = "1.2"
[workspace.package]
version = "25.1.1"