Definition at line 196 of file SkUnicode_client.cpp.
◆ SkBreakIterator_client()
◆ current()
Position SkBreakIterator_client::current |
( |
| ) |
|
|
inlineoverridevirtual |
◆ first()
Position SkBreakIterator_client::first |
( |
| ) |
|
|
inlineoverridevirtual |
◆ isDone()
bool SkBreakIterator_client::isDone |
( |
| ) |
|
|
inlineoverridevirtual |
◆ next()
Position SkBreakIterator_client::next |
( |
| ) |
|
|
inlineoverridevirtual |
◆ setText() [1/2]
bool SkBreakIterator_client::setText |
( |
const char |
utftext8[], |
|
|
int |
utf8Units |
|
) |
| |
|
inlineoverridevirtual |
Implements SkBreakIterator.
Definition at line 216 of file SkUnicode_client.cpp.
216 {
217 SkASSERT(utftext8 >= fData->fText8.data() &&
218 utf8Units <=
SkToS16(fData->fText8.size()));
219 fStart = utftext8 - fData->fText8.data();
220 fEnd = fStart + utf8Units;
221 fLastResult = 0;
222 return true;
223 }
constexpr int16_t SkToS16(S x)
◆ setText() [2/2]
bool SkBreakIterator_client::setText |
( |
const char16_t |
utftext16[], |
|
|
int |
utf16Units |
|
) |
| |
|
inlineoverridevirtual |
Implements SkBreakIterator.
Definition at line 224 of file SkUnicode_client.cpp.
224 {
225 SkASSERT(utftext16 >= fData->fText16.data() &&
226 utf16Units <=
SkToS16(fData->fText16.size()));
227 fStart = utftext16 - fData->fText16.data();
228 fEnd = fStart + utf16Units;
229 fLastResult = 0;
230 return true;
231 }
◆ status()
Status SkBreakIterator_client::status |
( |
| ) |
|
|
inlineoverridevirtual |
Implements SkBreakIterator.
Definition at line 209 of file SkUnicode_client.cpp.
209 {
210 return fData->fLineBreaks[fStart + fLastResult].breakType ==
212 ? SkUnicode::CodeUnitFlags::kHardLineBreakBefore
213 : SkUnicode::CodeUnitFlags::kSoftLineBreakBefore;
214 }
The documentation for this class was generated from the following file: