Uses old Rust 2015
|0.2.5||Mar 20, 2017|
|0.2.4||Mar 16, 2017|
|0.2.3||Mar 5, 2016|
|0.2.2||Feb 9, 2016|
|0.1.0||Jun 22, 2015|
#409 in Text processing
243 downloads per month
Used in 11 crates (3 directly)
Note: This is something of a work-in-progress. It has tests, but hasn't been exhaustively vetted.
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 (
GcBuf) as distinct from arbitrary string slices.
StrCursor type for details.
strcursor is currently supported on
rustc version 1.1.0 and higher.
rustc< 1.4 will use a larger, less space-efficient implementation of
GcBuf; rather than being the same size as
Box<str>, it will be the same size as
rustc< 1.1 is not supported, due to a mysterious compiler crash.
Licensed under either of
- MIT license (see LICENSE or http://opensource.org/licenses/MIT)
- Apache License, Version 2.0 (see LICENSE or http://www.apache.org/licenses/LICENSE-2.0)
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be dual licensed as above, without any additional terms or conditions.