Home
last modified time | relevance | path

Searched refs:CodeUnitFlags (Results 1 – 14 of 14) sorted by relevance

/external/skia/experimental/sktext/tests/
DUnicodeText.cpp71 unicodeText16.hasProperty(i, SkUnicode::CodeUnitFlags::kHardLineBreakBefore), in UNIX_ONLY_TEST()
76 unicodeText8.hasProperty(i, SkUnicode::CodeUnitFlags::kHardLineBreakBefore), in UNIX_ONLY_TEST()
81 unicodeText16.hasProperty(i, SkUnicode::CodeUnitFlags::kGraphemeStart), in UNIX_ONLY_TEST()
85 unicodeText8.hasProperty(i, SkUnicode::CodeUnitFlags::kGraphemeStart), in UNIX_ONLY_TEST()
96 unicodeText16.hasProperty(space1, SkUnicode::CodeUnitFlags::kPartOfWhiteSpaceBreak), in UNIX_ONLY_TEST()
101 unicodeText16.hasProperty(space1 + 1, SkUnicode::CodeUnitFlags::kSoftLineBreakBefore), in UNIX_ONLY_TEST()
106 unicodeText16.hasProperty(space2, SkUnicode::CodeUnitFlags::kPartOfWhiteSpaceBreak), in UNIX_ONLY_TEST()
111 unicodeText16.hasProperty(space2 + 1, SkUnicode::CodeUnitFlags::kSoftLineBreakBefore), in UNIX_ONLY_TEST()
117 unicodeText8.hasProperty(space1, SkUnicode::CodeUnitFlags::kPartOfWhiteSpaceBreak), in UNIX_ONLY_TEST()
122 unicodeText8.hasProperty(space1 + 1, SkUnicode::CodeUnitFlags::kSoftLineBreakBefore), in UNIX_ONLY_TEST()
[all …]
/external/skia/modules/skunicode/src/
DSkUnicode.cpp78 bool SkUnicode::isTabulation(SkUnicode::CodeUnitFlags flags) { in isTabulation()
82 bool SkUnicode::isHardLineBreak(SkUnicode::CodeUnitFlags flags) { in isHardLineBreak()
86 bool SkUnicode::isSoftLineBreak(SkUnicode::CodeUnitFlags flags) { in isSoftLineBreak()
90 bool SkUnicode::isGraphemeStart(SkUnicode::CodeUnitFlags flags) { in isGraphemeStart()
94 bool SkUnicode::isControl(SkUnicode::CodeUnitFlags flags) { in isControl()
98 bool SkUnicode::isPartOfWhiteSpaceBreak(SkUnicode::CodeUnitFlags flags) { in isPartOfWhiteSpaceBreak()
DSkUnicode_client.cpp202 SkTArray<SkUnicode::CodeUnitFlags, true>* results) override { in computeCodeUnitFlags() argument
204 results->push_back_n(utf8Units + 1, CodeUnitFlags::kNoCodeUnitFlag); in computeCodeUnitFlags()
208 ? CodeUnitFlags::kHardLineBreakBefore in computeCodeUnitFlags()
209 : CodeUnitFlags::kSoftLineBreakBefore; in computeCodeUnitFlags()
212 (*results)[grapheme] |= CodeUnitFlags::kGraphemeStart; in computeCodeUnitFlags()
244 SkTArray<SkUnicode::CodeUnitFlags, true>* results) override { in computeCodeUnitFlags() argument
246 results->push_back_n(utf16Units + 1, CodeUnitFlags::kNoCodeUnitFlag); in computeCodeUnitFlags()
250 ? CodeUnitFlags::kHardLineBreakBefore in computeCodeUnitFlags()
251 : CodeUnitFlags::kSoftLineBreakBefore; in computeCodeUnitFlags()
254 (*results)[grapheme] |= CodeUnitFlags::kGraphemeStart; in computeCodeUnitFlags()
[all …]
DSkUnicode_icu.cpp381 SkTArray<SkUnicode::CodeUnitFlags, true>* results) override { in computeCodeUnitFlags() argument
383 results->push_back_n(utf8Units + 1, CodeUnitFlags::kNoCodeUnitFlag); in computeCodeUnitFlags()
388 ? CodeUnitFlags::kHardLineBreakBefore in computeCodeUnitFlags()
389 : CodeUnitFlags::kSoftLineBreakBefore; in computeCodeUnitFlags()
394 (*results)[pos] |= CodeUnitFlags::kGraphemeStart; in computeCodeUnitFlags()
428 SkTArray<SkUnicode::CodeUnitFlags, true>* results) override { in computeCodeUnitFlags() argument
430 results->push_back_n(utf16Units + 1, CodeUnitFlags::kNoCodeUnitFlag); in computeCodeUnitFlags()
459 (*results)[pos] |= CodeUnitFlags::kGraphemeStart; in computeCodeUnitFlags()
471 (*results)[pos-1] = CodeUnitFlags::kHardLineBreakBefore; in computeCodeUnitFlags()
473 (*results)[pos] |= CodeUnitFlags::kSoftLineBreakBefore; in computeCodeUnitFlags()
/external/skia/modules/skunicode/include/
DSkUnicode.h78 enum CodeUnitFlags { enum
133 static bool isTabulation(SkUnicode::CodeUnitFlags flags);
134 static bool isHardLineBreak(SkUnicode::CodeUnitFlags flags);
135 static bool isSoftLineBreak(SkUnicode::CodeUnitFlags flags);
136 static bool isGraphemeStart(SkUnicode::CodeUnitFlags flags);
137 static bool isControl(SkUnicode::CodeUnitFlags flags);
138 static bool isPartOfWhiteSpaceBreak(SkUnicode::CodeUnitFlags flags);
150 SkTArray<SkUnicode::CodeUnitFlags, true>* results) = 0;
152 SkTArray<SkUnicode::CodeUnitFlags, true>* results) = 0;
283 template <> struct is_bitmask_enum<SkUnicode::CodeUnitFlags> : std::true_type {};
/external/skia/modules/skparagraph/src/
DParagraphImpl.cpp340 if (fOwner->codeUnitHasProperty(i, SkUnicode::CodeUnitFlags::kPartOfWhiteSpaceBreak)) { in Cluster()
343 if (fOwner->codeUnitHasProperty(i, SkUnicode::CodeUnitFlags::kPartOfIntraWordBreak)) { in Cluster()
352 SkUnicode::CodeUnitFlags::kHardLineBreakBefore); in Cluster()
468 fCodeUnitProperties[run.fTextRange.start] |= SkUnicode::CodeUnitFlags::kGraphemeStart; in buildClusterTable()
469 fCodeUnitProperties[run.fTextRange.start] |= SkUnicode::CodeUnitFlags::kGlyphClusterStart; in buildClusterTable()
472 … fCodeUnitProperties[fRuns.back().textRange().end] |= SkUnicode::CodeUnitFlags::kGraphemeStart; in buildClusterTable()
473 … fCodeUnitProperties[fRuns.back().textRange().end] |= SkUnicode::CodeUnitFlags::kGlyphClusterStart; in buildClusterTable()
488 … fCodeUnitProperties[run.textRange().start] |= SkUnicode::CodeUnitFlags::kSoftLineBreakBefore; in buildClusterTable()
489 … fCodeUnitProperties[run.textRange().end] |= SkUnicode::CodeUnitFlags::kSoftLineBreakBefore; in buildClusterTable()
505 fCodeUnitProperties[charStart] |= SkUnicode::CodeUnitFlags::kGlyphClusterStart; in buildClusterTable()
[all …]
DParagraphImpl.h220 bool codeUnitHasProperty(size_t index, SkUnicode::CodeUnitFlags property) const { in codeUnitHasProperty()
252 SkTArray<SkUnicode::CodeUnitFlags, true> fCodeUnitProperties;
DRun.cpp344 SkUnicode::CodeUnitFlags::kSoftLineBreakBefore); in isSoftBreak()
348 return fOwner->codeUnitHasProperty(fTextRange.end, SkUnicode::CodeUnitFlags::kGraphemeStart); in isGraphemeBreak()
DOneLineShaper.cpp322 SkUnicode::CodeUnitFlags::kControl); in sortOutGlyphs()
710 SkUnicode::CodeUnitFlags::kGraphemeStart)) { in clusteredText()
719 SkUnicode::CodeUnitFlags::kGraphemeStart)) { in clusteredText()
DParagraphCache.cpp87 SkTArray<SkUnicode::CodeUnitFlags, true> fCodeUnitProperties;
/external/skia/experimental/sktext/include/
DText.h43 bool hasProperty(TextIndex index, SkUnicode::CodeUnitFlags flag) const { in hasProperty()
47 return this->hasProperty(index, SkUnicode::CodeUnitFlags::kHardLineBreakBefore); in isHardLineBreak()
50 … return index != 0 && this->hasProperty(index, SkUnicode::CodeUnitFlags::kSoftLineBreakBefore); in isSoftLineBreak()
61 if (this->hasProperty(i, SkUnicode::CodeUnitFlags::kGraphemeStart)) { in forEachGrapheme()
67 } else if (this->hasProperty(i, SkUnicode::CodeUnitFlags::kHardLineBreakBefore)) { in forEachGrapheme()
84 SkTArray<SkUnicode::CodeUnitFlags, true> fCodeUnitProperties;
DInterface.h38 bool hasProperty(TextIndex index, CodeUnitFlags flag) const
/external/skia/experimental/sktext/src/
DText.cpp26 if (!this->hasProperty(i, SkUnicode::CodeUnitFlags::kPartOfWhiteSpaceBreak)) { in isWhitespaces()
63 !this->hasProperty(adjustedBlock.fEnd, SkUnicode::CodeUnitFlags::kGraphemeStart)) { in resolveFonts()
601 unicodeText->hasProperty(textIndex, SkUnicode::CodeUnitFlags::kGraphemeStart)) { in textToGlyphs()
620 if (unicodeText->hasProperty(index, SkUnicode::CodeUnitFlags::kHardLineBreakBefore)) { in prepareToEdit()
626 if (unicodeText->hasProperty(cluster, SkUnicode::CodeUnitFlags::kGraphemeStart)) { in prepareToEdit()
/external/skia/modules/skparagraph/tests/
DSkParagraphTest.cpp214 SkTArray<SkUnicode::CodeUnitFlags, true> codeUnitFlags; in SkUnicode_test()
235 SkTArray<SkUnicode::CodeUnitFlags, true> codeUnitFlags1; in SkUnicode_test()
241 if ((codeUnitFlags1[i] & CodeUnitFlags::kTabulation) == CodeUnitFlags::kTabulation) { in SkUnicode_test()
242 SkASSERT((codeUnitFlags[i] | CodeUnitFlags::kTabulation) == in SkUnicode_test()
243 (codeUnitFlags1[i] | CodeUnitFlags::kControl)); in SkUnicode_test()
270 SkTArray<SkUnicode::CodeUnitFlags, true>* results) override { in computeCodeUnitFlags() argument
275 SkTArray<SkUnicode::CodeUnitFlags, true>* results) override { in computeCodeUnitFlags() argument