Home
last modified time | relevance | path

Searched refs:Trim (Results 1 - 25 of 49) sorted by relevance

12

/foundation/window/window_manager/utils/test/unittest/
H A Dstring_util_test.cpp51 * @tc.name: StringUtil Trim
56 HWTEST_F(StringUtilTest, Trim, Function | SmallTest | Level1) in HWTEST_F()
58 ASSERT_EQ("", StringUtil::Trim("")); in HWTEST_F()
59 ASSERT_EQ("", StringUtil::Trim(" ")); in HWTEST_F()
60 ASSERT_EQ("123", StringUtil::Trim(" 123 ")); in HWTEST_F()
61 ASSERT_EQ("12 3", StringUtil::Trim(" 12 3 ")); in HWTEST_F()
/foundation/CastEngine/castengine_cast_plus_stream/src/rtsp/src/
H A Drtsp_parse.cpp67 unmatched.append(Utils::Trim(spiltStrings[index])); in ParseMsg()
79 CLOGD("Parse msg headers_ %{public}s %{public}s", Utils::Trim(Utils::ToLower(subStrL)).c_str(), in ParseMsg()
80 Utils::Trim(subStrR).c_str()); in ParseMsg()
81 msg.headers_.insert(std::make_pair(Utils::Trim(Utils::ToLower(subStrL)), Utils::Trim(subStrR))); in ParseMsg()
156 return Utils::Trim(leftStr); in GetTargetStr()
169 return Utils::Trim(strResult); in GetTargetStr()
/foundation/CastEngine/castengine_cast_framework/service/src/session/src/rtsp/src/
H A Drtsp_parse.cpp67 unmatched.append(Utils::Trim(spiltStrings[index])); in ParseMsg()
79 CLOGD("Parse msg headers_ %{public}s %{public}s", Utils::Trim(Utils::ToLower(subStrL)).c_str(), in ParseMsg()
80 Utils::Trim(subStrR).c_str()); in ParseMsg()
81 msg.headers_.insert(std::make_pair(Utils::Trim(Utils::ToLower(subStrL)), Utils::Trim(subStrR))); in ParseMsg()
156 return Utils::Trim(leftStr); in GetTargetStr()
169 return Utils::Trim(strResult); in GetTargetStr()
/foundation/multimedia/drm_framework/services/utils/
H A Ddrm_api_operation.cpp50 line = Trim(line); in LoadConfigurationFile()
66 std::string ConfigParser::Trim(const std::string &str) in Trim() function in OHOS::DrmStandard::ConfigParser
78 std::string key = Trim(line.substr(0, colonPos)); in ParseKeyValue()
79 std::string value = Trim(line.substr(colonPos + 1)); in ParseKeyValue()
129 line = Trim(line); in ParseReportConfig()
151 line = Trim(line); in ParseEvent()
173 line = Trim(line); in ParseEventConfig()
194 line = Trim(line); in ParseApiOperationManagement()
/foundation/CastEngine/castengine_wifi_display/services/protocol/rtsp/src/
H A Drtsp_common.cpp52 auto token = RtspCommon::Trim(line.substr(0, index)); in SplitParameter()
53 auto value = RtspCommon::Trim(line.substr(index + 1)); in SplitParameter()
68 std::string RtspCommon::Trim(const std::string &str) in Trim() function in OHOS::Sharing::RtspCommon
99 auto token = RtspCommon::Trim(lines[i].substr(0, index)); in ParseMessage()
100 auto value = RtspCommon::Trim(lines[i].substr(index + 1)); in ParseMessage()
/foundation/multimedia/av_codec/test/unittest/http_source_test/
H A Ddownloader_unit_test.cpp111 EXPECT_EQ(Trim(input), expected); in HWTEST_F()
118 EXPECT_EQ(Trim(input), expected); in HWTEST_F()
125 EXPECT_EQ(Trim(input), expected); in HWTEST_F()
132 EXPECT_EQ(Trim(input), expected); in HWTEST_F()
139 EXPECT_EQ(Trim(input), expected); in HWTEST_F()
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/include/utils/
H A Dconstant.h66 static void Trim(T &s);
94 void Constant::Trim(T &s) in Trim() function in OHOS::DistributedData::Constant
104 Trim(s); in TrimCopy()
/foundation/graphic/graphic_3d/lume/LumeEngine/src/io/
H A Drofs_filesystem.cpp153 string_view Trim(string_view path) in Trim() function
195 const auto& parentDir = Trim(path.substr(0, pathLength)); in RoFileSystem()
217 directories_[Trim(path.substr(0, pathLength))].push_back(move(entry)); in RoFileSystem()
225 const string_view t = Trim(uri); in GetEntry()
242 auto it = files_.find(Trim(path)); in OpenFile()
261 const string_view t = Trim(path); in OpenDirectory()
/foundation/graphic/graphic_3d/lume/Lume_3D/src/util/
H A Dstring_util.h66 inline size_t Trim(BASE_NS::string_view& string) in Trim() function
83 if (Trim(found) > 0) { in Split()
/foundation/window/window_manager/utils/src/
H A Dsys_cap_util.cpp69 return StringUtil::Trim(bundleName); in GetBundleName()
79 return StringUtil::Trim(info.processName); in GetProcessName()
H A Dstring_util.cpp20 std::string StringUtil::Trim(std::string s) in Trim() function in OHOS::Rosen::StringUtil
/foundation/window/window_manager/utils/include/
H A Dstring_util.h25 static std::string Trim(std::string s);
/foundation/distributeddatamgr/kv_store/kvstoremock/distributeddb/distributeddataservice/adapter/autils/
H A Dconstant.h65 static void Trim(T &s);
159 void Constant::Trim(T &s) in Trim() function in OHOS::DistributedKv::Constant
185 Trim(s); in TrimCopy()
/foundation/arkui/ace_engine_lite/frameworks/src/core/base/
H A Dstring_util.h31 static char *Trim(char *sequence);
/foundation/CastEngine/castengine_wifi_display/services/utils/
H A Dutils.h86 std::string Trim(std::string &&s, const std::string &chars = " \r\n\t");
87 std::string &Trim(std::string &s, const std::string &chars = " \r\n\t");
/foundation/graphic/graphic_3d/lume/LumeRender/src/util/
H A Dstring_util.h68 inline size_t Trim(BASE_NS::string_view& string) in Trim() function
85 if (Trim(found) > 0) { in Split()
/foundation/graphic/graphic_3d/lume/LumeEngine/src/util/
H A Dstring_util.h69 inline size_t Trim(BASE_NS::string_view& string) in Trim() function
86 if (Trim(found) > 0) { in Split()
/foundation/ability/ability_runtime/tools/aa/src/
H A Daccessibility_ability_utils.cpp119 std::string valueStr = Trim(stateString); in IsValidStateString()
133 std::string valueStr = Trim(intString); in IsValidIntString()
162 std::string& AccessibilityUtils::Trim(std::string& inputStr) in Trim() function in OHOS::AAFwk::AccessibilityUtils
/foundation/ability/ability_runtime/tools/aa/include/
H A Daccessibility_ability_utils.h35 static std::string& Trim(std::string& inputStr);
/foundation/multimedia/av_codec/services/media_engine/plugins/source/http_source/download/network_client/
H A Dhttp_curl_client.cpp72 std::string Trim(std::string str) in Trim() function
107 if (Trim(regex).empty()) { in IsRegexValid()
138 if (Trim(exclusions).empty()) { in IsExcluded()
144 if (end - start > 0 && IsMatch(str, Trim(exclusions.substr(start, end - start)))) { in IsExcluded()
150 return IsMatch(str, Trim(exclusions.substr(start))); in IsExcluded()
/foundation/communication/netstack/utils/common_utils/src/
H A Dnetstack_common_utils.cpp210 std::string Trim(std::string str) in Trim() function
269 if (Trim(regex).empty()) { in IsRegexValid()
353 if (Trim(exclusions).empty()) { in IsExcluded()
359 if (end - start > 0 && IsMatch(str, Trim(exclusions.substr(start, end - start)))) { in IsExcluded()
365 return IsMatch(str, Trim(exclusions.substr(start))); in IsExcluded()
/foundation/ai/intelligent_voice_framework/utils/
H A Dstring_util.cpp133 Trim(first); in SplitLineToPair()
134 Trim(second); in SplitLineToPair()
H A Dstring_util.h35 static void Trim(std::string &str);
74 inline void StringUtil::Trim(std::string &str) in Trim() function in OHOS::IntellVoiceUtils::StringUtil
/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/include/
H A Dstring_utils.h38 static std::string Trim(const std::string &source) in Trim() function in OHOS::NativeRdb::StringUtils
/foundation/ability/ability_runtime/tools/test/unittest/aa/
H A Daccessibility_ability_utils_test.cpp443 * @tc.name: Trim
444 * @tc.desc: Trim Null String
449 auto result = AccessibilityUtils::Trim(inputStr); in HWTEST_F()
455 * @tc.name: Trim
456 * @tc.desc: Trim String Success
461 auto result = AccessibilityUtils::Trim(inputStr); in HWTEST_F()
467 * @tc.name: Trim
468 * @tc.desc: Trim String Success
473 auto result = AccessibilityUtils::Trim(inputStr); in HWTEST_F()
479 * @tc.name: Trim
[all...]

Completed in 10 milliseconds

12