/ohos5.0/base/global/resource_management/frameworks/resmgr/src/utils/ |
H A D | string_utils.cpp | 153 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 D | multiple_paragraph_layout_algorithm.cpp | 120 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 D | multiple_paragraph_layout_algorithm.h | 141 void GetChildrenPlaceholderIndex(std::vector<int32_t>& placeholderIndex);
|
H A D | text_pattern.h | 382 void InitSpanImageLayout(const std::vector<int32_t>& placeholderIndex, in InitSpanImageLayout() argument 385 placeholderIndex_ = placeholderIndex; in InitSpanImageLayout()
|
H A D | span_node.h | 212 int32_t placeholderIndex = -1; member
|
H A D | text_pattern.cpp | 551 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 D | rich_editor_drag_pattern.cpp | 80 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 D | text_drag_base.h | 75 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 D | rich_editor_common_test_ng.cpp | 59 spanItem->placeholderIndex = 0; in AddImageSpan()
|
H A D | rich_editor_pattern_testthree_ng.cpp | 300 spanItem->placeholderIndex = currentPosition;
|
H A D | rich_editor_test_ng.cpp | 314 spanItem->placeholderIndex = 0; in AddImageSpan()
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/text/ |
H A D | text_testfive_ng.cpp | 2391 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 D | text_test_ng.cpp | 3610 spanItem->placeholderIndex = 0;
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/ |
H A D | txt_paragraph.cpp | 462 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 D | rich_editor_pattern.cpp | 4672 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 …]
|