Home
last modified time | relevance | path

Searched refs:spanTextLength (Results 1 – 6 of 6) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/
H A Dmultiple_paragraph_layout_algorithm.cpp469 int32_t spanTextLength = 0; in UpdateParagraphBySpan() local
495 auto paraStart = spanTextLength; in UpdateParagraphBySpan()
554 .end = spanTextLength }); in UpdateParagraphBySpan()
566 spanTextLength += SYMBOL_SPAN_LENGTH; in AddSymbolSpanToParagraph()
568 child->position = spanTextLength; in AddSymbolSpanToParagraph()
577 child->position = spanTextLength; in AddTextSpanToParagraph()
618 spanTextLength += 1; in AddImageToParagraph()
619 imageSpanItem->position = spanTextLength; in AddImageToParagraph()
645 spanTextLength += 1; in AddPlaceHolderToParagraph()
685 spanTextLength += 1; in UpdateParagraphByCustomSpan()
[all …]
H A Dmultiple_paragraph_layout_algorithm.h128 …st LayoutConstraintF& layoutConstrain, const RefPtr<Paragraph>& paragraph, int32_t& spanTextLength,
132 const RefPtr<Paragraph>& paragraph, int32_t& spanTextLength);
134 …const RefPtr<Paragraph>& paragraph, int32_t& spanTextLength, CustomSpanPlaceholderInfo& customSpan…
136 void AddSymbolSpanToParagraph(const RefPtr<SpanItem>& child, int32_t& spanTextLength,
138 void AddTextSpanToParagraph(const RefPtr<SpanItem>& child, int32_t& spanTextLength,
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/rich_editor/
H A Drich_editor_common_test_ng.cpp63 int32_t spanTextLength = 0; in AddImageSpan() local
65 spanTextLength += StringUtils::ToWstring(span->content).length(); in AddImageSpan()
66 span->position = spanTextLength; in AddImageSpan()
H A Drich_editor_test_ng.cpp294 int32_t spanTextLength = 0; in AddSpan() local
296 spanTextLength += StringUtils::ToWstring(span->content).length(); in AddSpan()
297 span->position = spanTextLength; in AddSpan()
318 int32_t spanTextLength = 0; in AddImageSpan() local
320 spanTextLength += StringUtils::ToWstring(span->content).length(); in AddImageSpan()
321 span->position = spanTextLength; in AddImageSpan()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/rich_editor/
H A Drich_editor_pattern.h329 uint32_t spanTextLength = 0; in UpdateSpanPosition() local
331 span->rangeStart = static_cast<int32_t>(spanTextLength); in UpdateSpanPosition()
332 spanTextLength += StringUtils::ToWstring(span->content).length(); in UpdateSpanPosition()
333 span->position = static_cast<int32_t>(spanTextLength); in UpdateSpanPosition()
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/text/
H A Dtext_testfive_ng.cpp1598 int32_t spanTextLength; variable
1602 … customSpanItem, AceType::RawPtr(layoutWrapper), paragraph, spanTextLength, customSpanPlaceholder);
1617 … customSpanItem, AceType::RawPtr(layoutWrapper), paragraph, spanTextLength, customSpanPlaceholder);