Registry / utility / unicode-linebreak

unicode-linebreak

JSON →
library0.1.5rscratesunverified

Implementation of the Unicode Line Breaking Algorithm for determining line break opportunities in text.

# Cargo.toml [dependencies] unicode-linebreak = "0.1.5"
INSTALL
IMPORT
SIG · UNICODE-LINEBREAK
U
unicode-linebreak
utilityrustv0.1.5
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.

linebreaks
use unicode_linebreak::linebreaks;

Finds line break opportunities in a string according to the Unicode Line Breaking Algorithm.

use unicode_linebreak::linebreaks; fn main() { let text = "Hello, world!"; for (i, is_break) in linebreaks(text) { if is_break { println!("Break at position {}", i); } } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.5latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
unicode-linebreak — cargo add unicode-linebreak · libregistry