Home
last modified time | relevance | path

Searched refs:inputString (Results 1 – 7 of 7) sorted by relevance

/base/hiviewdfx/hiview/base/utility/
Dstring_util.cpp132 KeyValuePair GetKeyValueByString(size_t &start, const std::string &inputString) in GetKeyValueByString() argument
136 auto length = inputString.size(); in GetKeyValueByString()
138 if (inputString[start] == INDICATE_VALUE_CHAR) { in GetKeyValueByString()
142 key.append(1, inputString[start]); in GetKeyValueByString()
147 if (inputString[start] == KEY_VALUE_END_CHAR) { in GetKeyValueByString()
150 if (start + 1 < length && inputString[start + 1] == KEY_VALUE_END_CHAR) { in GetKeyValueByString()
151 value.append(1, inputString[start]); in GetKeyValueByString()
159 if (inputString[start] == INDICATE_VALUE_CHAR && start + 1 < length && in GetKeyValueByString()
160 inputString[start + 1] == INDICATE_VALUE_CHAR) { in GetKeyValueByString()
162 value.append(1, inputString[start]); in GetKeyValueByString()
[all …]
/base/telephony/core_service/services/network_search/src/
Dnetwork_utils.cpp164 std::vector<std::string> NetworkUtils::SplitString(const std::string &inputString, const std::strin… in SplitString() argument
167 if (inputString.empty()) { in SplitString()
173 while ((position = inputString.find(flag, start)) != std::string::npos) { in SplitString()
174 result.push_back(inputString.substr(start, position - start)); in SplitString()
177 if (start != inputString.size()) { in SplitString()
178 result.push_back(inputString.substr(start, inputString.size() - start)); in SplitString()
/base/hiviewdfx/hiview/base/utility/include/
Dstring_util.h108 KeyValuePair GetKeyValueByString(size_t &start, const std::string &inputString);
/base/telephony/core_service/services/network_search/include/
Dnetwork_utils.h49 …static std::vector<std::string> SplitString(const std::string &inputString, const std::string &fla…
/base/notification/distributed_notification_service/services/ans/test/unittest/notification_preferences_database_branch_test/
Dnotification_preferences_database_branch_test.cpp745 std::string inputString = ""; variable
746 EXPECT_EQ(preferncesDB_->FindLastString(findString, inputString), "");
/base/notification/distributed_notification_service/services/ans/include/
Dnotification_preferences_database.h182 std::string FindLastString(const std::string &findString, const std::string &inputString) const;
/base/notification/distributed_notification_service/services/ans/src/
Dnotification_preferences_database.cpp911 const std::string &findString, const std::string &inputString) const in FindLastString()
916 keyStr = inputString.substr(pos); in FindLastString()