Crate strcursor [−] [src]
This crate provides a "cursor" type for string slices. It provides the ability to safely seek back and forth through a string without worrying about producing invalid UTF-8 sequences, or splitting grapheme clusters.
In addition, it provides types to represent single grapheme clusters (Gc
and GcBuf
) as distinct from arbitrary string slices.
See the StrCursor
type for details.
Reexports
pub use grapheme::{Gc, GcBuf}; |
Modules
grapheme |
Defines types for representing single grapheme clusters. |
Structs
StrCursor |
This type represents a cursor into a string slice; that is, in addition to having a beginning and end, it also has a current position between those two. This position can be seeked left and right within those bounds. |