ShiChengxu/moonlayout/segment does not have a README file
pub(all) enum SegmentKind { Word Sentence} derive(Eq, @moonbitlang/core/debug.DebugDebug)
fn SegmentKind::equal(SegmentKind, SegmentKind) -> Bool
fn SegmentKind::not_equal(x : SegmentKind, y : SegmentKind) -> Bool
fn SegmentKind::to_repr(SegmentKind) -> @moonbitlang/core/debug.ReprRepr
fn segments(s : String, kind : SegmentKind) -> Array[(Int, Int)]
fn sentence_boundaries(s : String) -> Array[Int]
fn sentences(s : String) -> Array[String]
fn word_boundaries(s : String) -> Array[Int]
fn words(s : String) -> Array[String]
Install
Unicode 17 paragraph layout, line breaking and word/sentence segmentation
Dependencies
Powered by MoonBit
© 2026 mooncakes.io