Home
last modified time | relevance | path

Searched refs:StringUtils (Results 1 - 25 of 349) sorted by relevance

12345678910>>...14

/foundation/arkui/ace_engine/frameworks/core/components/common/properties/
H A Dedge.cpp38 StringUtils::StringSplitter(value, ' ', offsets); in FromString()
41 edge.top_ = StringUtils::StringToDimension(offsets[0]); in FromString()
42 edge.right_ = StringUtils::StringToDimension(offsets[0]); in FromString()
43 edge.bottom_ = StringUtils::StringToDimension(offsets[0]); in FromString()
44 edge.left_ = StringUtils::StringToDimension(offsets[0]); in FromString()
47 edge.top_ = StringUtils::StringToDimension(offsets[0]); in FromString()
48 edge.right_ = StringUtils::StringToDimension(offsets[1]); in FromString()
49 edge.bottom_ = StringUtils::StringToDimension(offsets[0]); in FromString()
50 edge.left_ = StringUtils::StringToDimension(offsets[1]); in FromString()
53 edge.top_ = StringUtils in FromString()
[all...]
H A Dclip_path.cpp155 Dimension radius = StringUtils::StringToDimension(StringUtils::TrimStr(data)); in CreateCircle()
163 Dimension radius = StringUtils::StringToDimension(StringUtils::TrimStr(data.substr(0, atIndex))); in CreateCircle()
170 StringUtils::SplitStr(StringUtils::TrimStr(data.substr(atIndex + 2)), " ", axis); in CreateCircle()
187 auto ellipse = CreateEllipseSize(StringUtils::TrimStr(data.substr(0, atIndex))); in CreateEllipse()
192 StringUtils::SplitStr(StringUtils::TrimStr(data.substr(atIndex + 2)), " ", axis); in CreateEllipse()
206 StringUtils in CreateEllipseSize()
[all...]
/foundation/arkui/ace_engine/frameworks/bridge/common/utils/
H A Dtransform_convertor.cpp171 StringUtils::StringSplitter(typeValue, ' ', offsets);
173 auto dx = StringUtils::StringToDimension(offsets[0]);
174 auto dy = StringUtils::StringToDimension(offsets[1]);
177 auto dx = StringUtils::StringToDimension(offsets[0]);
183 auto dx = StringUtils::StringToDimension(typeValue);
188 auto dy = StringUtils::StringToDimension(typeValue);
193 auto dz = StringUtils::StringToDimension(typeValue);
201 StringUtils::StringSplitter(typeValue, ' ', offsets);
203 auto dx = StringUtils::StringToDimension(offsets[0]);
204 auto dy = StringUtils
[all...]
/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/src/
H A Dstring_utils.cpp20 std::string StringUtils::SurroundWithQuote(const std::string &value, const std::string &quote) in SurroundWithQuote()
29 std::string StringUtils::SurroundWithFunction(const std::string &function, const std::string &separator, in SurroundWithFunction()
47 std::vector<std::string> StringUtils::Split(const std::string &str, const std::string &delim) in Split()
63 std::string StringUtils::ExtractFilePath(const std::string& fileFullName) in ExtractFilePath()
68 std::string StringUtils::ExtractFileName(const std::string& fileFullName) in ExtractFileName()
73 StringUtils::StringUtils() {} in StringUtils() function in OHOS::NativeRdb::StringUtils
74 StringUtils::~StringUtils() {} in ~StringUtils()
/foundation/arkui/ace_engine/test/unittest/base/
H A Dbase_utils_test.cpp185 auto firstTestText = StringUtils::FormatString(""); in HWTEST_F()
187 StringUtils::FormatString(TEST_INPUT_FMT_STR.c_str(), TEST_INPUT_ARGS_ONE, TEST_INPUT_ARGS_TWO); in HWTEST_F()
460 ASSERT_EQ(StringUtils::NotInUtf16Bmp(testChar16), true); in HWTEST_F()
461 ASSERT_EQ(StringUtils::NotInBmp(testWchar), true); in HWTEST_F()
462 ASSERT_EQ(StringUtils::IsNumber(TEST_INPUT_U8_STRING_NULL), false); in HWTEST_F()
463 ASSERT_EQ(StringUtils::IsNumber(TEST_INPUT_U8_STRING_NUMBER), true); in HWTEST_F()
473 ASSERT_EQ(StringUtils::Str8ToStr16(TEST_INPUT_U8_STRING), TEST_INPUT_U16_STRING); in HWTEST_F()
474 ASSERT_EQ(StringUtils::Str16ToStr8(TEST_INPUT_U16_STRING), TEST_INPUT_U8_STRING); in HWTEST_F()
475 ASSERT_EQ(StringUtils::ToWstring(TEST_INPUT_U8_STRING), TEST_INPUT_W_STRING); in HWTEST_F()
476 ASSERT_EQ(StringUtils in HWTEST_F()
[all...]
/foundation/arkui/ace_engine/frameworks/core/common/ime/
H A Dtext_editing_value.cpp71 return StringUtils::ToWstring(text); in GetWideText()
81 auto utf16Text = StringUtils::Str8ToStr16(text); in MoveLeft()
83 selection.Update(StringUtils::NotInUtf16Bmp(utf16Text[prevCharIndex]) ? prevCharIndex - 1 : prevCharIndex); in MoveLeft()
88 auto utf16Text = StringUtils::Str8ToStr16(text); in MoveRight()
98 selection.Update(StringUtils::NotInUtf16Bmp(utf16Text[nextCharIndex]) in MoveRight()
109 auto utf16Text = StringUtils::Str8ToStr16(text); in MoveToPosition()
184 text = StringUtils::ToString(wideText); in SelectionAwareTextManipulation()
198 beforeText = StringUtils::ToString(beforeSelection); in GetBeforeSelection()
218 selectedText = StringUtils::ToString(inSelection); in GetSelectedText()
238 selectedText = StringUtils in GetSelectedText()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/svg/parse/
H A Dsvg_animation.cpp30 StringUtils::TrimStr(time); in ConvertTimeStr()
32 if (StringUtils::EndWith(time, "ms")) { in ConvertTimeStr()
33 result = StringUtils::StringToDouble(std::string(time.begin(), time.end() - 2.0)); in ConvertTimeStr()
34 } else if (StringUtils::EndWith(time, "s")) { in ConvertTimeStr()
35 result = StringUtils::StringToDouble(std::string(time.begin(), time.end() - 1.0)) * 1000.0; in ConvertTimeStr()
36 } else if (StringUtils::EndWith(time, "m")) { in ConvertTimeStr()
37 result = StringUtils::StringToDouble(std::string(time.begin(), time.end() - 1.0)) * 60.0 * 1000.0; in ConvertTimeStr()
39 result = StringUtils::StringToDouble(str); in ConvertTimeStr()
97 attr.repeatCount = StringUtils::StringToInt(val); in SetAttr()
110 StringUtils in SetAttr()
[all...]
H A Dsvg_style.cpp32 StringUtils::DeleteAllMark(newStyle, '\n'); in ParseCssStyle()
33 StringUtils::DeleteAllMark(newStyle, '\r'); in ParseCssStyle()
34 StringUtils::DeleteAllMark(newStyle, '\t'); in ParseCssStyle()
35 StringUtils::DeleteAllMark(newStyle, ' '); in ParseCssStyle()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_field/
H A Dtext_editing_value_ng.h45 return StringUtils::ToWstring(text); in GetWideText()
69 return StringUtils::ToString(wideText.substr(0, caretPosition)); in GetValueBeforeCursor()
78 return StringUtils::ToString(wideText.substr(caretPosition)); in GetValueAfterCursor()
86 return StringUtils::ToString(wideText.substr(0, position)); in GetValueBeforePosition()
94 return StringUtils::ToString(wideText.substr(position)); in GetValueAfterPosition()
103 return StringUtils::ToString(wideText.substr(min, max - min)); in GetSelectedText()
H A Dcontent_controller.cpp66 auto wideTmp = StringUtils::ToWstring(tmp); in PreprocessString()
73 tmp = StringUtils::ToString(wideTmp); in PreprocessString()
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()
104 auto selectedValue = StringUtils::ToString(wideText.substr(startIndex, endIndex - startIndex)); in GetSelectedValue()
106 selectedValue = StringUtils::ToString( in GetSelectedValue()
202 content_ = StringUtils::ToString(subWstring); in FilterValue()
257 std::wstring wFilter = StringUtils::ToWstring(filter); in FilterWithRegex()
258 std::wstring wResult = StringUtils::ToWstring(result); in FilterWithRegex()
261 std::string errorText = StringUtils in FilterWithRegex()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/declaration/svg/
H A Dsvg_fe_gaussianblur_declaration.cpp43 if (!StringUtils::ParseStringToArray(val, parsedValues)) { in SetSpecializedValue()
50 StringUtils::TransformStrCase(key, StringUtils::TEXT_CASE_LOWERCASE); in SetSpecializedValue()
H A Dsvg_animate_declaration.cpp75 StringUtils::SplitStr(val, ";", attrs.values); in SetAnimateAttr()
83 StringUtils::StringSplitter(val, ';', attrs.keyTimes); in SetAnimateAttr()
91 StringUtils::SplitStr(val, ";", attrs.keySplines); in SetAnimateAttr()
112 StringUtils::StringSplitter(val, ';', attrs.keyPoints); in SetAnimateAttr()
/foundation/arkui/ace_engine/frameworks/core/components/svg/parse/
H A Dsvg_style.cpp32 StringUtils::DeleteAllMark(newStyle, '\n'); in ParseCssStyle()
33 StringUtils::DeleteAllMark(newStyle, '\r'); in ParseCssStyle()
34 StringUtils::DeleteAllMark(newStyle, '\t'); in ParseCssStyle()
35 StringUtils::DeleteAllMark(newStyle, ' '); in ParseCssStyle()
/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/
H A Dnode_timepicker_modifier.cpp80 StringUtils::StringSplitter(fontValues, DEFAULT_DELIMITER, res); in SetTimepickerTextStyle()
84 textStyle.fontSize = StringUtils::StringToCalcDimension(res[POS_0], false, DimensionUnit::FP); in SetTimepickerTextStyle()
91 textStyle.fontWeight = StringUtils::StringToFontWeight(res[POS_1]); in SetTimepickerTextStyle()
123 StringUtils::StringSplitter(fontValues, DEFAULT_DELIMITER, res); in SetTimepickerSelectedTextStyle()
127 textStyle.fontSize = StringUtils::StringToCalcDimension(res[POS_0], false, DimensionUnit::FP); in SetTimepickerSelectedTextStyle()
134 textStyle.fontWeight = StringUtils::StringToFontWeight(res[POS_1]); in SetTimepickerSelectedTextStyle()
167 StringUtils::StringSplitter(fontValues, DEFAULT_DELIMITER, res); in SetTimepickerDisappearTextStyle()
171 textStyle.fontSize = StringUtils::StringToCalcDimension(res[POS_0], false, DimensionUnit::FP); in SetTimepickerDisappearTextStyle()
178 textStyle.fontWeight = StringUtils::StringToFontWeight(res[POS_1]); in SetTimepickerDisappearTextStyle()
268 g_strValue = g_strValue + StringUtils in GetTimepickerSelectedTextStyle()
[all...]
H A Dnode_textpicker_modifier.cpp130 StringUtils::StringSplitter(fontValues, DEFAULT_DELIMITER, res); in SetTextPickerTextStyle()
134 textStyle.fontSize = StringUtils::StringToCalcDimension(res[POS_0], false, DimensionUnit::FP); in SetTextPickerTextStyle()
141 textStyle.fontWeight = StringUtils::StringToFontWeight(res[POS_1]); in SetTextPickerTextStyle()
173 StringUtils::StringSplitter(fontValues, DEFAULT_DELIMITER, res); in SetTextPickerSelectedTextStyle()
177 textStyle.fontSize = StringUtils::StringToCalcDimension(res[POS_0], false, DimensionUnit::FP); in SetTextPickerSelectedTextStyle()
184 textStyle.fontWeight = StringUtils::StringToFontWeight(res[POS_1]); in SetTextPickerSelectedTextStyle()
217 StringUtils::StringSplitter(fontValues, DEFAULT_DELIMITER, res); in SetTextPickerDisappearTextStyle()
221 textStyle.fontSize = StringUtils::StringToCalcDimension(res[POS_0], false, DimensionUnit::FP); in SetTextPickerDisappearTextStyle()
228 textStyle.fontWeight = StringUtils::StringToFontWeight(res[POS_1]); in SetTextPickerDisappearTextStyle()
290 StringUtils in SetTextPickerRangeStr()
[all...]
H A Dnode_date_picker_modifier.cpp57 g_strValue + StringUtils::ToString(pickerTextStyle.fontWeight.value_or(FontWeight::W100)) + ";"; in GetSelectedTextStyle()
59 g_strValue = g_strValue + StringUtils::ToStringNDK(pickerTextStyle.fontStyle.value_or(FontStyle::NORMAL)); in GetSelectedTextStyle()
77 StringUtils::StringSplitter(fontValues, DEFAULT_DELIMITER, res); in SetSelectedTextStyle()
81 textStyle.fontSize = StringUtils::StringToCalcDimension(res[POS_0], false, DimensionUnit::FP); in SetSelectedTextStyle()
88 textStyle.fontWeight = StringUtils::StringToFontWeight(res[POS_1]); in SetSelectedTextStyle()
134 g_strValue + StringUtils::ToString(pickerTextStyle.fontWeight.value_or(FontWeight::W100)) + ";"; in GetDatePickerTextStyle()
136 g_strValue = g_strValue + StringUtils::ToStringNDK(pickerTextStyle.fontStyle.value_or(FontStyle::NORMAL)); in GetDatePickerTextStyle()
154 StringUtils::StringSplitter(fontValues, DEFAULT_DELIMITER, res); in SetDatePickerTextStyle()
158 textStyle.fontSize = StringUtils::StringToCalcDimension(res[POS_0], false, DimensionUnit::FP); in SetDatePickerTextStyle()
165 textStyle.fontWeight = StringUtils in SetDatePickerTextStyle()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/span/
H A Dmutable_span_string.cpp24 return static_cast<int32_t>(StringUtils::ToWstring(str).length()); in GetWStringLength()
139 auto wContent = StringUtils::ToWstring((*it)->content); in HandleSpanOperation()
140 auto wOther = StringUtils::ToWstring(other); in HandleSpanOperation()
151 (*it)->content = StringUtils::ToString(wOther + GetWideStringSubstr(wContent, length)); in HandleSpanOperation()
165 (*it)->content = StringUtils::ToString(wContent.substr(0, start - spanItemStart)); in HandleSpanOperation()
167 newSpan->content = StringUtils::ToString(wContent.substr(end - spanItemStart, spanItemEnd - end)); in HandleSpanOperation()
175 (*it)->content = StringUtils::ToString(wContent.substr(0, start - spanItemStart)); in HandleSpanOperation()
178 (*it)->content = StringUtils::ToString(GetWideStringSubstr(wContent, 0, start - spanItemStart) + wOther + in HandleSpanOperation()
183 (*it)->content = StringUtils::ToString(GetWideStringSubstr(wContent, end - spanItemStart)); in HandleSpanOperation()
219 auto wOther = StringUtils in ProcessSpanBaseList()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_v2/inspector/
H A Dgauge_composed_element.cpp59 return StringUtils::DoubleToString(renderProgress->GetValue()); in GetValue()
68 return StringUtils::DoubleToString(renderProgress->GetMaxValue()); in GetMaxValue()
77 return StringUtils::DoubleToString(renderProgress->GetMinValue()); in GetMinValue()
87 return StringUtils::DoubleToString(startAngle); in GetStartAngle()
97 return StringUtils::DoubleToString(endAngle); in GetEndAngle()
/foundation/distributeddatamgr/data_object/frameworks/innerkitsimpl/include/common/
H A Dstring_utils.h30 class StringUtils final {
32 StringUtils() = delete;
33 ~StringUtils() = delete;
53 LOG_ERROR("StringUtils:BytesToStrWithType get input len err."); in BytesToStrWithType()
/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/include/
H A Dstring_utils.h24 class StringUtils { class
50 StringUtils();
51 ~StringUtils();
/foundation/arkui/ace_engine/frameworks/core/animation/
H A Dsvg_animate.h82 StringUtils::SplitStr(paramStr, " ", params); in CubicCurveCreator()
87 double x1 = StringUtils::StringToDouble(params.at(0)); in CubicCurveCreator()
88 double y1 = StringUtils::StringToDouble(params.at(1)); in CubicCurveCreator()
89 double x2 = StringUtils::StringToDouble(params.at(2)); in CubicCurveCreator()
90 double y2 = StringUtils::StringToDouble(params.at(3)); in CubicCurveCreator()
102 return StringUtils::StringToDouble(from_); in GetStartValue()
122 return StringUtils::StringToDimension(from_); in GetStartValue()
136 return StringUtils::StringToDouble(to_); in GetEndValue()
138 return startValue + StringUtils::StringToDouble(by_); in GetEndValue()
160 return StringUtils in GetEndValue()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/navigation_bar/
H A Dnavigation_bar_component.cpp108 titleComposed_ = GenerateAccessibilityComposed(StringUtils::StringToInt(id_), "titleText", transform); in BuildTitle()
115 subTitleComposed_ = GenerateAccessibilityComposed(StringUtils::StringToInt(id_), "subTitleText", display); in BuildTitle()
158 GenerateAccessibilityComposed(StringUtils::StringToInt(id_), "optionButton", optionButton)); in MoveMenuItemsToBar()
175 container->AppendChild(GenerateAccessibilityComposed(StringUtils::StringToInt(id_), "moreButton", moreButton_)); in AddCollapseMenu()
204 titleComposed_ = GenerateAccessibilityComposed(StringUtils::StringToInt(id_), "select", transform); in BuildSelectPopup()
255 parent->AppendChild(GenerateAccessibilityComposed(StringUtils::StringToInt(id_), "startButton", startButton)); in BuildStartZone()
264 parent->AppendChild(GenerateAccessibilityComposed(StringUtils::StringToInt(id_), "backButton", backButton)); in BuildStartZone()
275 parent->AppendChild(GenerateAccessibilityComposed(StringUtils::StringToInt(id_), "image", logoIconImage.image)); in BuildLogo()
287 parent->AppendChild(GenerateAccessibilityComposed(StringUtils::StringToInt(id_), "endButton", endButton)); in BuildEndZone()
345 parent->AppendChild(GenerateAccessibilityComposed(StringUtils in BuildTitle()
[all...]
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/animator/
H A Dcj_animator.cpp70 StringUtils::StringSplitter(params, ',', paramsVector); in ParseOptionToMotion()
77 float velocity = StringUtils::StringToFloat(paramsVector[0]); in ParseOptionToMotion()
78 float mass = StringUtils::StringToFloat(paramsVector[1]); in ParseOptionToMotion()
79 float stiffness = StringUtils::StringToFloat(paramsVector[2]); in ParseOptionToMotion()
80 float damping = StringUtils::StringToFloat(paramsVector[3]); in ParseOptionToMotion()
/foundation/arkui/ace_engine/frameworks/core/components/text_span/
H A Drosen_render_text_span.cpp53 StringUtils::TransformStrCase(displayText, (int32_t)spanStyle_.GetTextCase()); in UpdateText()
55 builder.AddText(StringUtils::Str8ToStr16(displayText)); in UpdateText()
57 builder.AppendText(StringUtils::Str8ToStr16(displayText)); in UpdateText()
77 auto spanData = StringUtils::Str8ToStr16(spanComponent_->GetSpanData()); in UpdateTouchRegions()
/foundation/arkui/ace_engine/frameworks/core/components/indexer/
H A Dindexer_item_component.cpp40 text_ = AceType::MakeRefPtr<TextComponent>(StringUtils::Str16ToStr8(strLabel_)); in BuildItem()
87 std::u16string u16IndexKey = StringUtils::Str8ToStr16(indexKey); in IsCorrectItem()
150 StringUtils::Str16ToStr8(strSection_).c_str()); in AddIndexKeyForSharp()
230 StringUtils::Str16ToStr8(strSection_).c_str()); in RemoveIndexKeyForSharp()
264 StringUtils::Str16ToStr8(strLabel_).c_str(), StringUtils::Str16ToStr8(strSection_).c_str(), sectionIndex_); in PrintIndexerItem()

Completed in 18 milliseconds

12345678910>>...14