#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

#969 in Text processing

Download history 212/week @ 2024-01-05 282/week @ 2024-01-12 286/week @ 2024-01-19 217/week @ 2024-01-26 257/week @ 2024-02-02 296/week @ 2024-02-09 264/week @ 2024-02-16 324/week @ 2024-02-23 297/week @ 2024-03-01 411/week @ 2024-03-08 285/week @ 2024-03-15 333/week @ 2024-03-22 404/week @ 2024-03-29 289/week @ 2024-04-05 342/week @ 2024-04-12 256/week @ 2024-04-19

1,351 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