unicode-ellipsis

Crates.iounicode-ellipsis
lib.rsunicode-ellipsis
version0.2.0
sourcesrc
created_at2024-05-08 00:42:09.134086
updated_at2024-05-26 10:13:01.147701
descriptionA crate to truncate Unicode strings to a certain width, automatically adding an ellipsis if the string is too long.
homepage
repositoryhttps://github.com/ClementTsang/unicode-ellipsis
max_upload_size
id1233271
size44,605
Clement Tsang (ClementTsang)

documentation

https://docs.rs/unicode-ellipsis

README

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.

Commit count: 16

cargo fmt