/third_party/flutter/skia/modules/skparagraph/src/ |
D | Iterators.h | 22 : fText(utf8), fCurrentChar(utf8.begin()), fFontResolver(fontResolver) { in FontIterator() 26 SkASSERT(fCurrentChar < fText.end()); in consume() 30 fCurrentChar = fText.end(); in consume() 34 while (++fCurrentChar != fText.end()) { in consume() 46 size_t endOfCurrentRun() const override { return fCurrentChar - fText.begin(); } in endOfCurrentRun() 47 bool atEnd() const override { return fCurrentChar == fText.end(); } in atEnd() 53 SkSpan<const char> fText; 63 : fText(utf8) in LangIterator() 70 SkASSERT(fCurrentChar < fText.end()); in consume() 73 fCurrentChar = fText.end(); in consume() [all …]
|
D | FontResolver.cpp | 28 TextIndex index = codepoint - fText.begin(); in findNext() 47 const char* end = fText.begin() + textRange.end; in findAllFontsForStyledBlock() 48 const char* current = fText.begin() + textRange.start; in findAllFontsForStyledBlock() 150 fFontMapping.set(fCharacters[resolved.start] - fText.begin(), font); in resolveAllCharactersByFont() 201 fFontMapping.set(fCharacters[index] - fText.begin(), *found); in addResolvedWhitespacesToMapping() 236 fText = master->text(); in findAllFontsForAllStyledBlocks() 237 fTextRange = TextRange(0, fText.size()); in findAllFontsForAllStyledBlocks() 261 for (auto& ch : fText) { in findAllFontsForAllStyledBlocks() 266 auto found = fFontMapping.find(&ch - fText.begin()); in findAllFontsForAllStyledBlocks() 283 prev->fStart = &ch - fText.begin(); in findAllFontsForAllStyledBlocks()
|
D | ParagraphCache.cpp | 11 : fText(paragraph->fText.c_str(), paragraph->fText.size()) in ParagraphCacheKey() 16 SkString fText; member in skia::textlayout::ParagraphCacheKey 65 hash = mix(hash, SkGoodHash()(key.fText)); in operator ()() 70 if (a.fText.size() != b.fText.size()) { in operator ==() 76 if (a.fText != b.fText) { in operator ==()
|
/third_party/skia/modules/skottie/src/text/ |
D | TextAdapter.cpp | 226 adapter->bind(*abuilder, jd, adapter->fText.fCurrentValue); in Make() 320 draws.reserve(static_cast<size_t>(fText->fHasFill) + static_cast<size_t>(fText->fHasStroke)); in addFragment() 322 SkASSERT(fText->fHasFill || fText->fHasStroke); in addFragment() 325 if (fText->fHasFill) { in addFragment() 326 rec.fFillColorNode = sksg::Color::Make(fText->fFillColor); in addFragment() 332 if (fText->fHasStroke) { in addFragment() 333 rec.fStrokeColorNode = sksg::Color::Make(fText->fStrokeColor); in addFragment() 336 rec.fStrokeColorNode->setStrokeWidth(fText->fStrokeWidth); in addFragment() 341 if (fText->fPaintOrder == TextPaintOrder::kFillStroke) { in addFragment() 436 fText.fCurrentValue = txt; in setText() [all …]
|
/third_party/flutter/skia/modules/skottie/src/text/ |
D | TextAdapter.cpp | 49 draws.reserve(static_cast<size_t>(fText.fHasFill) + static_cast<size_t>(fText.fHasStroke)); in addFragment() 51 SkASSERT(fText.fHasFill || fText.fHasStroke); in addFragment() 53 if (fText.fHasFill) { in addFragment() 54 rec.fFillColorNode = sksg::Color::Make(fText.fFillColor); in addFragment() 58 if (fText.fHasStroke) { in addFragment() 59 rec.fStrokeColorNode = sksg::Color::Make(fText.fStrokeColor); in addFragment() 122 if (!fText.fHasFill && !fText.fHasStroke) { in apply() 127 fText.fTypeface, in apply() 128 fText.fTextSize, in apply() 129 fText.fLineHeight, in apply() [all …]
|
/third_party/skia/experimental/sktext/editor/ |
D | Texts.h | 31 fText = std::move(text); in StaticText() 34 …e_unique<UnicodeText>(std::move(unicode), SkSpan<uint16_t>((uint16_t*)fText.data(), fText.size())); in StaticText() 45 std::u16string fText; variable 69 fText = std::move(text); in DynamicText() 72 …e_unique<UnicodeText>(std::move(unicode), SkSpan<uint16_t>((uint16_t*)fText.data(), fText.size())); in DynamicText() 95 this->fText = std::move(text); in rebuild() 98 …e_unique<UnicodeText>(std::move(unicode), SkSpan<uint16_t>((uint16_t*)fText.data(), fText.size())); in rebuild() 123 std::u16string fText; 147 bool isEmpty() { return fText.empty(); } in isEmpty() 167 text.append(this->fText.substr(0, toRemove.fStart)); in removeElement() [all …]
|
/third_party/skia/modules/skparagraph/src/ |
D | Iterators.h | 17 : fText(utf8) in LangIterator() 24 SkASSERT(fCurrentChar < fText.end()); in consume() 27 fCurrentChar = fText.end(); in consume() 31 fCurrentChar = fText.begin() + fCurrentStyle->fRange.end; in consume() 37 fCurrentChar = fText.begin() + fCurrentStyle->fRange.end; in consume() 41 size_t endOfCurrentRun() const override { return fCurrentChar - fText.begin(); } in endOfCurrentRun() 42 bool atEnd() const override { return fCurrentChar >= fText.end(); } in atEnd() 46 SkSpan<const char> fText;
|
D | OneLineShaper.cpp | 43 if (fCurrentRun->textRange() == unresolved.fText) { in commitRunBuffer() 63 resolved.fText.start, resolved.fText.end); in printState() 72 resolved.fText.start, resolved.fText.end, in printState() 79 SkDebugf("[%zu:%zu)\n", unresolved.fText.start, unresolved.fText.end); in printState() 100 if (unresolved.fText == prevText) { in fillGaps() 102 unresolved.fText = EMPTY_TEXT; in fillGaps() 105 prevText = unresolved.fText; in fillGaps() 108 …ext(resolvedTextStart, fCurrentRun->leftToRight() ? unresolved.fText.start : unresolved.fText.end); in fillGaps() 119 if (unresolved.fText.end <= resolved.fText.start) { in fillGaps() 120 unresolved.fText.end = resolved.fText.end; in fillGaps() [all …]
|
D | ParagraphImpl.cpp | 73 , fText(text) in ParagraphImpl() 99 fText = fUnicode->convertUtf16ToUtf8(utf16text); in ParagraphImpl() 133 this->fCodeUnitProperties.push_back_n(fText.size() + 1, CodeUnitFlags::kNoCodeUnitFlag); in layout() 170 this->fClustersIndexFromCodeUnit.push_back_n(fText.size() + 1, EMPTY_INDEX); in layout() 264 if (!fUnicode->getBidiRegions(fText.c_str(), fText.size(), textDirection, &fBidiRegions)) { in computeCodeUnitProperties() 269 fUnicode->forEachCodepoint(fText.c_str(), fText.size(), in computeCodeUnitProperties() 285 if (!fUnicode->getLineBreaks(fText.c_str(), fText.size(), &lineBreaks)) { in computeCodeUnitProperties() 296 if (!fUnicode->getGraphemes(fText.c_str(), fText.size(), &graphemes)) { in computeCodeUnitProperties() 418 SkSpan<const char> text(fText.c_str() + charStart, charEnd - charStart); in buildClusterTable() 426 fClustersIndexFromCodeUnit[fText.size()] = fClusters.size(); in buildClusterTable() [all …]
|
D | ParagraphCache.cpp | 29 : fText(paragraph->fText.c_str(), paragraph->fText.size()) in ParagraphCacheKey() 34 SkString fText; member in skia::textlayout::ParagraphCacheKey 125 hash = mix(hash, SkGoodHash()(key.fText)); in operator ()() 130 if (a.fText.size() != b.fText.size()) { in operator ==() 136 if (a.fText != b.fText) { in operator ==() 309 auto& lastText = fLastCachedValue->fKey.fText; in isPossiblyTextEditing() 310 auto& text = paragraph->fText; in isPossiblyTextEditing()
|
/third_party/icu/icu4c/source/common/ |
D | rbbi.cpp | 193 utext_close(&fText); in ~RuleBasedBreakIterator() 229 utext_clone(&fText, &that.fText, FALSE, TRUE, &status); in operator =() 292 uprv_memcpy(&fText, &initializedUText, sizeof(UText)); in init() 298 utext_openUChars(&fText, NULL, 0, &status); in init() 350 if (!utext_equals(&fText, &that2.fText)) { in operator ==() 391 utext_clone(&fText, ut, FALSE, TRUE, &status); in setText() 412 UText *result = utext_clone(fillIn, &fText, FALSE, TRUE, &status); in getUText() 449 utext_openUChars(&fText, NULL, 0, &status); in adoptText() 451 utext_openCharacterIterator(&fText, newText, &status); in adoptText() 466 utext_openConstUnicodeString(&fText, &newText, &status); in setText() [all …]
|
D | filteredbrk.cpp | 164 LocalUTextPointer fText; member in SimpleFilteredSentenceBreakIterator 255 fText.adoptInstead(fDelegate->getUText(fText.orphan(), status)); in resetState() 263 utext_setNativeIndex(fText.getAlias(), n); // from n.. in breakExceptionAt() 269 …if((uch=utext_previous32(fText.getAlias()))==(UChar32)0x0020) { // TODO: skip a class of chars he… in breakExceptionAt() 274 uch = utext_next32(fText.getAlias()); in breakExceptionAt() 280 …while((uch=utext_previous32(fText.getAlias()))!=U_SENTINEL && // more to consume backwards and.. in breakExceptionAt() 283 bestPosn = utext_getNativeIndex(fText.getAlias()); in breakExceptionAt() 292 bestPosn = utext_getNativeIndex(fText.getAlias()); in breakExceptionAt() 313 utext_setNativeIndex(fText.getAlias(), bestPosn); // hope that's close .. in breakExceptionAt() 315 while((uch=utext_next32(fText.getAlias()))!=U_SENTINEL && in breakExceptionAt() [all …]
|
/third_party/flutter/skia/third_party/externals/icu/source/common/ |
D | rbbi.cpp | 197 utext_close(&fText); in ~RuleBasedBreakIterator() 233 utext_clone(&fText, &that.fText, FALSE, TRUE, &status); in operator =() 296 uprv_memcpy(&fText, &initializedUText, sizeof(UText)); in init() 302 utext_openUChars(&fText, NULL, 0, &status); in init() 354 if (!utext_equals(&fText, &that2.fText)) { in operator ==() 395 utext_clone(&fText, ut, FALSE, TRUE, &status); in setText() 416 UText *result = utext_clone(fillIn, &fText, FALSE, TRUE, &status); in getUText() 453 utext_openUChars(&fText, NULL, 0, &status); in adoptText() 455 utext_openCharacterIterator(&fText, newText, &status); in adoptText() 470 utext_openConstUnicodeString(&fText, &newText, &status); in setText() [all …]
|
D | filteredbrk.cpp | 164 LocalUTextPointer fText; member in SimpleFilteredSentenceBreakIterator 255 fText.adoptInstead(fDelegate->getUText(fText.orphan(), status)); in resetState() 263 utext_setNativeIndex(fText.getAlias(), n); // from n.. in breakExceptionAt() 269 …if((uch=utext_previous32(fText.getAlias()))==(UChar32)0x0020) { // TODO: skip a class of chars he… in breakExceptionAt() 274 uch = utext_next32(fText.getAlias()); in breakExceptionAt() 280 …while((uch=utext_previous32(fText.getAlias()))!=U_SENTINEL && // more to consume backwards and.. in breakExceptionAt() 283 bestPosn = utext_getNativeIndex(fText.getAlias()); in breakExceptionAt() 292 bestPosn = utext_getNativeIndex(fText.getAlias()); in breakExceptionAt() 313 utext_setNativeIndex(fText.getAlias(), bestPosn); // hope that's close .. in breakExceptionAt() 315 while((uch=utext_next32(fText.getAlias()))!=U_SENTINEL && in breakExceptionAt() [all …]
|
/third_party/node/deps/icu-small/source/common/ |
D | rbbi.cpp | 217 utext_close(&fText); in ~RuleBasedBreakIterator() 257 utext_clone(&fText, &that.fText, FALSE, TRUE, &status); in operator =() 329 uprv_memcpy(&fText, &initializedUText, sizeof(UText)); in init() 335 utext_openUChars(&fText, NULL, 0, &status); in init() 387 if (!utext_equals(&fText, &that2.fText)) { in operator ==() 428 utext_clone(&fText, ut, FALSE, TRUE, &status); in setText() 449 UText *result = utext_clone(fillIn, &fText, FALSE, TRUE, &status); in getUText() 486 utext_openUChars(&fText, NULL, 0, &status); in adoptText() 488 utext_openCharacterIterator(&fText, newText, &status); in adoptText() 503 utext_openConstUnicodeString(&fText, &newText, &status); in setText() [all …]
|
/third_party/skia/third_party/externals/icu/source/common/ |
D | rbbi.cpp | 217 utext_close(&fText); in ~RuleBasedBreakIterator() 257 utext_clone(&fText, &that.fText, FALSE, TRUE, &status); in operator =() 329 uprv_memcpy(&fText, &initializedUText, sizeof(UText)); in init() 335 utext_openUChars(&fText, NULL, 0, &status); in init() 387 if (!utext_equals(&fText, &that2.fText)) { in operator ==() 428 utext_clone(&fText, ut, FALSE, TRUE, &status); in setText() 449 UText *result = utext_clone(fillIn, &fText, FALSE, TRUE, &status); in getUText() 486 utext_openUChars(&fText, NULL, 0, &status); in adoptText() 488 utext_openCharacterIterator(&fText, newText, &status); in adoptText() 503 utext_openConstUnicodeString(&fText, &newText, &status); in setText() [all …]
|
/third_party/flutter/skia/bench/ |
D | CmapBench.cpp | 25 const SkUnichar* fText; member 37 r.fFont.textToGlyphs(r.fText, r.fCount*4, SkTextEncoding::kUTF32, glyphs, NGLYPHS); in textToGlyphs_proc() 47 face->unicharsToGlyphs(r.fText, r.fCount, glyphs); in charsToGlyphs_proc() 55 cache.addCharAndGlyph(r.fText[i], i); in addcache_proc() 63 r.fCache.findGlyphIndex(r.fText[i]); in findcache_proc() 71 SkUnichar fText[NGLYPHS]; member in CMAPBench 86 fText[i] = rand.nextU() & 0xFFFF; in CMAPBench() 87 fCache.addCharAndGlyph(fText[i], i); in CMAPBench() 102 fProc({fCache, loops, fFont, fText, fCount}); in onDraw()
|
/third_party/skia/bench/ |
D | CmapBench.cpp | 25 const SkUnichar* fText; member 37 r.fFont.textToGlyphs(r.fText, r.fCount*4, SkTextEncoding::kUTF32, glyphs, NGLYPHS); in textToGlyphs_proc() 47 face->unicharsToGlyphs(r.fText, r.fCount, glyphs); in charsToGlyphs_proc() 55 cache.addCharAndGlyph(r.fText[i], i); in addcache_proc() 63 r.fCache.findGlyphIndex(r.fText[i]); in findcache_proc() 71 SkUnichar fText[NGLYPHS]; member in CMAPBench 86 fText[i] = rand.nextU() & 0xFFFF; in CMAPBench() 87 fCache.addCharAndGlyph(fText[i], i); in CMAPBench() 102 fProc({fCache, loops, fFont, fText, fCount}); in onDraw()
|
/third_party/flutter/skia/experimental/editor/ |
D | editor.cpp | 94 approximatePosition = {xy.x() <= line.fOrigin.x() ? 0 : line.fText.size(), j}; in getPosition() 153 fLines[pos.fParagraphIndex].fText.insert(pos.fTextByteIndex, utf8Text, byteLen); in insert() 161 size_t newlinecount = count_char(fLines[pos.fParagraphIndex].fText, '\n'); in insert() 163 StringSlice src = std::move(fLines[pos.fParagraphIndex].fText); in insert() 168 (line++)->fText = remove_newline(str, l); in insert() 186 fLines[start.fParagraphIndex].fText.remove( in remove() 192 line.fText.remove(start.fTextByteIndex, in remove() 193 line.fText.size() - start.fTextByteIndex); in remove() 194 line.fText.insert(start.fTextByteIndex, in remove() 195 fLines[end.fParagraphIndex].fText.begin() + end.fTextByteIndex, in remove() [all …]
|
/third_party/skia/modules/skplaintexteditor/src/ |
D | editor.cpp | 94 approximatePosition = {xy.x() <= line.fOrigin.x() ? 0 : line.fText.size(), j}; in getPosition() 153 fLines[pos.fParagraphIndex].fText.insert(pos.fTextByteIndex, utf8Text, byteLen); in insert() 161 size_t newlinecount = count_char(fLines[pos.fParagraphIndex].fText, '\n'); in insert() 163 StringSlice src = std::move(fLines[pos.fParagraphIndex].fText); in insert() 168 (line++)->fText = remove_newline(str, l); in insert() 186 fLines[start.fParagraphIndex].fText.remove( in remove() 192 line.fText.remove(start.fTextByteIndex, in remove() 193 line.fText.size() - start.fTextByteIndex); in remove() 194 line.fText.insert(start.fTextByteIndex, in remove() 195 fLines[end.fParagraphIndex].fText.begin() + end.fTextByteIndex, in remove() [all …]
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/ |
D | RuleBasedBreakIterator.java | 133 if (fText != null) { in clone() 134 result.fText = (CharacterIterator)(fText.clone()); in clone() 167 if (fText == null && other.fText == null) { in equals() 170 if (fText == null || other.fText == null || !fText.equals(other.fText)) { in equals() 217 private CharacterIterator fText = new java.text.StringCharacterIterator(""); field in RuleBasedBreakIterator 351 if (fText == null) { in first() 354 fText.first(); in first() 355 int start = fText.getIndex(); in first() 371 if (fText == null) { in last() 374 int endPos = fText.getEndIndex(); in last() [all …]
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/rbbi/ |
D | RBBITestMonkey.java | 157 StringBuffer fText; field in RBBITestMonkey.RBBICharMonkey 160 fText = null; in RBBICharMonkey() 210 fText = s; in setText() 231 if (prevPos >= fText.length()) { in next() 235 c3 = UTF16.charAt(fText, prevPos); in next() 246 p3 = moveIndex32(fText, p3, 1); in next() 247 c3 = (p3>=fText.length())? -1: UTF16.charAt(fText, p3); in next() 253 if (p2 == fText.length()) { in next() 324 while (pi > 0 && fExtCccZwjSet.contains(fText.codePointAt(pi))) { in next() 325 if (fViramaSet.contains(fText.codePointAt(pi))) { in next() [all …]
|
/third_party/skia/gm/ |
D | scaledemoji.cpp | 46 const char* fText; member 51 fEmojiFont.fText = ToolUtils::emoji_sample_text(); in onOnceBeforeDraw() 68 const char* text = fEmojiFont.fText; in onDraw() 95 const char* fText; member 100 fEmojiFont.fText = ToolUtils::emoji_sample_text(); in onOnceBeforeDraw() 116 const char* text = fEmojiFont.fText; in onDraw() 153 const char* fText; member 158 fEmojiFont.fText = ToolUtils::emoji_sample_text(); in onOnceBeforeDraw()
|
/third_party/flutter/skia/src/sksl/ir/ |
D | SkSLSection.h | 23 , fText(std::move(text)) {} in Section() 26 return std::unique_ptr<ProgramElement>(new Section(fOffset, fName, fArgument, fText)); in clone() 34 result += " { " + fText + " }"; in description() 40 const String fText; member
|
/third_party/flutter/skia/gm/ |
D | scaledemoji.cpp | 46 const char* fText; member 51 fEmojiFont.fText = ToolUtils::emoji_sample_text(); in onOnceBeforeDraw() 68 const char* text = fEmojiFont.fText; in onDraw() 96 const char* fText; member 101 fEmojiFont.fText = ToolUtils::emoji_sample_text(); in onOnceBeforeDraw() 117 const char* text = fEmojiFont.fText; in onDraw()
|