ellipse

Crates.ioellipse
lib.rsellipse
version0.2.0
sourcesrc
created_at2019-04-17 09:29:26.239772
updated_at2019-04-22 14:14:46.142491
descriptionTruncate and ellipse strings in a human-friendly way.
homepage
repositoryhttps://github.com/NeoLegends/ellipse
max_upload_size
id128519
size4,990
Moritz Gunz (NeoLegends)

documentation

README

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.

Commit count: 9

cargo fmt