DescriptionAdd LazyLineBreakIterator::Next/PreviousBreakOpportunity()
This patch adds LazyLineBreakIterator::Next/PreviousBreakOpportunity(),
ported from ShapingLineBreaker. This allows iterations over break
opportunities without iterating all characters.
In addition:
1. Add LineBreakType to LazyLineBreakIterator. Most existing uses pass
LineBreakType explicitly and they are not affected.
2. IsBreakable() and its sub functions are marked as const. All what it
changes are cached values that mutable is reasonable.
Review-Url: https://codereview.chromium.org/2871173002
Cr-Commit-Position: refs/heads/master@{#470819}
Committed: https://chromium.googlesource.com/chromium/src/+/ba945d41f5c4ebbb6512810a7e3ec728d22cd185
Patch Set 1 : #
Dependent Patchsets: Messages
Total messages: 28 (18 generated)
|