| 73 | } |
| 74 | |
| 75 | struct LineBreakResult { |
| 76 | const ShapedGlyph* end; |
| 77 | const ShapedGlyph* next; |
| 78 | bool reachedEndLine; |
| 79 | bool brokenByNewLineCharacter; |
| 80 | |
| 81 | constexpr LineBreakResult(const ShapedGlyph* end, |
| 82 | const ShapedGlyph* next, |
| 83 | bool reachedEndLine, |
| 84 | bool brokenByNewLineCharacter) |
| 85 | : end(end), next(next), reachedEndLine(reachedEndLine), brokenByNewLineCharacter(brokenByNewLineCharacter) {} |
| 86 | }; |
| 87 | |
| 88 | static LineBreakResult lineBreak(const ShapedGlyph* begin, |
| 89 | const ShapedGlyph* end, |