mirror of
https://github.com/helix-editor/helix.git
synced 2025-04-04 11:27:46 +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
|
@ -20,6 +20,7 @@ regex-cursor = "0.1.4"
|
|||
bitflags.workspace = true
|
||||
once_cell = "1.19"
|
||||
regex-automata = "0.4.9"
|
||||
unicode-segmentation.workspace = true
|
||||
|
||||
[target.'cfg(windows)'.dependencies]
|
||||
windows-sys = { version = "0.59", features = ["Win32_Foundation", "Win32_Security", "Win32_Security_Authorization", "Win32_Storage_FileSystem", "Win32_System_Threading"] }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue