1 unstable release

0.1.0 Jan 17, 2021

#230 in Internationalization (i18n)


Used in french-pluralize

MIT license

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

~555KB