348 , fStart(start)
349 , fEnd(end)
352 , fHalfLetterSpacing(0.0)
353 , fIsIdeographic(false) {
354 size_t whiteSpacesBreakLen = 0;
355 size_t intraWordBreakLen = 0;
356
357 const char* ch =
text.begin();
358 if (
text.end() - ch == 1 && *(
const unsigned char*)ch <= 0x7F) {
359
361 ++whiteSpacesBreakLen;
362 }
363 } else {
364 for (
auto i = fTextRange.
start;
i < fTextRange.
end; ++
i) {
366 ++whiteSpacesBreakLen;
367 }
369 ++intraWordBreakLen;
370 }
372 fIsIdeographic = true;
373 }
374 }
375 }
376
377 fIsWhiteSpaceBreak = whiteSpacesBreakLen == fTextRange.
width();
378 fIsIntraWordBreak = intraWordBreakLen == fTextRange.
width();
380 SkUnicode::CodeUnitFlags::kHardLineBreakBefore);
381}
constexpr T * begin() const
ParagraphImpl * owner() const
RunIndex runIndex() const
bool codeUnitHasProperty(size_t index, SkUnicode::CodeUnitFlags property) const
SkSpan< const char > text() const
static bool is_ascii_7bit_space(int c)