/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_field/ |
H A D | text_editing_value_ng.h | 65 auto wideText = GetWideText(); in GetValueBeforeCursor() local 66 if (caretPosition > static_cast<int32_t>(wideText.length()) || caretPosition <= 0) { in GetValueBeforeCursor() 69 return StringUtils::ToString(wideText.substr(0, caretPosition)); in GetValueBeforeCursor() 74 auto wideText = GetWideText(); in GetValueAfterCursor() local 75 if (caretPosition > static_cast<int32_t>(wideText.length()) || caretPosition < 0) { in GetValueAfterCursor() 78 return StringUtils::ToString(wideText.substr(caretPosition)); in GetValueAfterCursor() 83 auto wideText = GetWideText(); in GetValueBeforePosition() local 84 position = std::clamp(position, 0, static_cast<int32_t>(wideText.length())); in GetValueBeforePosition() 86 return StringUtils::ToString(wideText.substr(0, position)); in GetValueBeforePosition() 91 auto wideText in GetValueAfterPosition() local 99 auto wideText = GetWideText(); GetSelectedText() local [all...] |
H A D | content_controller.cpp | 65 auto wideText = GetWideText(); in PreprocessString() local 68 auto curLength = static_cast<uint32_t>(wideText.length()); in PreprocessString() 86 auto wideText = GetWideText(); in ReplaceSelectedValue() local 88 content_ = StringUtils::ToString(wideText.substr(0, startIndex)) + tmp + in ReplaceSelectedValue() 89 StringUtils::ToString(wideText.substr(endIndex, static_cast<int32_t>(wideText.length()) - endIndex)); in ReplaceSelectedValue() 103 auto wideText = GetWideText(); in GetSelectedValue() local 104 auto selectedValue = StringUtils::ToString(wideText.substr(startIndex, endIndex - startIndex)); in GetSelectedValue() 107 TextEmojiProcessor::SubWstring(startIndex, endIndex - startIndex, wideText)); in GetSelectedValue() 116 auto wideText in FormatIndex() local 353 auto wideText = GetWideText().erase(startIndex, length); erase() local [all...] |
H A D | text_field_controller.cpp | 77 auto wideText = textFieldPattern->GetWideText(); in SetTextSelection() local 78 int32_t length = static_cast<int32_t>(wideText.length()); in SetTextSelection()
|
H A D | text_field_select_overlay.cpp | 415 auto wideText = pattern->GetWideText(); in GetTextInputCaretPosition() local
|
H A D | text_field_model_ng.cpp | 1619 auto wideText = pattern->GetWideText(); in SetTextSelection() local 1620 int32_t length = static_cast<int32_t>(wideText.length()); in SetTextSelection()
|
/foundation/arkui/ace_engine/frameworks/core/common/ime/ |
H A D | text_editing_value.cpp | 147 auto wideText = GetWideText(); in SelectionAwareTextManipulation() local 150 if (static_cast<size_t>(end) > wideText.length() || start > end) { in SelectionAwareTextManipulation() 155 manipulation(wideText); in SelectionAwareTextManipulation() 158 if ((start > 0) && (static_cast<size_t>(start) <= wideText.length())) { in SelectionAwareTextManipulation() 159 beforeSelection = wideText.substr(0, start); in SelectionAwareTextManipulation() 165 inSelection = wideText.substr(start, end - start); in SelectionAwareTextManipulation() 170 size_t lenLeft = wideText.length() - static_cast<size_t>(end); in SelectionAwareTextManipulation() 172 afterSelection = wideText.substr(end, lenLeft); in SelectionAwareTextManipulation() 176 wideText = beforeSelection + inSelection + afterSelection; in SelectionAwareTextManipulation() 184 text = StringUtils::ToString(wideText); in SelectionAwareTextManipulation() 189 auto wideText = GetWideText(); GetBeforeSelection() local 205 auto wideText = GetWideText(); GetSelectedText() local 225 auto wideText = GetWideText(); GetSelectedText() local 245 auto wideText = GetWideText(); GetAfterSelection() local 263 auto wideText = GetWideText(); Delete() local [all...] |
/foundation/arkui/ui_lite/frameworks/components/ |
H A D | ui_edit_text.cpp | 239 std::wstring wideText = convert.from_bytes(text); in UpdateTextString() local 240 uint32_t textLen = wideText.length(); in UpdateTextString() 245 std::wstring newWideText = wideText.substr(0, textLen); in UpdateTextString() 458 std::wstring wideText = convert.from_bytes(textStr_); in GetTextWidthByCursorIndex() local 459 wideText = wideText.substr(0, cursorIndex); in GetTextWidthByCursorIndex() 460 std::string clipText = convert.to_bytes(wideText); in GetTextWidthByCursorIndex() 553 std::wstring wideText = convert.from_bytes(textStr_); in InsertTextByCursorIndex() local 555 uint32_t textLen = wideText.length(); in InsertTextByCursorIndex() 561 std::wstring newWideText = wideText in InsertTextByCursorIndex() 609 std::wstring wideText = convert.from_bytes(textStr_); SetCursorIndex() local 653 std::wstring wideText = convert.from_bytes(textStr_); DeleteBackward() local [all...] |
/foundation/graphic/graphic_2d/rosen/test/2d_engine/unittest/rosen_text/adapter/skia_txt/ |
H A D | typography_create_test.cpp | 59 const std::u16string wideText = in HWTEST_F() local 61 typographyCreate->AppendText(wideText); in HWTEST_F() 84 const std::u16string wideText = in HWTEST_F() local 86 typographyCreate->AppendText(wideText); in HWTEST_F()
|
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_sta/ |
H A D | sta_service.h | 384 std::string ConvertString(const std::u16string &wideText) const;
|
H A D | sta_service.cpp | 305 std::string StaService::ConvertString(const std::u16string &wideText) const in ConvertString() 307 return std::wstring_convert<std::codecvt_utf8_utf16<char16_t>, char16_t>{}.to_bytes(wideText); in ConvertString()
|
/foundation/communication/wifi/wifi/test/fuzztest/wifi_sta/wifistaserver_fuzzer/ |
H A D | wifistaserver_fuzzer.cpp | 391 std::u16string wideText; in ConvertStringTest() local 392 pStaService->ConvertString(wideText); in ConvertStringTest()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/span/ |
H A D | span_string.cpp | 45 std::wstring wideText = StringUtils::ToWstring(text); in SpanString() local 46 if (wideText.length() == 0 && text.length() != 0) { in SpanString() 48 wideText = StringUtils::ToWstring(text_); in SpanString() 53 spanItem->interval = { 0, wideText.length() }; in SpanString()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/ |
H A D | text_pattern.cpp | 539 auto wideText = GetWideText(); in GetSelectedText() local 540 auto min = std::clamp(std::max(std::min(start, end), 0), 0, static_cast<int32_t>(wideText.length())); in GetSelectedText() 541 auto max = std::clamp(std::min(std::max(start, end), static_cast<int32_t>(wideText.length())), 0, in GetSelectedText() 542 static_cast<int32_t>(wideText.length())); in GetSelectedText() 543 return StringUtils::ToString(TextEmojiProcessor::SubWstring(min, max - min, wideText)); in GetSelectedText()
|
/foundation/arkui/ace_engine/frameworks/core/components/text_field/ |
H A D | render_text_field.cpp | 1592 std::wstring WstringSearch(std::wstring wideText, const std::wregex& regex) in WstringSearch() argument 1596 while (std::regex_search(wideText, matchResults, regex)) { in WstringSearch() 1600 wideText = matchResults.suffix(); in WstringSearch()
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/drawing_ndk/src/ |
H A D | drawing_text_typography.cpp | 440 const std::u16string wideText = in OH_Drawing_TypographyHandlerAddText() local 442 ConvertToOriginalText<TypographyCreate>(handler)->AppendText(wideText); in OH_Drawing_TypographyHandlerAddText()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/rich_editor/ |
H A D | rich_editor_pattern.cpp | 8818 auto wideText = StringUtils::ToWstring(obj.valueString); 8819 int32_t textLen = static_cast<int32_t>(wideText.length()); 8822 wideText.substr(obj.offsetInSpan[0], obj.offsetInSpan[1] - obj.offsetInSpan[0]));
|