Registry / utility / unicode-segmentation

unicode-segmentation

JSON →
library1.13.3rscratesunverified

Provides grapheme cluster, word, and sentence boundaries according to Unicode Standard Annex #29.

# Cargo.toml [dependencies] unicode-segmentation = "1.13.3"
INSTALL
IMPORT
SIG · UNICODE-SEGMENTATI
U
unicode-segmentation
utilityrustv1.13.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

UnicodeSegmentation
✓ use unicode_segmentation::UnicodeSegmentation;

Iterates over grapheme clusters in a string.

use unicode_segmentation::UnicodeSegmentation; fn main() { let s = "Hello, 世界!"; let graphemes: Vec<&str> = s.graphemes(true).collect(); println!("Graphemes: {:?}", graphemes); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.13.3latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
unicode-segmentation — cargo add unicode-segmentation · libregistry