/unicode-ellipsis

A crate to truncate Unicode strings and add ellipsis to them.

Primary LanguageRustApache License 2.0Apache-2.0

unicode-ellipsis

crates.io link Documentation

A crate to truncate Unicode strings to a certain width, automatically adding an ellipsis if the string is too long. Also has some helper functions around Unicode grapheme and string width.

Licensing

Dual-licensed under Apache 2.0 and MIT.