Home
last modified time | relevance | path

Searched refs:placeholderIndex (Results 1 – 15 of 15) sorted by relevance

/ohos5.0/base/global/resource_management/frameworks/resmgr/src/utils/
H A Dstring_utils.cpp153 std::string placeholderIndex = matches[MATCHE_INDEX_PLACEHOLDER_INDEX]; in parseArgs() local
156 if (placeholderIndex.length() != 0) { in parseArgs()
157 if (placeholderIndex.size() > SIZE_T_MAX_STR.size() || in parseArgs()
158 … (placeholderIndex.size() == SIZE_T_MAX_STR.size() && placeholderIndex > SIZE_T_MAX_STR)) { in parseArgs()
165 placeholderIndex.c_str()); in parseArgs()
281 if (placeholderIndex.length() != 0) { in MatchPlaceholderIndex()
282 if (placeholderIndex.size() > SIZE_T_MAX_STR.size() || in MatchPlaceholderIndex()
283 … (placeholderIndex.size() == SIZE_T_MAX_STR.size() && placeholderIndex > SIZE_T_MAX_STR)) { in MatchPlaceholderIndex()
288 if (!Utils::convertToUnsignedLong(placeholderIndex, index) || index < 1) { in MatchPlaceholderIndex()
334 std::string placeholderIndex = matches[MATCHE_INDEX_PLACEHOLDER_INDEX]; in ReplacePlaceholderWithParams() local
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/
H A Dmultiple_paragraph_layout_algorithm.cpp120 std::vector<int32_t> placeholderIndex; in Layout() local
121 GetChildrenPlaceholderIndex(placeholderIndex); in Layout()
123 if (spans_.empty() || placeholderIndex.empty()) { in Layout()
135 if (index >= placeholderIndex.size() || index < 0) { in Layout()
139 auto indexTemp = placeholderIndex.at(index); in Layout()
170 placeholderIndex.emplace_back(child->placeholderIndex); in GetChildrenPlaceholderIndex()
607 imageSpanItem->placeholderIndex = in AddImageToParagraph()
612 imageSpanItem->placeholderIndex = in AddImageToParagraph()
616 imageSpanItem->placeholderIndex += preParagraphsPlaceholderCount_; in AddImageToParagraph()
640 placeholderSpanItem->placeholderIndex = in AddPlaceHolderToParagraph()
[all …]
H A Dmultiple_paragraph_layout_algorithm.h141 void GetChildrenPlaceholderIndex(std::vector<int32_t>& placeholderIndex);
H A Dtext_pattern.h382 void InitSpanImageLayout(const std::vector<int32_t>& placeholderIndex, in InitSpanImageLayout() argument
385 placeholderIndex_ = placeholderIndex; in InitSpanImageLayout()
H A Dspan_node.h212 int32_t placeholderIndex = -1; member
H A Dtext_pattern.cpp551 if (span->position - 1 >= start && span->placeholderIndex == -1 && span->position != -1) { in GetSelectedText()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/rich_editor_drag/
H A Drich_editor_drag_pattern.cpp80 auto placeholderIndex = textPattern->GetPlaceHolderIndex(); in CreateDragNode() local
88 auto imageIndex = placeholderIndex[index]; in CreateDragNode()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_drag/
H A Dtext_drag_base.h75 virtual void InitSpanImageLayout(const std::vector<int32_t>& placeholderIndex, in InitSpanImageLayout() argument
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/rich_editor/
H A Drich_editor_common_test_ng.cpp59 spanItem->placeholderIndex = 0; in AddImageSpan()
H A Drich_editor_pattern_testthree_ng.cpp300 spanItem->placeholderIndex = currentPosition;
H A Drich_editor_test_ng.cpp314 spanItem->placeholderIndex = 0; in AddImageSpan()
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/text/
H A Dtext_testfive_ng.cpp2391 std::vector<int32_t> placeholderIndex = { 0 }; variable
2393 pattern->InitSpanImageLayout(placeholderIndex, rectsForPlaceholders, OffsetF(0, 0));
2448 std::vector<int32_t> placeholderIndex = { -1 }; variable
2450 pattern->InitSpanImageLayout(placeholderIndex, rectsForPlaceholders, OffsetF(0, 0));
2457 placeholderIndex[0] = 1;
2458 pattern->InitSpanImageLayout(placeholderIndex, rectsForPlaceholders, OffsetF(0, 0));
2505 std::vector<int32_t> placeholderIndex = { 0 }; variable
2508 pattern->InitSpanImageLayout(placeholderIndex, rectsForPlaceholders, contentOffset);
H A Dtext_test_ng.cpp3610 spanItem->placeholderIndex = 0;
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/
H A Dtxt_paragraph.cpp462 for (auto placeholderIndex : placeholderPosition_) { in CalCulateAndCheckPreIsPlaceholder() local
463 if (placeholderIndex == static_cast<size_t>(index)) { in CalCulateAndCheckPreIsPlaceholder()
465 } else if (placeholderIndex < static_cast<size_t>(index)) { in CalCulateAndCheckPreIsPlaceholder()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/rich_editor/
H A Drich_editor_pattern.cpp4672 if ((*it)->placeholderIndex < 0) { in UnableStandardInput()
5911 if (*iterContent != L' ' || span->placeholderIndex >= 0) { in OnBackPressed()
5916 (*iterContent == L' ' && span->placeholderIndex < 0))) { in OnBackPressed()
5925 if (*iterContent == L' ' && span->placeholderIndex >= 0) { in OnBackPressed()
5950 if (*iterContent == L' ' && span->placeholderIndex < 0) { in OnBackPressed()
5961 if (*iterContent != L' ' || span->placeholderIndex >= 0) { in OnBackPressed()
5966 (*iterContent == L' ' && span->placeholderIndex < 0))) { in OnBackPressed()
6242 if ((*it)->placeholderIndex >= 0 || (*it)->unicode != 0) { in OnBackPressed()
8465 std::vector<int32_t> placeholderIndex; in OnBackPressed() local
8471 placeholderIndex.emplace_back(child->placeholderIndex); in OnBackPressed()
[all …]