Home
last modified time | relevance | path

Searched refs:fromIndex (Results 1 - 25 of 36) sorted by relevance

12

/foundation/ability/idl_tool/util/
H A Dstring.cpp232 int String::IndexOf(char c, int fromIndex) const in IndexOf()
238 if (fromIndex < 0) { in IndexOf()
239 fromIndex = 0; in IndexOf()
240 } else if (fromIndex >= GetLength()) { in IndexOf()
244 char* p = string_ + fromIndex; in IndexOf()
255 int String::IndexOf(const char* string, int fromIndex) const in IndexOf()
261 if (fromIndex < 0) { in IndexOf()
262 fromIndex = 0; in IndexOf()
263 } else if (fromIndex >= GetLength()) { in IndexOf()
267 char* c = strstr(string_ + fromIndex, strin in IndexOf()
[all...]
H A Dstring.h67 int IndexOf(char c, int fromIndex = 0) const;
69 int IndexOf(const char* string, int fromIndex = 0) const;
71 int IndexOf(const String& other, int fromIndex = 0) const;
73 int LastIndexOf(char c, int fromIndex = 0) const;
75 int LastIndexOf(const char* string, int fromIndex = 0) const;
77 int LastIndexOf(const String& other, int fromIndex = 0) const;
119 int LastIndexOfInternal(const char* string, int fromIndex) const;
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/functions/
H A Djs_tabs_function.cpp40 auto fromIndex = 0; in GetFromIndex() local
42 fromIndex = proxy_->GetFromIndex(); in GetFromIndex()
44 auto fromRef = JSRef<JSVal>::Make(JSVal(ToJSValue(fromIndex))); in GetFromIndex()
89 JSRef<JSVal> JsTabsFunction::Execute(int32_t fromIndex, int32_t toIndex) in Execute() argument
91 JSRef<JSVal> from = JSRef<JSVal>::Make(ToJSValue(fromIndex)); in Execute()
H A Djs_tabs_function.h37 JSRef<JSVal> Execute(int32_t fromIndex, int32_t toIndex);
/foundation/graphic/graphic_3d/lume/metaobject/src/container/
H A Dcontainer_base.cpp202 ChildMovedInfo ContainerBase::MoveInternal(SizeType fromIndex, SizeType toIndex) in MoveInternal() argument
208 fromIndex = BASE_NS::Math::min(fromIndex, size - 1); in MoveInternal()
210 const IObject::Ptr child = children_[fromIndex]; in MoveInternal()
211 if (fromIndex == toIndex) { in MoveInternal()
214 if (fromIndex > toIndex) { in MoveInternal()
215 const auto first = children_.rbegin() + (size - fromIndex - 1); in MoveInternal()
219 const auto first = children_.begin() + fromIndex; in MoveInternal()
223 return { child, fromIndex, toIndex, parent_ }; in MoveInternal()
226 bool ContainerBase::Move(SizeType fromIndex, SizeTyp argument
247 SizeType fromIndex = 0; Move() local
[all...]
H A Dcontainer_base.h50 bool Move(SizeType fromIndex, SizeType toIndex) override;
82 ChildMovedInfo MoveInternal(SizeType fromIndex, SizeType toIndex);
H A Dcontainer.cpp123 IContainer::SizeType fromIndex = 0; in Replace() local
144 fromIndex = index; in Replace()
210 Invoke<IOnChildMoved>(OnMoved(), ChildMovedInfo { moved, fromIndex, toIndex, parent_ }); in Replace()
/foundation/arkui/ace_engine/frameworks/core/components_ng/syntax/
H A Drepeat_node.cpp85 void RepeatNode::MoveChild(uint32_t fromIndex) in MoveChild() argument
87 // copy child from tempChildrenOfRepeat_[fromIndex] and append to children_ in MoveChild()
88 if (fromIndex < tempChildrenOfRepeat_.size()) { in MoveChild()
89 auto& node = tempChildrenOfRepeat_.at(fromIndex); in MoveChild()
H A Drepeat_model_ng.cpp46 void RepeatModelNG::MoveChild(uint32_t fromIndex) in MoveChild() argument
52 repeatNode->MoveChild(fromIndex); in MoveChild()
H A Drepeat_model_ng.h38 void MoveChild(uint32_t fromIndex) override;
H A Drepeat_model.h39 virtual void MoveChild(uint32_t fromIndex) = 0;
H A Drepeat_node.h54 void MoveChild(uint32_t fromIndex);
H A Dfor_each_node.cpp229 void ForEachNode::MoveChild(uint32_t fromIndex) in MoveChild() argument
231 // copy child from tempChildrenOfRepeat_[fromIndex] and append to children_ in MoveChild()
232 if (fromIndex < tempChildrenOfRepeat_.size()) { in MoveChild()
233 auto& node = tempChildrenOfRepeat_.at(fromIndex); in MoveChild()
H A Dfor_each_node.h59 void MoveChild(uint32_t fromIndex);
/foundation/arkui/ace_engine/frameworks/core/components/swiper/
H A Drender_swiper.cpp1067 int32_t fromIndex = currentIndex_; in MoveItems() local
1084 fromIndex = GetNextIndex(); in MoveItems()
1093 fromIndex = GetPrevIndex(); in MoveItems()
1117 LOGI("translate animation, currentIndex: %{public}d, fromIndex: %{public}d, toIndex: %{public}d, \ in MoveItems()
1118 start: %{public}f, end: %{public}f", currentIndex_, fromIndex, toIndex, start, end); in MoveItems()
1121 translate_->AddListener(Animation<double>::ValueCallback([weak, fromIndex, toIndex, start, end](double value) { in MoveItems()
1128 swiper->UpdateChildPosition(value, fromIndex); in MoveItems()
1137 controller_->AddStopListener([weak, fromIndex, toIndex, needRestore]() { in MoveItems()
1147 swiper->LoadLazyItems((fromIndex + 1) % swiper->itemCount_ == toIndex); in MoveItems()
1150 swiper->outItemIndex_ = fromIndex; in MoveItems()
1273 AddSwipeToTranslateListener(int32_t fromIndex, int32_t toIndex) AddSwipeToTranslateListener() argument
1293 AddSwipeToOpacityListener(int32_t fromIndex, int32_t toIndex) AddSwipeToOpacityListener() argument
1314 AddSwipeToIndicatorListener(int32_t fromIndex, int32_t toIndex) AddSwipeToIndicatorListener() argument
1333 CalculateEndOffset(int32_t fromIndex, int32_t toIndex, bool reverse) CalculateEndOffset() argument
1367 DoSwipeToAnimation(int32_t fromIndex, int32_t toIndex, bool reverse) DoSwipeToAnimation() argument
1691 UpdateChildPosition(double offset, int32_t fromIndex, bool inLayout) UpdateChildPosition() argument
2853 UpdateIndicatorOffset(int32_t fromIndex, int32_t toIndex, double value) UpdateIndicatorOffset() argument
2937 StartIndicatorAnimation(int32_t fromIndex, int32_t toIndex, bool isLoop) StartIndicatorAnimation() argument
3301 int32_t fromIndex = currentIndex_ - forwardNum; SetSwiperHidden() local
[all...]
H A Drender_swiper.h222 void StartIndicatorAnimation(int32_t fromIndex, int32_t toIndex, bool isLoop = false);
241 void UpdateIndicatorOffset(int32_t fromIndex, int32_t toIndex, double value);
490 void AddSwipeToTranslateListener(int32_t fromIndex, int32_t toIndex);
491 void AddSwipeToOpacityListener(int32_t fromIndex, int32_t toIndex);
492 void AddSwipeToIndicatorListener(int32_t fromIndex, int32_t toIndex);
493 double CalculateEndOffset(int32_t fromIndex, int32_t toIndex, bool reverse);
494 void DoSwipeToAnimation(int32_t fromIndex, int32_t toIndex, bool reverse);
501 void UpdateChildPosition(double offset, int32_t fromIndex, bool inLayout = false);
/foundation/arkui/ace_engine/frameworks/core/components/stepper/
H A Drender_stepper.h179 void InitStepperToAnimation(int32_t fromIndex, int32_t toIndex, bool reverse);
180 void AddStepperToTranslateListener(int32_t fromIndex, int32_t toIndex);
181 void AddStepperToOpacityListener(int32_t fromIndex, int32_t toIndex);
182 void AddStepperToStopListener(int32_t fromIndex, int32_t toIndex);
183 void DoStepperToAnimation(int32_t fromIndex, int32_t toIndex, bool reverse);
H A Dstepper_animation_controller.cpp224 void StepperAnimationController::PlayStepperToAnimation(int32_t fromIndex, int32_t toIndex, bool reverse) in PlayStepperToAnimation() argument
241 if (toIndex > fromIndex) { in PlayStepperToAnimation()
H A Dstepper_animation_controller.h87 void PlayStepperToAnimation(int32_t fromIndex, int32_t toIndex, bool reverse);
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/tabs/
H A Dtab_content_transition_proxy.h34 void SetFromIndex(int32_t fromIndex) in SetFromIndex() argument
36 fromIndex_ = fromIndex; in SetFromIndex()
/foundation/graphic/graphic_3d/lume/metaobject/src/animation/
H A Dstaggered_animation_state.cpp137 auto fromIndex = info.from; in ChildMoved() local
140 fromIndex = BASE_NS::Math::min(fromIndex, size - 1); in ChildMoved()
142 if (fromIndex == toIndex) { in ChildMoved()
145 auto& child = children_[fromIndex]; in ChildMoved()
146 if (fromIndex > toIndex) { in ChildMoved()
147 const auto first = children_.rbegin() + static_cast<SegmentVector::difference_type>(size - fromIndex - 1); in ChildMoved()
151 const auto first = children_.begin() + static_cast<SegmentVector::difference_type>(fromIndex); in ChildMoved()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_repeat.cpp63 // fromIndex: number
71 const auto fromIndex = info[0]->ToNumber<uint32_t>(); in MoveChild() local
72 RepeatModel::GetInstance()->MoveChild(fromIndex); in MoveChild()
/foundation/graphic/graphic_3d/lume/metaobject/src/model/
H A Dcomposite_object_provider.cpp161 size_t fromIndex = CalculateIndex(provider, from.Index()); in OnMovedProviderData() local
163 if (fromIndex != -1 && toIndex != -1) { in OnMovedProviderData()
165 ->Invoke(DataModelIndex { fromIndex, from.GetDimensionPointer() }, count, in OnMovedProviderData()
/foundation/arkui/ace_engine/frameworks/core/components/list/
H A Drender_list.cpp472 int32_t fromIndex = items_.begin()->first; in RecycleAllChild() local
475 return RecycleByRange(fromIndex, toIndex); in RecycleAllChild()
484 int32_t fromIndex = items_.begin()->first; in SyncIndex() local
487 if (begin > 0 && fromIndex < begin) { in SyncIndex()
488 RecycleByRange(fromIndex, begin - 1); in SyncIndex()
/foundation/graphic/graphic_3d/lume/metaobject/include/meta/ext/
H A Dobject_container.h92 bool Move(IContainer::SizeType fromIndex, IContainer::SizeType toIndex) override
94 return container_->Move(fromIndex, toIndex);

Completed in 18 milliseconds

12