Home
last modified time | relevance | path

Searched refs:sourceString (Results 1 – 2 of 2) sorted by relevance

/base/update/updateservice/services/core/ability/utils/test/unittest/
Dstring_utils_test.cpp168 std::string sourceString = ""; variable
172 …EXPECT_EQ("default", StringUtils::SafeSubString(sourceString, beginIndex, endIndex, defaultString)…
183 std::string sourceString = "safeSubString Testing"; variable
187 …EXPECT_EQ("default", StringUtils::SafeSubString(sourceString, beginIndex, endIndex, defaultString)…
198 std::string sourceString = "safeSubString Testing"; variable
202 …EXPECT_EQ("default", StringUtils::SafeSubString(sourceString, beginIndex, endIndex, defaultString)…
213 std::string sourceString = "safeSubString Testing"; variable
217 …EXPECT_EQ("default", StringUtils::SafeSubString(sourceString, beginIndex, endIndex, defaultString)…
228 std::string sourceString = "safeSubString Testing"; variable
232 …EXPECT_EQ("ubString ", StringUtils::SafeSubString(sourceString, beginIndex, endIndex, defaultStrin…
[all …]
/base/update/updateservice/services/core/ability/utils/include/
Dstring_utils.h115 static void StringRemove(std::string &sourceString, const std::string &startString, in StringRemove() argument
118 if (sourceString.empty()) { in StringRemove()
121 std::string::size_type indexStart = sourceString.find(startString); in StringRemove()
123 std::string::size_type indexEnd = sourceString.find(endString, indexStart); in StringRemove()
125 std::string tmpString = sourceString.substr(0, indexStart) + in StringRemove()
126 sourceString.substr(indexEnd + endString.length(), sourceString.length()); in StringRemove()
127 sourceString = tmpString; in StringRemove()