Implements the Unicode line breaking algorithm.
The algorithm supports line breaking rules for various languages.
Creates a forward range of breakable text segments.
import std.algorithm : equal, map; auto text = "Hello, world!\nThis is an English example."; auto broken = text .lineBreakRange .map!(lb => lb.text); assert(broken.equal(["Hello, ", "world!\n", "This ", "is ", "an ", "English ", "example."]));
See Source File
Implements the Unicode line breaking algorithm.
The algorithm supports line breaking rules for various languages.