Definition at line 238 of file SkUnicode_libgrapheme.cpp.
◆ SkBreakIterator_libgrapheme()
◆ current()
Position SkBreakIterator_libgrapheme::current |
( |
| ) |
|
|
inlineoverridevirtual |
◆ first()
Position SkBreakIterator_libgrapheme::first |
( |
| ) |
|
|
inlineoverridevirtual |
◆ isDone()
bool SkBreakIterator_libgrapheme::isDone |
( |
| ) |
|
|
inlineoverridevirtual |
◆ next()
Position SkBreakIterator_libgrapheme::next |
( |
| ) |
|
|
inlineoverridevirtual |
◆ setText() [1/2]
bool SkBreakIterator_libgrapheme::setText |
( |
const char |
utftext8[], |
|
|
int |
utf8Units |
|
) |
| |
|
inlineoverridevirtual |
Implements SkBreakIterator.
Definition at line 258 of file SkUnicode_libgrapheme.cpp.
258 {
259 fLineBreaks.clear();
260 size_t lineBreak = 0;
261
263 for (
size_t pos = 0;
pos < utf8Units;) {
264 pos += grapheme_next_line_break_utf8(utftext8 +
pos, utf8Units -
pos);
265 auto codePoint = utftext8[
pos];
266 fLineBreaks.emplace_back(
pos,
270 }
271
273 fLineBreakIndex = 0;
274 return true;
275 }
bool isHardBreak(SkUnichar utf8) override
◆ setText() [2/2]
bool SkBreakIterator_libgrapheme::setText |
( |
const char16_t |
utftext16[], |
|
|
int |
utf16Units |
|
) |
| |
|
inlineoverridevirtual |
◆ status()
Status SkBreakIterator_libgrapheme::status |
( |
| ) |
|
|
inlineoverridevirtual |
Implements SkBreakIterator.
Definition at line 251 of file SkUnicode_libgrapheme.cpp.
251 {
252 return fLineBreaks[fLineBreakIndex].breakType ==
254 ? SkUnicode::CodeUnitFlags::kHardLineBreakBefore
255 : SkUnicode::CodeUnitFlags::kSoftLineBreakBefore;
256 }
The documentation for this class was generated from the following file: