/foundation/multimodalinput/input/util/common/test/ |
D | util_test.cpp | 174 const std::string sep = "sdf_wef_1.sss"; variable 176 StringToken(str, sep, token); 188 const std::string sep; variable 190 StringToken(str, sep, token); 202 const std::string sep = { 2 }; variable 204 StringToken(str, sep, token); 216 const std::string sep; variable 218 StringSplit(str, sep, vecList);
|
/foundation/multimedia/image_framework/mock/native/src/ |
D | string_ex.cpp | 54 void SplitStr(const string& str, const string& sep, vector<string>& strs, bool canEmpty, bool needT… in SplitStr() argument 60 string::size_type pos = strTmp.find(sep); in SplitStr() 61 if (string::npos == pos || sep.empty()) { in SplitStr() 72 strTmp = strTmp.substr(sep.size() + pos, strTmp.size() - sep.size() - pos); in SplitStr()
|
/foundation/communication/netstack/utils/common_utils/src/ |
D | netstack_common_utils.cpp | 28 std::vector<std::string> Split(const std::string &str, const std::string &sep) in Split() argument 33 auto pos = s.find(sep); in Split() 39 s = s.substr(pos + sep.size()); in Split() 44 std::vector<std::string> Split(const std::string &str, const std::string &sep, size_t size) in Split() argument 54 auto pos = s.find(sep); in Split() 60 s = s.substr(pos + sep.size()); in Split()
|
/foundation/filemanagement/storage_service/services/storage_daemon/utils/ |
D | disk_utils.cpp | 126 size_t sep = string::npos; in GetBlkidDataByCmd() local 127 sep = output[0].find_first_of("\n"); in GetBlkidDataByCmd() 128 if (sep != string::npos) in GetBlkidDataByCmd() 129 output[0].resize(sep); in GetBlkidDataByCmd()
|
/foundation/communication/netstack/utils/common_utils/include/ |
D | netstack_common_utils.h | 23 std::vector<std::string> Split(const std::string &str, const std::string &sep); 25 std::vector<std::string> Split(const std::string &str, const std::string &sep, size_t size);
|
/foundation/communication/netmanager_base/utils/common_utils/include/ |
D | netmanager_base_common_utils.h | 24 inline std::vector<std::string> Split(const std::string &str, const std::string &sep) in Split() argument 29 size_t pos = s.find(sep); in Split() 35 s = s.substr(pos + sep.size()); in Split()
|
/foundation/communication/netstack/frameworks/js/builtin/fetch/src/ |
D | http_request_utils.cpp | 25 std::vector<std::string> Split(const std::string &str, const std::string &sep) in Split() argument 30 auto pos = s.find(sep); in Split() 36 s = s.substr(pos + sep.size()); in Split()
|
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/ |
D | mock_string_ex_test.cpp | 96 const string sep = ""; variable 100 SplitStr(str, sep, strs, canEmpty, needTrim);
|
/foundation/arkui/ace_engine/frameworks/base/utils/ |
D | string_utils.h | 407 …const std::string& str, const std::string& sep, std::vector<std::string>& out, bool needTrim = tru… 411 if (str.empty() || sep.empty()) { 417 std::string::size_type pos = str.find_first_of(sep, startPos); 423 startPos = pos + sep.size(); 424 pos = str.find_first_of(sep, startPos); 433 inline void SplitStr(const std::string& str, const std::string& sep, std::vector<Dimension>& out, b… 436 if (str.empty() || sep.empty()) { 441 std::string::size_type pos = str.find_first_of(sep, startPos); 449 startPos = pos + sep.size(); 450 pos = str.find_first_of(sep, startPos);
|
/foundation/multimodalinput/input/util/common/include/ |
D | util.h | 43 size_t StringToken(std::string &str, const std::string &sep, std::string &token); 44 size_t StringSplit(const std::string &str, const std::string &sep, std::vector<std::string> &vecLis… 45 std::string IdsListToString(const std::vector<int32_t> &list, const std::string &sep = ", ");
|
/foundation/multimedia/image_framework/mock/native/include/ |
D | string_ex.h | 39 void SplitStr(const std::string& str, const std::string& sep, std::vector<std::string>& strs,
|
/foundation/ability/ability_runtime/test/unittest/file_path_utils_test/ |
D | file_path_utils_test.cpp | 154 char sep = ':'; variable 156 std::string result = JoinString(strVector, sep, startIndex); 169 char sep = ':'; variable 171 std::string result = JoinString(strVector, sep, startIndex); 184 char sep = ':'; variable 186 std::string result = JoinString(strVector, sep, startIndex);
|
/foundation/communication/netstack/frameworks/js/builtin/fetch/include/ |
D | http_request_utils.h | 38 std::vector<std::string> Split(const std::string &str, const std::string &sep);
|
/foundation/multimodalinput/input/util/common/src/ |
D | util.cpp | 155 size_t StringToken(std::string &str, const std::string &sep, std::string &token) in StringToken() argument 163 for (auto &item : sep) { in StringToken() 175 return StringToken(str, sep, token); in StringToken() 184 size_t StringSplit(const std::string &str, const std::string &sep, std::vector<std::string>&vecList) in StringSplit() argument 189 while (str.npos != (size = StringToken(strs, sep, token))) { in StringSplit() 195 std::string IdsListToString(const std::vector<int32_t> &list, const std::string &sep) in IdsListToString() argument 199 str += std::to_string(it) + sep; in IdsListToString() 202 str.resize(str.size() - sep.size()); in IdsListToString()
|
/foundation/multimedia/player_framework/test/nativedemo/avmetadatahelper/ |
D | avmetadatahelper_demo.cpp | 185 void MySplitStr(const std::string_view& str, const std::string_view &sep, std::queue<std::string_vi… in MySplitStr() argument 190 std::string::size_type pos = strTmp.find(sep); in MySplitStr() 191 if (pos == std::string::npos || sep.empty()) { in MySplitStr() 202 strTmp = strTmp.substr(sep.size() + pos, strTmp.size() - sep.size() - pos); in MySplitStr()
|
/foundation/ability/ability_runtime/frameworks/native/runtime/utils/include/ |
D | file_path_utils.h | 26 std::string JoinString(const std::vector<std::string>& strs, char sep, size_t startIndex = 0);
|
/foundation/filemanagement/user_file_service/services/file_extension_hap/entry/src/main/ets/FileExtensionAbility/ |
D | FileExtensionAbility.ts | 82 let sep = '://'; 83 let arr = uri.split(sep); 87 let path = uri.replace(arr[0] + sep, '');
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/utils/ |
D | jsi_module_searcher.cpp | 91 std::string JoinString(const std::vector<std::string>& strs, const char* sep, size_t startIndex = 0) in JoinString() argument 96 out.append(strs[index]) += sep; in JoinString()
|
/foundation/ability/ability_runtime/frameworks/native/runtime/utils/src/ |
D | file_path_utils.cpp | 93 std::string JoinString(const std::vector<std::string>& strs, char sep, size_t startIndex) in JoinString() argument 98 out.append(strs[index]) += sep; in JoinString()
|