Lines Matching defs:std
45 auto val = std::fabs(a);
58 auto begin = std::max(a.start, b.start);
59 auto end = std::min(a.end, b.end);
68 return TextRange(std::min(a.start, b.start), std::max(a.end, b.end));
71 std::vector<SkUnichar> ParagraphImpl::convertUtf8ToUnicode(const SkString& utf8)
74 std::vector<SkUnichar> result;
93 : fFontCollection(std::move(fonts))
94 , fParagraphStyle(std::move(style))
116 std::shared_ptr<SkUnicode> unicode)
117 : Paragraph(std::move(style), std::move(fonts))
118 , fTextStyles(std::move(blocks))
119 , fPlaceholders(std::move(placeholders))
127 , fUnicode(std::move(unicode))
135 ParagraphImpl::ParagraphImpl(const std::u16string& utf16text,
140 std::shared_ptr<SkUnicode> unicode)
142 std::move(style),
143 std::move(blocks),
144 std::move(placeholders),
145 std::move(fonts),
146 std::move(unicode))
164 std::vector<SkFontMetrics>& fontMetrics) {
167 std::vector<RSFontMetrics>& fontMetrics) {
207 std::unordered_set<SkUnichar> ParagraphImpl::unresolvedCodepoints() {
363 std::unique_ptr<Run> ellipsisRun;
372 void ParagraphImpl::scanRTLTextCutPoint(const std::vector<TextCutRecord>& rawTextSize, size_t& start, size_t& end)
402 void ParagraphImpl::scanLTRTextCutPoint(const std::vector<TextCutRecord>& rawTextSize, size_t& start, size_t& end)
437 void ParagraphImpl::scanTextCutPoint(const std::vector<TextCutRecord>& rawTextSize, size_t& start, size_t& end)
477 std::shared_ptr<ParagraphImpl> tmpParagraph = std::make_shared<ParagraphImpl>(fText, fParagraphStyle, fTextStyles,
650 fLineNumber = std::max(size_t(1), fLines.size());
800 static std::vector<SkRange<SkUnichar>> CJK_UNICODE_SET = {
821 static std::vector<SkRange<SkUnichar>> WESTERN_UNICODE_SET = {
830 std::unordered_set<SkUnichar> set_;
831 explicit UnicodeSet(const std::vector<SkRange<SkUnichar>>& unicodeSet) {
1116 void ParagraphImpl::setIndents(const std::vector<SkScalar>& indents)
1184 auto longestLine = std::max(run.advance().fX, advance.fX) + spacing;
1224 auto longestLine = std::max(line.width(), line.widthWithEllipsisSpaces()) + spacing;
1225 fLongestLine = std::max(fLongestLine, longestLine);
1226 fLongestLineWithIndent = std::max(fLongestLineWithIndent, longestLine + indent);
1320 fLongestLine = std::max(fLongestLine, nearlyZero(advance.fX) ? widthWithSpaces : advance.fX);
1364 auto typefaces = fFontCollection->findTypefaces(strutStyle.getFontFamilies(), strutStyle.getFontStyle(), std::nullopt);
1500 std::vector<TextBox> ParagraphImpl::getRectsForRange(unsigned start,
1504 std::vector<TextBox> results;
1573 std::vector<TextBox> ParagraphImpl::getRectsForPlaceholders() {
1574 std::vector<TextBox> boxes;
1657 void ParagraphImpl::getLineMetrics(std::vector<LineMetrics>& metrics) {
1830 fState = std::min(fState, kIndexed);
1871 SkPaint* paint = std::get_if<SkPaint>(&paintOrID);
1876 auto paintID = std::get_if<ParagraphPainter::PaintID>(&paintOrID);
1885 std::vector<ParagraphPainter::PaintID> ParagraphImpl::updateColor(size_t from, size_t to, SkColor color) {
1886 std::vector<ParagraphPainter::PaintID> unresolvedPaintID;
2060 std::vector<TextBox> boxes;
2112 std::vector<Paragraph::FontInfo> ParagraphImpl::getFonts() const {
2113 std::vector<FontInfo> results;
2154 fGlyphsBoundsTop = std::min(fGlyphsBoundsTop, bounds.top());
2155 fGlyphsBoundsBottom = std::max(fGlyphsBoundsBottom, bounds.bottom());
2195 fGlyphsBoundsTop = std::min(fGlyphsBoundsTop, bounds.GetTop());
2196 fGlyphsBoundsBottom = std::max(fGlyphsBoundsBottom, bounds.GetBottom());
2203 std::vector<std::unique_ptr<TextLineBase>> ParagraphImpl::GetTextLines() {
2204 std::vector<std::unique_ptr<TextLineBase>> textLineBases;
2207 std::unique_ptr<TextLineBaseImpl> textLineBaseImplPtr =
2208 std::make_unique<TextLineBaseImpl>(std::make_unique<TextLine>(std::move(line)));
2210 std::unique_ptr<TextLineBaseImpl> textLineBaseImplPtr = std::make_unique<TextLineBaseImpl>(&line);
2212 textLineBases.emplace_back(std::move(textLineBaseImplPtr));
2222 return std::numeric_limits<size_t>::max();
2224 auto it = std::lower_bound(fUnicodeIndexForUTF8Index.begin(), fUnicodeIndexForUTF8Index.end(), index);
2226 return std::distance(fUnicodeIndexForUTF8Index.begin(), it);
2228 return std::numeric_limits<size_t>::max();
2251 std::unique_ptr<Paragraph> ParagraphImpl::createCroppedCopy(size_t startIndex, size_t count) {
2252 std::unique_ptr<ParagraphImpl> paragraph = std::make_unique<ParagraphImpl>();
2257 if (validStart == std::numeric_limits<size_t>::max()) {
2261 // startIndex=2, count=std:: numeric_imits<size_t>:: max(), the resulting string str2 is "3456789".
2268 if (count != std::numeric_limits<size_t>::max()) {
2270 if (invalidStart == std::numeric_limits<size_t>::max()) {
2287 std::unique_ptr<Paragraph> ParagraphImpl::CloneSelf()
2289 std::unique_ptr<ParagraphImpl> paragraph = std::make_unique<ParagraphImpl>();