1 unstable release
0.1.0 | Jan 17, 2021 |
---|
#243 in Internationalization (i18n)
Used in french-pluralize
6KB
96 lines
Grapheme Picker
A Rust library to help users to get parts of words.
[dependencies]
grapheme-picker = "0.1.0"
use grapheme_picker::{take_last, take_lasts, drop_last, drop_lasts};
assert_eq!(take_last("tests"), "s");
assert_eq!(take_lasts("tests", 3), "sts");
assert_eq!(drop_last("tests"), "test");
assert_eq!(drop_lasts("tests", 3), "te");
Dependencies
~550KB