#string #truncate #human

ellipse

Truncate and ellipse strings in a human-friendly way

2 unstable releases

0.2.0 Apr 22, 2019
0.1.0 Apr 17, 2019

#958 in Text processing

Download history 228/week @ 2023-12-05 235/week @ 2023-12-12 231/week @ 2023-12-19 98/week @ 2023-12-26 129/week @ 2024-01-02 244/week @ 2024-01-09 266/week @ 2024-01-16 251/week @ 2024-01-23 232/week @ 2024-01-30 305/week @ 2024-02-06 282/week @ 2024-02-13 310/week @ 2024-02-20 308/week @ 2024-02-27 325/week @ 2024-03-05 345/week @ 2024-03-12 287/week @ 2024-03-19

1,324 downloads per month
Used in 7 crates

MIT/Apache

5KB

ellipse

Travis CI Status crates.io Documentation

Truncate and ellipse strings in a human-friendly way. Uses unicode extended grapheme clusters.

Documentation

Example

use ellipse::Ellipse;

let input = "🇩🇪🇬🇧🇮🇹🇫🇷";
assert_eq!(&input.truncate_ellipse(2), "🇩🇪🇬🇧...");

License

Licensed under either of

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~555KB