/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/span/ |
H A D | mutable_span_string.cpp | 33 return static_cast<int32_t>(StringUtils::ToWstring(str).length()); in GetWStringLength() 148 auto wContent = StringUtils::ToWstring((*it)->content); in HandleSpanOperation() 149 auto wOther = StringUtils::ToWstring(other); in HandleSpanOperation() 228 auto wOther = StringUtils::ToWstring(other); in ProcessSpanBaseList() 268 auto wOther = StringUtils::ToWstring(other); in ReplaceString() 343 auto wOther = StringUtils::ToWstring(other); in InsertString() 364 auto wContent = StringUtils::ToWstring(span->content); in InsertString() 461 auto wStr = StringUtils::ToWstring((*it)->content); in ApplyInsertSpanStringToSpans() 590 int32_t length = static_cast<int32_t>(StringUtils::ToWstring(str).length()); in InsertStringAroundSpecialNode() 595 auto centerStr = StringUtils::ToWstring(str); in InsertStringAroundSpecialNode()
|
H A D | span_string.cpp | 36 return StringUtils::ToWstring(""); in GetWideStringSubstr() 44 return StringUtils::ToWstring(""); in GetWideStringSubstr() 52 std::wstring wideText = StringUtils::ToWstring(text); in SpanString() 55 wideText = StringUtils::ToWstring(text_); in SpanString() 137 auto wString = StringUtils::ToWstring((*it)->content); in SplitSpansAndForward() 173 auto wContent = StringUtils::ToWstring((*it)->content); in ApplyToSpans() 293 auto wStr = StringUtils::ToWstring(spanItem->content); in GetStepsByPosition() 591 spanItem->interval = { 0, StringUtils::ToWstring(text).length() }; in GetDefaultSpanItem() 625 return StringUtils::ToWstring(text_); in GetWideString() 630 return StringUtils::ToWstring(text_).length(); in GetLength() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/rich_editor/ |
H A D | rich_editor_preview_text_test_ng.cpp | 95 auto length = static_cast<int32_t>(StringUtils::ToWstring(PREVIEW_TEXT_VALUE1).length()); 151 auto length = static_cast<int32_t>(StringUtils::ToWstring(PREVIEW_TEXT_VALUE2).length()); 160 length = static_cast<int32_t>(StringUtils::ToWstring(PREVIEW_TEXT_VALUE3).length());
|
H A D | rich_editor_pattern_test_ng.cpp | 1010 … int32_t firstLength = static_cast<int32_t>(StringUtils::ToWstring(firstInfo.GetValue()).length()); 1013 int32_t lastLength = static_cast<int32_t>(StringUtils::ToWstring(lastInfo.GetValue()).length()); 1196 int32_t lastLength = static_cast<int32_t>(StringUtils::ToWstring(lastInfo.GetValue()).length()); 1206 … int32_t firstLength = static_cast<int32_t>(StringUtils::ToWstring(firstInfo.GetValue()).length()); 1208 lastLength = static_cast<int32_t>(StringUtils::ToWstring(lastInfo.GetValue()).length()); 1268 … int32_t firstLength = static_cast<int32_t>(StringUtils::ToWstring(firstInfo.GetValue()).length()); 1547 auto start = spanItem->position - StringUtils::ToWstring(spanItem->content).length(); 1707 auto start = spanItem->position - StringUtils::ToWstring(spanItem->content).length(); 1734 auto start = spanItem->position - StringUtils::ToWstring(spanItem->content).length();
|
H A D | rich_editor_edit_testone_ng.cpp | 122 auto ret = richEditorPattern->GetSelectedSpanText(StringUtils::ToWstring(INIT_VALUE_1), -1, 1); 123 ret = richEditorPattern->GetSelectedSpanText(StringUtils::ToWstring(INIT_VALUE_1), -1, 10); 124 ret = richEditorPattern->GetSelectedSpanText(StringUtils::ToWstring(INIT_VALUE_1), 0, 1); 175 std::wstring value = StringUtils::ToWstring(ori); 1205 … int32_t firstLength = static_cast<int32_t>(StringUtils::ToWstring(firstInfo.GetValue()).length()); 1208 int32_t lastLength = static_cast<int32_t>(StringUtils::ToWstring(lastInfo.GetValue()).length());
|
H A D | rich_editor_common_test_ng.cpp | 65 spanTextLength += StringUtils::ToWstring(span->content).length(); in AddImageSpan()
|
/ohos5.0/foundation/arkui/ace_engine/adapter/ohos/osal/ |
H A D | data_detector_adapter.cpp | 260 …if (startPos + AI_TEXT_MAX_LENGTH >= static_cast<int32_t>(StringUtils::ToWstring(textForAI_).lengt… in ParseAIResult() 301 auto wTextForAI = StringUtils::ToWstring(textForAI_); in ParseAIJson() 302 auto wOriText = StringUtils::ToWstring(oriText); in ParseAIJson() 351 auto wTextForAI = StringUtils::ToWstring(dataDetectorAdapter->textForAI_); in GetDetectDelayTask() 361 auto wAIContent = StringUtils::ToWstring(aiContent); in GetDetectDelayTask()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/rich_editor/ |
H A D | rich_editor_pattern.cpp | 1322 auto wContent = StringUtils::ToWstring(spanItem->content); in SpanNodeFission() 1352 wss << StringUtils::ToWstring((*iter)->content); in DeleteSpans() 4111 StringUtils::ToWstring(spanItem->content) in SetSubSpansWithAIWrite() 4182 StringUtils::ToWstring(spanItem->content) in SetSubSpans() 5173 std::wstring wContent = StringUtils::ToWstring(content); in IsLineSeparatorInLast() 5183 std::wstring textTemp = StringUtils::ToWstring(text); in InsertValueToSpanNode() 5204 std::wstring textTemp = StringUtils::ToWstring(text); in InsertValueToBeforeSpan() 5496 wss << StringUtils::ToWstring((*iter)->content); in DeleteBackwardOperation() 5566 wss << StringUtils::ToWstring((*iter)->content); in DeleteForwardOperation() 9567 auto wContent = StringUtils::ToWstring(content); in OnBackPressed() [all …]
|
H A D | rich_editor_layout_algorithm.cpp | 39 if (StringUtils::ToWstring(span->content).back() == L'\n') { in RichEditorLayoutAlgorithm() 68 if (StringUtils::ToWstring(lastSpan->content).back() == L'\n') { in AppendNewLineSpan()
|
/ohos5.0/base/global/resource_management/frameworks/resmgr/src/utils/ |
H A D | psue_manager.cpp | 99 std::string wsStr = ToWstring(ws, src); in Convert() 168 std::string PsueManager::ToWstring(std::wstring &dest, const std::string &src) in ToWstring() function in OHOS::Global::Resource::PsueManager
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/marquee/ |
H A D | rosen_render_marquee.cpp | 33 auto wstring = StringUtils::ToWstring(text); in GetTextDirection()
|
/ohos5.0/base/global/resource_management/frameworks/resmgr/include/utils/ |
H A D | psue_manager.h | 37 std::string ToWstring(wstring &dest, const string &src);
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/common/painter/ |
H A D | rosen_svg_painter.cpp | 518 std::wstring data = StringUtils::ToWstring(svgTextInfo.data); in UpdateText() 568 std::wstring data = StringUtils::ToWstring(svgTextInfo.data); in UpdateText() 622 std::wstring data = StringUtils::ToWstring(svgTextInfo.data); in UpdateTextPath() 691 std::wstring data = StringUtils::ToWstring(svgTextInfo.data); in UpdateTextPath() 764 std::wstring data = StringUtils::ToWstring(svgTextInfo.data); in MeasureTextBounds() 794 std::wstring data = StringUtils::ToWstring(svgTextInfo.data); in MeasureTextBounds() 824 std::wstring data = StringUtils::ToWstring(svgTextInfo.data); in MeasureTextPathBounds() 860 std::wstring data = StringUtils::ToWstring(svgTextInfo.data); in MeasureTextPathBounds()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_field/ |
H A D | content_controller.cpp | 67 auto wideTmp = StringUtils::ToWstring(tmp); in PreprocessString() 253 std::wstring wFilter = StringUtils::ToWstring(filter); in FilterWithRegex() 254 std::wstring wResult = StringUtils::ToWstring(result); in FilterWithRegex()
|
H A D | content_controller.h | 51 return StringUtils::ToWstring(content_); in GetWideText()
|
H A D | text_editing_value_ng.h | 45 return StringUtils::ToWstring(text); in GetWideText()
|
H A D | text_field_layout_algorithm.cpp | 583 … static_cast<uint32_t>(showPlaceHolder_ ? 0 : StringUtils::ToWstring(textContent_).length()); in CounterNodeMeasure() 859 …TextFieldPattern::CreateObscuredText(static_cast<int32_t>(StringUtils::ToWstring(splitStr).length(… in CreateParagraph() 898 auto showingTextForWString = StringUtils::ToWstring(content); in GetTextDirection()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/text/ |
H A D | text_utils.h | 79 auto wstring = StringUtils::ToWstring(str); in GetRangeOfSameType()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/ |
H A D | text_layout_algorithm.cpp | 83 auto wContent = StringUtils::ToWstring(spanItem->content); in ConstructParagraphSpanGroup() 203 auto wTextForAI = StringUtils::ToWstring(textForAI); in UpdateParagraphForAISpan() 642 auto wContent = StringUtils::ToWstring(content); in UpdateSensitiveContent()
|
H A D | multiple_paragraph_layout_algorithm.cpp | 414 auto showingTextForWString = StringUtils::ToWstring(content); in GetTextDirectionByContent() 575 child->length = StringUtils::ToWstring(child->content).length(); in AddTextSpanToParagraph()
|
H A D | span_node.cpp | 360 auto wSpanContent = StringUtils::ToWstring(spanContent); in UpdateTextStyleForAISpan() 387 auto displayContent = StringUtils::ToWstring(aiSpan.content) in UpdateTextStyleForAISpan() 1054 auto contentLen = StringUtils::ToWstring(content).length(); in GetIndex()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/common/ime/ |
H A D | text_editing_value.cpp | 71 return StringUtils::ToWstring(text); in GetWideText()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/text_overlay/ |
H A D | text_overlay_manager.cpp | 296 const auto& textBeforeCursor = StringUtils::ToWstring(tempBefore); 300 const auto& textAfterCursor = StringUtils::ToWstring(tempAfter);
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/text_field/ |
H A D | rosen_render_text_field.cpp | 1192 auto showingTextForWString = StringUtils::ToWstring(showingText); 1655 const auto& textBeforeCursor = StringUtils::ToWstring(tempBefore); 1660 const auto& textAfterCursor = StringUtils::ToWstring(tempAfter); 1805 const auto& textBeforeCursor = StringUtils::ToWstring(tempBefore); 1810 const auto& textAfterCursor = StringUtils::ToWstring(tempAfter);
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/calendar/ |
H A D | calendar_paint_method.cpp | 82 auto wText = StringUtils::ToWstring(text); in DrawCalendarText() 543 auto wText = StringUtils::ToWstring(newText); in DrawWeek()
|