Sentences¶
Constructors¶
create¶
Returns¶
- Sentences val^
Public Functions¶
count¶
Number of UAX #29 sentence segments in s. Sentences break at
paragraph separators (SB4) and after end-of-sentence terminators
like ., !, ? followed by appropriate trailing context
(SB11). Default is NO break — single text run with no sentence
terminators yields one segment.
Parameters¶
- s: String box
Returns¶
- (USize val | InvalidUtf8 val)
ranges¶
Iterator over byte ranges [start, end_exclusive) for each
sentence segment.
Parameters¶
- s: String box
Returns¶
- (Iterator[(USize val , USize val)] ref | InvalidUtf8 val)
iter¶
Iterator yielding each sentence as a String val slice.
Parameters¶
- s: String val
Returns¶
- (Iterator[String val] ref | InvalidUtf8 val)
eq¶
Parameters¶
- that: Sentences val
Returns¶
- Bool val
ne¶
Parameters¶
- that: Sentences val
Returns¶
- Bool val