mirror of
https://github.com/helix-editor/helix.git
synced 2025-04-03 19:07:44 +03:00
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:
parent
0364521dca
commit
39b72329b4
6 changed files with 213 additions and 4 deletions
|
@ -23,7 +23,7 @@ helix-parsec = { path = "../helix-parsec" }
|
|||
ropey = { version = "1.6.1", default-features = false, features = ["simd"] }
|
||||
smallvec = "1.13"
|
||||
smartstring = "1.0.1"
|
||||
unicode-segmentation = "1.12"
|
||||
unicode-segmentation.workspace = true
|
||||
# unicode-width is changing width definitions
|
||||
# that both break our logic and disagree with common
|
||||
# width definitions in terminals, we need to replace it.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue