PeachDrawing.Text
PeachDrawing.Text.Unicode.Segmenter
Segmenter.FindSentenceBoundaries(ReadOnlySpan<char>) Method
Finds the boundaries between sentences. A sentence keeps its closing punctuation, the spaces after it and its paragraph separator.
public static int[] FindSentenceBoundaries(System.ReadOnlySpan<char> text);
Parameters
text System.ReadOnlySpan<System.Char>
The text to segment.
Returns
System.Int32[]
The boundaries, as UTF-16 indices.