PeachDrawing.Text
PeachDrawing.Text.Unicode.LineBreaker
LineBreaker.FindOpportunities(ReadOnlySpan<char>, LineBreakOptions) Method
Finds where a line of text may or must break.
public static PeachDrawing.Text.Unicode.LineBreakOpportunity[] FindOpportunities(System.ReadOnlySpan<char> text, PeachDrawing.Text.Unicode.LineBreakOptions options=default(PeachDrawing.Text.Unicode.LineBreakOptions));
Parameters
text System.ReadOnlySpan<System.Char>
The text of a paragraph.
options LineBreakOptions
How CSS word-break and line-break tailor the algorithm, or default for the normal behaviour.
Returns
LineBreakOpportunity[]
One entry for each UTF-16 index of text, plus a last one for its end, which is always
Mandatory (as is the only entry of empty text). The first entry is always
Prohibited.