Searched refs:CodeUnitFlags (Results 1 – 10 of 10) sorted by relevance
/third_party/skia/experimental/sktext/tests/ |
D | UnicodeText.cpp | 66 …REPORTER_ASSERT(reporter, unicodeText16.hasProperty(i, CodeUnitFlags::kHardLineBreakBefore), "Pos1… in UNIX_ONLY_TEST() 67 …REPORTER_ASSERT(reporter, unicodeText8 .hasProperty(i, CodeUnitFlags::kHardLineBreakBefore), "Pos8… in UNIX_ONLY_TEST() 69 …REPORTER_ASSERT(reporter, unicodeText16.hasProperty(i, CodeUnitFlags::kGraphemeStart), "Pos16 %d s… in UNIX_ONLY_TEST() 70 …REPORTER_ASSERT(reporter, unicodeText8 .hasProperty(i, CodeUnitFlags::kGraphemeStart), "Pos8 %d sh… in UNIX_ONLY_TEST() 77 …REPORTER_ASSERT(reporter, unicodeText16.hasProperty(space1, CodeUnitFlags::kPartOfWhiteSpace), "Po… in UNIX_ONLY_TEST() 78 …REPORTER_ASSERT(reporter, unicodeText16.hasProperty(space1 + 1, CodeUnitFlags::kSoftLineBreakBefor… in UNIX_ONLY_TEST() 79 …REPORTER_ASSERT(reporter, unicodeText16.hasProperty(space2, CodeUnitFlags::kPartOfWhiteSpace), "Po… in UNIX_ONLY_TEST() 80 …REPORTER_ASSERT(reporter, unicodeText16.hasProperty(space2 + 1, CodeUnitFlags::kSoftLineBreakBefor… in UNIX_ONLY_TEST() 82 …REPORTER_ASSERT(reporter, unicodeText8 .hasProperty(space1, CodeUnitFlags::kPartOfWhiteSpace), "Po… in UNIX_ONLY_TEST() 83 …REPORTER_ASSERT(reporter, unicodeText8 .hasProperty(space1 + 1, CodeUnitFlags::kSoftLineBreakBefor… in UNIX_ONLY_TEST() [all …]
|
/third_party/skia/modules/skparagraph/src/ |
D | ParagraphImpl.cpp | 133 this->fCodeUnitProperties.push_back_n(fText.size() + 1, CodeUnitFlags::kNoCodeUnitFlag); in layout() 273 fCodeUnitProperties[i] |= CodeUnitFlags::kPartOfWhiteSpaceBreak; in computeCodeUnitProperties() 278 fCodeUnitProperties[i] |= CodeUnitFlags::kPartOfIntraWordBreak; in computeCodeUnitProperties() 290 ? CodeUnitFlags::kHardLineBreakBefore in computeCodeUnitProperties() 291 : CodeUnitFlags::kSoftLineBreakBefore; in computeCodeUnitProperties() 300 fCodeUnitProperties[pos] |= CodeUnitFlags::kGraphemeStart; in computeCodeUnitProperties() 354 if (fOwner->codeUnitHasProperty(i, CodeUnitFlags::kPartOfWhiteSpaceBreak)) { in Cluster() 357 if (fOwner->codeUnitHasProperty(i, CodeUnitFlags::kPartOfIntraWordBreak)) { in Cluster() 365 fIsHardBreak = fOwner->codeUnitHasProperty(fTextRange.end, CodeUnitFlags::kHardLineBreakBefore); in Cluster() 403 fCodeUnitProperties[run.textRange().start] |= CodeUnitFlags::kSoftLineBreakBefore; in buildClusterTable() [all …]
|
D | ParagraphImpl.h | 39 enum CodeUnitFlags { enum 51 template <> struct is_bitmask_enum<skia::textlayout::CodeUnitFlags> : std::true_type {}; 224 …bool codeUnitHasProperty(size_t index, CodeUnitFlags property) const { return (fCodeUnitProperties… 254 SkTArray<CodeUnitFlags> fCodeUnitProperties;
|
D | Run.cpp | 317 return fOwner->codeUnitHasProperty(fTextRange.end, CodeUnitFlags::kSoftLineBreakBefore); in isSoftBreak() 321 return fOwner->codeUnitHasProperty(fTextRange.end, CodeUnitFlags::kGraphemeStart); in isGraphemeBreak()
|
D | OneLineShaper.cpp | 733 CodeUnitFlags::kGraphemeStart)) { in clusteredText() 742 CodeUnitFlags::kGraphemeStart)) { in clusteredText()
|
D | ParagraphCache.cpp | 57 SkTArray<CodeUnitFlags> fCodeUnitProperties;
|
/third_party/skia/experimental/sktext/include/ |
D | Text.h | 43 bool hasProperty(TextIndex index, CodeUnitFlags flag) const { in hasProperty() 47 return this->hasProperty(index, CodeUnitFlags::kHardLineBreakBefore); in isHardLineBreak() 50 return index != 0 && this->hasProperty(index, CodeUnitFlags::kSoftLineBreakBefore); in isSoftLineBreak() 61 if (this->hasProperty(i, CodeUnitFlags::kGraphemeStart)) { in forEachGrapheme() 67 } else if (this->hasProperty(i, CodeUnitFlags::kHardLineBreakBefore)) { in forEachGrapheme() 84 SkTArray<CodeUnitFlags, true> fCodeUnitProperties;
|
D | Types.h | 49 enum class CodeUnitFlags : uint8_t { enum 226 template <> struct is_bitmask_enum<skia::text::CodeUnitFlags> : std::true_type {};
|
D | Interface.h | 38 bool hasProperty(TextIndex index, CodeUnitFlags flag) const
|
/third_party/skia/experimental/sktext/src/ |
D | Text.cpp | 23 if (!this->hasProperty(i, CodeUnitFlags::kPartOfWhiteSpace)) { in isWhitespaces() 36 fCodeUnitProperties.push_back_n(utf16.size() + 1, CodeUnitFlags::kNoCodeUnitFlag); in initialize() 41 fCodeUnitProperties[i] |= CodeUnitFlags::kPartOfWhiteSpace; in initialize() 48 fCodeUnitProperties[pos]|= CodeUnitFlags::kGraphemeStart; in initialize() 56 … fCodeUnitProperties[pos - 1] = CodeUnitFlags::kHardLineBreakBefore; in initialize() 58 fCodeUnitProperties[pos] |= CodeUnitFlags::kSoftLineBreakBefore; in initialize() 80 …End < this->fText16.size() && !this->hasProperty(adjustedBlock.fEnd, CodeUnitFlags::kGraphemeStar… in resolveFonts() 620 …PositionType::kGraphemeCluster && unicodeText->hasProperty(textIndex, CodeUnitFlags::kGraphemeStar… in textToGlyphs() 639 if (unicodeText->hasProperty(index, CodeUnitFlags::kHardLineBreakBefore)) { in prepareToEdit() 645 if (unicodeText->hasProperty(cluster, CodeUnitFlags::kGraphemeStart)) { in prepareToEdit()
|