/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_field/ |
H A D | content_controller.cpp | 85 FormatIndex(startIndex, endIndex); in ReplaceSelectedValue() 103 FormatIndex(startIndex, endIndex); in GetSelectedValue() 105 return StringUtils::ToString(wideText.substr(startIndex, endIndex - startIndex)); in GetSelectedValue() 110 startIndex = std::min(startIndex, endIndex); in FormatIndex() 111 endIndex = std::max(startIndex, endIndex); in FormatIndex() 113 startIndex = std::clamp(startIndex, 0, static_cast<int32_t>(wideText.length())); in FormatIndex() 349 if (startIndex < 0 || startIndex >= static_cast<int32_t>(GetWideText().length())) { in erase() 386 FormatIndex(startIndex, endIndex); in IsIndexBeforeOrInEmoji() 387 index = index - startIndex; in IsIndexBeforeOrInEmoji() 405 FormatIndex(startIndex, endIndex); in GetSelectedLimitValue() [all …]
|
H A D | content_controller.h | 36 bool ReplaceSelectedValue(int32_t startIndex, int32_t endIndex, const std::string& value); 37 std::string GetSelectedValue(int32_t startIndex, int32_t endIndex); 40 void erase(int32_t startIndex, int32_t length); 41 int32_t Delete(int32_t startIndex, int32_t length, bool isBackward); 42 int32_t GetDeleteLength(int32_t startIndex, int32_t length, bool isBackward); 46 std::string GetSelectedLimitValue(int32_t& index, int32_t& startIndex); 92 void FormatIndex(int32_t& startIndex, int32_t& endIndex); 94 std::string PreprocessString(int32_t startIndex, int32_t endIndex, const std::string& value);
|
/ohos5.0/foundation/arkui/ui_lite/frameworks/common/ |
H A D | spannable_string.cpp | 39 SetSpannable(true, startIndex, endIndex); in SetTextStyle() 192 inputSpan.start = startIndex; in SetFontSize() 251 inputSpan.start = startIndex; in SetFontId() 269 tempLeft.end = startIndex; in SetFontId() 280 inputSpan.start = startIndex; in SetFontId() 309 inputSpan.start = startIndex; in SetFontHeight() 328 tempLeft.end = startIndex; in SetFontHeight() 339 inputSpan.start = startIndex; in SetFontHeight() 378 inputSpan.start = startIndex; in SetBackgroundColor() 441 inputSpan.start = startIndex; in SetForegroundColor() [all …]
|
/ohos5.0/foundation/arkui/ui_lite/interfaces/kits/common/ |
H A D | spannable_string.h | 120 bool EqualInsert(uint16_t& startIndex, in EqualInsert() argument 127 if ((startIndex == tempStart) && endIndex == tempEnd) { in EqualInsert() 131 if (startIndex <= tempStart) { in EqualInsert() 147 if (startIndex > tempEnd) { in EqualInsert() 152 startIndex = tempStart; in EqualInsert() 161 bool UnequalInsert(uint16_t& startIndex, in UnequalInsert() argument 174 if (startIndex > tempEnd) { in UnequalInsert() 176 } else if (startIndex > tempStart && endIndex >= tempEnd) { in UnequalInsert() 178 (*tempSpan)->data_.end = startIndex; in UnequalInsert() 182 } else if (startIndex <= tempStart && endIndex < tempEnd) { in UnequalInsert() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/text/ |
H A D | text_emoji_processor.cpp | 60 remainString = u16.substr(startIndex, u16.length() - startIndex); in Delete() 74 if (startIndex == 0) { in Delete() 78 std::u16string temp = u16.substr(startIndex, u16.length() - startIndex); in Delete() 107 startIndex = index; in IsIndexInEmoji() 139 startIndex = index; in GetIndexRelationToEmoji() 163 startIndex = index; in GetIndexRelationToEmoji() 219 startIndex = index; in IsIndexBeforeOrInEmoji() 236 startIndex = index; in IsIndexAfterOrInEmoji() 311 if (startIndex <= 0 || startIndex > static_cast<int32_t>(u16Content.length())) { in GetEmojiLengthBackward() 319 ++startIndex; in GetEmojiLengthBackward() [all …]
|
H A D | text_emoji_processor.h | 25 int startIndex; member 45 … static int32_t Delete(int32_t startIndex, int32_t length, std::string& content, bool isBackward); 53 …static bool IsIndexInEmoji(int32_t index, const std::string& content, int32_t& startIndex, int32_t… 55 const std::string& content, int32_t& startIndex, int32_t& endIndex); 59 int32_t& startIndex, int32_t& endIndex); 61 int32_t& startIndex, int32_t& endIndex); 84 int32_t& startIndex, const std::u16string& u16Content); 86 int32_t& startIndex, const std::u16string& u16Content); 88 int32_t& startIndex, const std::u16string& u16Content);
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/src/datastore/ |
H A D | render_data_store_default_acceleration_structure_staging.cpp | 68 const uint32_t startIndex = static_cast<uint32_t>(geoms.size()); in BuildAccelerationStructure() local 70 geoms.reserve(startIndex + count); in BuildAccelerationStructure() 77 startIndex, in BuildAccelerationStructure() 93 const uint32_t startIndex = static_cast<uint32_t>(geoms.size()); in BuildAccelerationStructure() local 95 geoms.reserve(startIndex + count); in BuildAccelerationStructure() 102 startIndex, in BuildAccelerationStructure() 120 geoms.reserve(startIndex + count); in BuildAccelerationStructure() 127 startIndex, in BuildAccelerationStructure() 143 const uint32_t startIndex = static_cast<uint32_t>(ins.size()); in CopyAccelerationStructureInstanceData() local 145 ins.reserve(startIndex + count); in CopyAccelerationStructureInstanceData() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/list/ |
H A D | list_item_group_pattern.cpp | 497 backwardCachedIndex = startIndex; in UpdateCachedIndexBackward() 510 int32_t startIndex = itemPosition_.begin()->first; in UpdateCachedIndexOmni() local 530 backwardRes = startIndex; in UpdateCachedIndexOmni() 573 int32_t startIndex = itemPosition_.begin()->first; in UpdateCachedIndex() local 689 if (count == 0 || (count > 0 && index > startIndex) || in CheckDataChangeOutOfStart() 690 (count < 0 && index >= startIndex)) { in CheckDataChangeOutOfStart() 715 int32_t startIndex = itemPosition_.begin()->first; in NotifyDataChange() local 716 if (!CheckDataChangeOutOfStart(index, count, startIndex)) { in NotifyDataChange() 720 count = std::max(count, index - startIndex); in NotifyDataChange() 735 info.startIndex = std::max(info.startIndex + count, 0); in NotifyDataChange() [all …]
|
H A D | list_item_group_layout_algorithm.cpp | 449 int32_t startIndex = 0; in MeasureListItem() local 476 startIndex = jumpIndex; in MeasureListItem() 480 startIndex = jumpIndex; in MeasureListItem() 492 startIndex = GetStartIndex(); in MeasureListItem() 515 startIndex = GetLanesFloor(startIndex); in MeasureListItem() 518 startIndex = GetLanesFloor(startIndex); in MeasureListItem() 524 startIndex = GetLanesFloor(startIndex); in MeasureListItem() 527 startIndex = GetLanesFloor(startIndex); in MeasureListItem() 837 startIndex += jumpCount; in CheckJumpForwardForBigOffset() 884 currentIndex = startIndex; in MeasureForward() [all …]
|
H A D | list_layout_algorithm.cpp | 299 if (startIndex == 0) { in GetStartPositionWithChainOffset() 333 startIndex = GetLanesFloor(layoutWrapper, startIndex); in HandleJumpAuto() 526 startIndex, endIndex); in CheckNoNeedJumpListItemGroup() 576 if (judgeIndex < startIndex) { in JudgeOutOfScreenScrollAutoType() 737 int32_t startIndex = 0; in MeasureList() local 802 startIndex = res.first; in MeasureList() 855 startIndex = midIndex; in MeasureList() 861 startIndex = GetLanesFloor(layoutWrapper, startIndex); in MeasureList() 1392 startIndex = index + 1; in LayoutItem() 1835 auto startIndex = index; in LayoutCachedALine() local [all …]
|
H A D | list_lanes_layout_algorithm.cpp | 379 for (int32_t idx = index; idx > startIndex; idx--) { in FindLanesStartIndex() 386 if (startIndex == 0) { in FindLanesStartIndex() 422 int32_t startIndex = FindLanesStartIndex(layoutWrapper, index); in GetLanesFloor() local 423 return index - (index - startIndex) % lanes_; in GetLanesFloor() 434 int32_t startIndex = GetLanesFloor(layoutWrapper, index); in GetLanesCeil() local 435 while (startIndex == GetLanesFloor(layoutWrapper, index + 1)) { in GetLanesCeil() 447 LayoutItem(wrapper, pos.first, pos.second, startIndex, crossSize); in LayoutCachedALine() 491 auto startIndex = index; in LayoutCachedALineForward() local 540 auto startIndex = index - cnt + 1; in LayoutCachedALineBackward() local 617 auto startIndex = curIndex; in LayoutCachedForward() local [all …]
|
H A D | list_position_map.h | 116 int32_t startIndex, float startPos, bool groupAtStart) in UpdatePosMapStart() argument 119 auto it = posMap_.find(startIndex); in UpdatePosMapStart() 127 if (prevIndex + 1 >= startIndex && groupAtStart) { in UpdatePosMapStart() 407 float GetGroupLayoutOffset(int32_t startIndex, float startPos) in GetGroupLayoutOffset() argument 409 return posMap_[startIndex].mainPos - startPos; in GetGroupLayoutOffset() 475 int32_t startIndex = input; in GetRowStartIndex() local 476 …while (startIndex > 0 && NearEqual(posMap_[startIndex].mainPos, posMap_[startIndex - 1].mainPos)) { in GetRowStartIndex() 477 startIndex--; in GetRowStartIndex() 479 return startIndex; in GetRowStartIndex()
|
H A D | list_layout_algorithm.h | 329 void LayoutForward(LayoutWrapper* layoutWrapper, int32_t startIndex, float startPos); 336 void HandleJumpAuto(LayoutWrapper* layoutWrapper, int32_t startIndex, int32_t endIndex); 345 int32_t startIndex, int32_t endIndex, int32_t jumpIndex, float jumpIndexStartPos); 348 int32_t startIndex, int32_t endIndex, int32_t jumpIndex); 350 …bool CheckNoNeedJumpListItemGroup(LayoutWrapper* layoutWrapper, int32_t startIndex, int32_t endInd… 392 int32_t startIndex, int32_t endIndex); 457 int32_t& startIndex, float crossSize); 478 LayoutDirection LayoutDirectionForTargetIndex(LayoutWrapper* layoutWrapper, int startIndex); 481 void CheckAndMeasureStartItem(LayoutWrapper* layoutWrapper, int32_t startIndex, 485 const LayoutConstraintF& layoutConstraint, int32_t startIndex, float startPos, Axis axis); [all …]
|
/ohos5.0/foundation/multimedia/media_foundation/engine/pipeline/filters/demux/ |
H A D | data_packer.cpp | 157 int32_t startIndex = 0; // The index of buffer that we first use in PeekRangeInternal() local 165 auto curOffsetEnd = mediaOffset_ + GetBufferSize(que_[startIndex]); in PeekRangeInternal() 170 copySize = CopyFirstBuffer(size, startIndex, dstPtr, bufferPtr, bufferOffset); in PeekRangeInternal() 184 copySize = CopyFirstBuffer(size, startIndex, dstPtr, bufferPtr, bufferOffset); in PeekRangeInternal() 196 EXEC_WHEN_GET(isGet, currentGet_ = Position(startIndex, firstBufferOffset, offset)); in PeekRangeInternal() 415 startIndex = 0; in FindFirstBufferToCopy() 421 prevOffset += GetBufferSize(que_[startIndex]); in FindFirstBufferToCopy() 422 startIndex++; in FindFirstBufferToCopy() 423 } while (static_cast<size_t>(startIndex) < que_.size()); in FindFirstBufferToCopy() 455 prevOffset = prevOffset + GetBufferSize(que_[startIndex]); in CopyFromSuccessiveBuffer() [all …]
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/src/node/ |
H A D | render_node_default_acceleration_structure_staging.cpp | 74 const uint32_t startIndex = geomRef.startIndex; in ExecuteFrame() local 82 (startIndex + count <= static_cast<uint32_t>(triangles.size()))) { in ExecuteFrame() 83 const auto& triRef = triangles[startIndex]; in ExecuteFrame() 90 (startIndex + count <= static_cast<uint32_t>(aabbs.size()))) { in ExecuteFrame() 91 const auto& aabbRef = aabbs[startIndex]; in ExecuteFrame() 96 (startIndex + count <= static_cast<uint32_t>(instances.size()))) { in ExecuteFrame() 97 const auto& instanceRef = instances[startIndex]; in ExecuteFrame() 127 … const auto& instanceRef = stagingInstanceData.instances[dataRef.startIndex + idx]; in ExecuteFrameProcessInstanceData()
|
/ohos5.0/base/global/i18n/frameworks/intl/src/ |
H A D | relative_time_format.cpp | 155 std::vector<std::vector<std::string>> &timeVector, size_t &startIndex, const std::string &unit, in ProcessIntegerField() argument 159 if (iter->first > startIndex) { in ProcessIntegerField() 160 InsertInfo(timeVector, unit, true, result.substr(startIndex, iter->first - startIndex)); in ProcessIntegerField() 162 startIndex = iter->second; in ProcessIntegerField() 188 size_t startIndex = (size_t)constrainedPos.getStart(); in FormatToParts() local 191 indexMap.insert(std::make_pair(startIndex, (size_t)constrainedPos.getLimit())); in FormatToParts() 194 if (startIndex > prevIndex) { in FormatToParts() 195 … InsertInfo(timeVector, unit, false, result.substr(prevIndex, startIndex - prevIndex)); in FormatToParts() 198 ProcessIntegerField(indexMap, timeVector, startIndex, unit, result); in FormatToParts() 200 InsertInfo(timeVector, unit, true, result.substr(startIndex, in FormatToParts() [all …]
|
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/components/ |
H A D | list_adapter.cpp | 100 int16_t startIndex = 0; in GenerateListItems() local 110 listItems_[listItemsIndex].startIndex = startIndex; in GenerateListItems() 136 startIndex = startIndex + listItems_[listItemsIndex].itemsCount; in GenerateListItems() 178 if (itemIndex >= listItems_[listItemsIndex].startIndex && in CalculateItemIndex() 179 …itemIndex <= (listItems_[listItemsIndex].startIndex + listItems_[listItemsIndex].itemsCount - 1) && in CalculateItemIndex() 241 int16_t startIndex = listItems_[listItemsIndex].startIndex; in GetElement() local 246 JSValue item = jerry_get_property_by_index(getterRetList, index - startIndex); in GetElement() 251 JSValue itemIdx = jerry_create_number(index - startIndex); in GetElement()
|
/ohos5.0/base/update/update_app/common/src/main/ets/util/ |
H A D | LogUtils.ts | 94 let startIndex: number = tempResult.indexOf(replaceStr); 95 while (startIndex >= 0) { 96 result += tempResult.substring(0, startIndex) + replaceStr + '****'; 97 tempResult = tempResult.substring(startIndex + replaceStr.length); 100 startIndex = tempResult.indexOf(replaceStr);
|
/ohos5.0/base/update/updateservice/frameworks/js/napi/session/include/ |
H A D | base_async_session.h | 40 napi_value StartWork(napi_env env, size_t startIndex, const napi_value *args) override in StartWork() argument 44 startIndex, totalArgc_, callbackNumber_); in StartWork() 45 …PARAM_CHECK_NAPI_CALL(env, args != nullptr && totalArgc_ >= startIndex, return nullptr, "Invalid p… in StartWork() 50 for (size_t i = 0; (i < (totalArgc_ - startIndex)) && (i < callbackNumber_); i++) { in StartWork() 51 ENGINE_LOGI("CreateReference index:%u", static_cast<unsigned int>(i + startIndex)); in StartWork() 52 ClientStatus ret = NapiCommonUtils::IsTypeOf(env, args[i + startIndex], napi_function); in StartWork() 58 ret = NapiCommonUtils::CreateReference(env, args[i + startIndex], 1, callbackRef_[i]); in StartWork()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_v2/common/ |
H A D | element_proxy.cpp | 81 startIndex_ = startIndex; in Update() 110 startIndex_ = startIndex; in UpdateForPartialUpdate() 182 startIndex_ = startIndex; in UpdateIndex() 353 startIndex_ = startIndex; in UpdateIndex() 419 startIndex_ = startIndex; in Update() 510 startIndex_ = startIndex; in Update() 604 startIndex_ = startIndex; in Update() 626 startIndex_ = startIndex; in UpdateIndex() 1010 startIndex_ = startIndex; in UpdateIndex() 1104 startIndex_ = startIndex; in Update() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/ark_prefetcher/src/prefetcher/ |
H A D | DataSourceObserver.ts | 22 startIndex: number; 28 startIndex: number; 75 startIndex: index, 103 startIndex: index, 135 startIndex: operation.index,
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper/ |
H A D | swiper_layout_algorithm.cpp | 247 startIndex = startIndex < realTotalCount_ ? startIndex : 0; in Measure() 250 … layoutWrapper->SetActiveChildRange(startIndex, endIndex, std::min(cachedCount_, startIndex), in Measure() 260 startIndex++; in Measure() 430 startIndexInVisibleWindow = startIndex; in AdjustStartInfoOnSwipeByGroup() 440 int32_t startIndex = 0; in MeasureSwiper() local 465 startIndex = GetStartIndex(); in MeasureSwiper() 715 auto currentIndex = startIndex - 1; in LayoutForward() 1441 if (startIndex <= endIndex) { in CheckCachedItem() 1456 startIndex = GetLoopIndex(startIndex - 1); in CheckCachedItem() 1459 startIndex = startIndex >= 0 ? startIndex - 1 : startIndex; in CheckCachedItem() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/tabs/ |
H A D | tab_bar_layout_algorithm.cpp | 407 auto startIndex = jumpIndex_.value() - 1; in MeasureJumpIndex() local 420 auto startIndex = -1; in MeasureWithOffset() local 432 startIndex = endIndex - 1; in MeasureWithOffset() 439 endIndex = startIndex + 1; in MeasureWithOffset() 502 int32_t& startIndex, float& startPos) in LayoutBackward() argument 507 …while (startIndex >= 0 && (startIndex == childCount_ - 1 || GreatNotEqual(startPos, startMainPos_)… in LayoutBackward() 509 if (startIndex >= childCount_) { in LayoutBackward() 510 startIndex = childCount_ - 1; in LayoutBackward() 514 visibleItemPosition_[startIndex] = { startPos - visibleItemLength_[startIndex], startPos }; in LayoutBackward() 519 visibleItemLength_.erase(startIndex); in LayoutBackward() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/syntax/ |
H A D | lazy_layout_wrapper_builder.h | 39 …void UpdateIndexRange(int32_t startIndex, int32_t endIndex, const std::list<std::optional<std::str… in UpdateIndexRange() argument 42 if ((size != 0) && (size != (endIndex - startIndex + 1))) { in UpdateIndexRange() 43 …fail to update index range due to ides not match!, %{public}d, %{public}d, %{public}d", startIndex, in UpdateIndexRange() 48 preStartIndex_ = startIndex; in UpdateIndexRange()
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkgraphics2d/ |
H A D | _o_h___drawing___line_metrics.md | 28 | size_t [startIndex](#startindex) | 行起始位置字符索引。 | 102 ### startIndex subsection 105 size_t OH_Drawing_LineMetrics::startIndex
|