Crates.io | ellipse |
lib.rs | ellipse |
version | 0.2.0 |
source | src |
created_at | 2019-04-17 09:29:26.239772 |
updated_at | 2019-04-22 14:14:46.142491 |
description | Truncate and ellipse strings in a human-friendly way. |
homepage | |
repository | https://github.com/NeoLegends/ellipse |
max_upload_size | |
id | 128519 |
size | 4,990 |
Truncate and ellipse strings in a human-friendly way. Uses unicode extended grapheme clusters.
use ellipse::Ellipse;
let input = "🇩🇪🇬🇧🇮🇹🇫🇷";
assert_eq!(&input.truncate_ellipse(2), "🇩🇪🇬🇧...");
Licensed under either of
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.