Home
last modified time | relevance | path

Searched refs:textLength (Results 1 - 6 of 6) sorted by relevance

/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_field/
H A Dtext_input_ai_checker.cpp41 bool InputAIChecker::IsSingleClickAtBoundary(int32_t position, int32_t textLength) in IsSingleClickAtBoundary() argument
43 bool endBoundary = position == textLength; in IsSingleClickAtBoundary()
H A Dtext_input_ai_checker.h34 static bool IsSingleClickAtBoundary(int32_t position, int32_t textLength);
H A Dtext_field_layout_algorithm.h92 void UpdateCounterBorderStyle(uint32_t& textLength, uint32_t& maxLength, LayoutWrapper* layoutWrapper);
93 void UpdateCounterNode(uint32_t textLength, uint32_t maxLength, const LayoutConstraintF& contentConstraint,
H A Dtext_field_pattern.cpp1550 auto textLength = static_cast<int32_t>(contentController_->GetWideText().length()); in UpdateShowCountBorderStyle() local
1553 if (textLength != maxLength) { in UpdateShowCountBorderStyle()
1554 showCountBorderStyle_ = textLength > maxLength; in UpdateShowCountBorderStyle()
4319 auto textLength = static_cast<uint32_t>(StringUtils::ToWstring(textContent).length()); in MeasureCounterNodeHeight() local
4321 std::string counterText = std::to_string(textLength) + "/" + std::to_string(maxLength); in MeasureCounterNodeHeight()
4477 int32_t textLength = static_cast<int32_t>(contentController_->GetWideText().length()); in GetWordLength() local
4478 if (originCaretPosition < 0 || originCaretPosition > textLength) { in GetWordLength()
4483 if ((directionMove == 0 && originCaretPosition == 0) || (directionMove == 1 && originCaretPosition == textLength)) { in GetWordLength()
4504 for (; directionMove == 0 ? strIndex >= 0 : strIndex <= textLength;) { in GetWordLength()
4534 int32_t textLength in GetLineBeginPosition() local
4567 int32_t textLength = static_cast<int32_t>(wideTextValue.length()); GetLineEndPosition() local
4631 int32_t textLength = static_cast<int32_t>(contentController_->GetWideText().length()); CursorMoveLeftWord() local
4651 int32_t textLength = static_cast<int32_t>(contentController_->GetWideText().length()); CursorMoveLineBegin() local
4728 int32_t textLength = static_cast<int32_t>(contentController_->GetWideText().length()); CursorMoveRightWord() local
4749 int32_t textLength = static_cast<int32_t>(contentController_->GetWideText().length()); CursorMoveLineEnd() local
4787 int32_t textLength = static_cast<int32_t>(contentController_->GetWideText().length()); CursorMoveEnd() local
5526 int32_t textLength = static_cast<int32_t>(contentController_->GetWideText().length()); HandleSelectionLeftWord() local
5545 int32_t textLength = static_cast<int32_t>(contentController_->GetWideText().length()); HandleSelectionLineBegin() local
5595 int32_t textLength = static_cast<int32_t>(contentController_->GetWideText().length()); HandleSelectionRightWord() local
5615 int32_t textLength = static_cast<int32_t>(contentController_->GetWideText().length()); HandleSelectionLineEnd() local
7148 auto textLength = static_cast<int32_t>(contentController_->GetWideText().length()); OnBackPressed() local
[all...]
H A Dtext_field_layout_algorithm.cpp443 uint32_t textLength, uint32_t maxLength, const LayoutConstraintF& contentConstraint, LayoutWrapper* layoutWrapper) in UpdateCounterNode()
466 if (counterType == DEFAULT_MODE || (textLength >= limitSize && counterType != DEFAULT_MODE)) { in UpdateCounterNode()
467 counterText = std::to_string(textLength) + "/" + std::to_string(maxLength); in UpdateCounterNode()
575 auto textLength = in CounterNodeMeasure() local
580 UpdateCounterNode(textLength, maxLength, textContentConstraint, layoutWrapper); in CounterNodeMeasure()
442 UpdateCounterNode( uint32_t textLength, uint32_t maxLength, const LayoutConstraintF& contentConstraint, LayoutWrapper* layoutWrapper) UpdateCounterNode() argument
/foundation/arkui/ui_lite/frameworks/components/
H A Dui_edit_text.cpp356 uint16_t textLength = GetTextLength(); in UpdateOffsetX() local
359 if (textLength == 0 || (firstVisibleIndex == 0 && lastVisibleIndex == textLength)) { in UpdateOffsetX()
435 uint16_t textLength = GetTextLength(); in UpdateExtraOffsetX() local
442 } else if (lastVisibleIndex - cursorIndex_ < 1 && lastVisibleIndex != textLength) { in UpdateExtraOffsetX()
445 if (GetLastVisibleIndex() == textLength) { in UpdateExtraOffsetX()

Completed in 16 milliseconds