Home
last modified time | relevance | path

Searched refs:wstring (Results 1 – 25 of 70) sorted by relevance

123

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/text/
H A Dtext_utils.h35 inline CharType GetCharType(const std::wstring& value, int32_t position) in GetCharType()
51 inline bool IsSameCharType(const std::wstring& wstring, int32_t position, CharType type) in IsSameCharType() argument
53 return GetCharType(wstring, position) == type; in IsSameCharType()
56 inline int32_t FindSameCharTypeStart(const std::wstring& wstring, int32_t position, CharType type) in FindSameCharTypeStart() argument
59 if (!IsSameCharType(wstring, i, type)) { in FindSameCharTypeStart()
66 inline int32_t FindSameCharTypeEnd(const std::wstring& wstring, int32_t position, int32_t length, C… in FindSameCharTypeEnd() argument
69 if (!IsSameCharType(wstring, i, type)) { in FindSameCharTypeEnd()
79 auto wstring = StringUtils::ToWstring(str); in GetRangeOfSameType() local
80 int32_t length = static_cast<int32_t>(wstring.size()); in GetRangeOfSameType()
81 CharType type = GetCharType(wstring, position); in GetRangeOfSameType()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/common/ime/
H A Dtext_editing_value.cpp69 std::wstring TextEditingValue::GetWideText() const in GetWideText()
157 std::wstring beforeSelection; in SelectionAwareTextManipulation()
163 std::wstring inSelection; in SelectionAwareTextManipulation()
169 std::wstring afterSelection; in SelectionAwareTextManipulation()
197 std::wstring beforeSelection = wideText.substr(0, start); in GetBeforeSelection()
217 std::wstring inSelection = wideText.substr(start, end - start); in GetSelectedText()
237 std::wstring inSelection = wideText.substr(start, end - start); in GetSelectedText()
255 std::wstring afterSelection = wideText.substr(end); in GetAfterSelection()
H A Dtext_editing_value.h32 using TextManipulation = std::function<void(std::wstring&)>;
41 std::wstring GetWideText() const;
/ohos5.0/base/global/resource_management/frameworks/resmgr/src/utils/
H A Dpsue_manager.cpp53 const std::wstring PSUE_CONFIG_CHARS = {L"ReÇÉÄßÑ¿ÃóèìжДﺥ"};
98 std::wstring ws; in Convert()
152 void PsueManager::ToAccent(wstring &ws) const in ToAccent()
154 for (std::wstring::size_type i = 0 ; i < ws.length(); i++) { in ToAccent()
168 std::string PsueManager::ToWstring(std::wstring &dest, const std::string &src) in ToWstring()
185 std::string PsueManager::ToString(std::string &dest, const std::wstring &src) in ToString()
/ohos5.0/base/global/resource_management/frameworks/resmgr/include/utils/
H A Dpsue_manager.h36 void ToAccent(wstring &ws) const;
37 std::string ToWstring(wstring &dest, const string &src);
38 std::string ToString(string &dest, const wstring &src);
/ohos5.0/base/location/services/location_gnss/gnss/include/
H A Dstring_utils.h37 static std::wstring Utf8ToWstring(const std::string &utf8Str);
38 static std::wstring Ucs2ToWstring(const std::string &ucs2Str);
40 static std::string WstringToString(const std::wstring& wStr);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/text_field/
H A Drosen_render_text_field.h152 …AndSelectionForLtr(bool isBeforeCharRtl, bool isAfterCharRtl, const std::wstring& textBeforeCursor,
153 const std::wstring& textAfterCursor, int32_t& result);
154 …AndSelectionForRtl(bool isBeforeCharRtl, bool isAfterCharRtl, const std::wstring& textBeforeCursor,
155 const std::wstring& textAfterCursor, int32_t& result);
156 bool NeedAdjustPosition(const std::wstring& textBeforeCursor);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/marquee/
H A Drosen_render_marquee.cpp33 auto wstring = StringUtils::ToWstring(text); in GetTextDirection() local
35 for (const auto& charInStr : wstring) { in GetTextDirection()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/span/
H A Dspan_string.h44 std::wstring GetWideString();
107 static std::wstring GetWideStringSubstr(const std::wstring& content, int32_t start);
108 …static std::wstring GetWideStringSubstr(const std::wstring& content, int32_t start, int32_t length…
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/text/
H A Dtext_emoji_processor.h62 static std::wstring SubWstring(int32_t index, int32_t length,
63 const std::wstring& content, bool includeHalf = false);
65 const std::wstring& content, bool includeHalf);
/ohos5.0/foundation/arkui/ace_engine/test/mock/core/common/
H A Dmock_text_editing_value.cpp36 std::wstring TextEditingValue::GetWideText() const in GetWideText()
38 return std::wstring(); in GetWideText()
H A Dmock_ai_write_adapter.cpp20 uint32_t AIWriteAdapter::GetSelectLengthOnlyText(const std::wstring& content) in GetSelectLengthOnlyText()
/ohos5.0/foundation/arkui/ui_lite/frameworks/components/
H A Dui_edit_text.cpp239 std::wstring wideText = convert.from_bytes(text); in UpdateTextString()
245 std::wstring newWideText = wideText.substr(0, textLen); in UpdateTextString()
458 std::wstring wideText = convert.from_bytes(textStr_); in GetTextWidthByCursorIndex()
553 std::wstring wideText = convert.from_bytes(textStr_); in InsertTextByCursorIndex()
554 std::wstring insertWText = convert.from_bytes(text); in InsertTextByCursorIndex()
561 std::wstring newWideText = wideText.insert(cursorIndex_, insertWText); in InsertTextByCursorIndex()
609 std::wstring wideText = convert.from_bytes(textStr_); in SetCursorIndex()
653 std::wstring wideText = convert.from_bytes(textStr_); in DeleteBackward()
/ohos5.0/base/location/services/location_gnss/gnss/source/
H A Dstring_utils.cpp138 std::wstring StringUtils::Utf8ToWstring(const std::string& utf8Str) in Utf8ToWstring()
144 std::wstring StringUtils::Ucs2ToWstring(const std::string& ucs2Str) in Ucs2ToWstring()
150 std::string StringUtils::WstringToString(const std::wstring& wStr) in WstringToString()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/
H A Dtext_layout_algorithm.h86 void GrayDisplayAISpan(const DragSpanPosition& dragSpanPosition, const std::wstring textForAI,
89 std::string StringOutBoundProtection(int32_t position, int32_t length, std::wstring wTextForAI);
/ohos5.0/foundation/multimedia/media_foundation/test/scenetest/helper/
H A Dmain.cpp23 crash_handler_register(std::wstring(L"\\dumper.exe")); in main()
/ohos5.0/base/telephony/core_service/utils/common/include/
H A Dstr_convert.h27 std::string ToUtf8(std::wstring wstr);
/ohos5.0/foundation/arkui/ace_engine/adapter/preview/osal/advance/
H A Dai_write_adapter.cpp20 uint32_t AIWriteAdapter::GetSelectLengthOnlyText(const std::wstring& content) { return 0; } in GetSelectLengthOnlyText()
/ohos5.0/foundation/arkui/ace_engine/frameworks/base/utils/
H A Dstring_utils.cpp28 const std::wstring DEFAULT_WSTRING = L"error";
/ohos5.0/base/telephony/core_service/utils/common/src/
H A Dstr_convert.cpp42 std::string ToUtf8(std::wstring wstr) in ToUtf8()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/common/painter/
H A Drosen_svg_painter.cpp518 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/test/unittest/core/pattern/text_input/
H A Dtext_field_keyevent_test.cpp76 std::wstring appendElement(1, code.second);
128 std::wstring appendElement(1, code.second);
177 std::wstring appendElement(1, code.second);
229 std::wstring appendElement(1, code.second);
/ohos5.0/commonlibrary/ets_utils/js_api_module/url/
H A Djs_url.h395 void HandleIllegalChar(std::wstring& inputStr, std::wstring::const_iterator it);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_field/
H A Dcontent_controller.cpp253 std::wstring wFilter = StringUtils::ToWstring(filter); in FilterWithRegex()
254 std::wstring wResult = StringUtils::ToWstring(result); in FilterWithRegex()
256 std::wstring wErrorText = std::regex_replace(wResult, wFilterRegex, L""); in FilterWithRegex()
/ohos5.0/foundation/arkui/ace_engine/adapter/ohos/osal/
H A Dai_write_adapter.cpp32 const std::wstring BOUNDARY_SYMBOLS = L",.?,。?!";
59 uint32_t AIWriteAdapter::GetSelectLengthOnlyText(const std::wstring& content) in GetSelectLengthOnlyText()

123