Home
last modified time | relevance | path

Searched refs:sep (Results 1 – 19 of 19) sorted by relevance

/foundation/multimodalinput/input/util/common/test/
Dutil_test.cpp174 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/
Dstring_ex.cpp54 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/
Dnetstack_common_utils.cpp28 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/
Ddisk_utils.cpp126 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/
Dnetstack_common_utils.h23 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/
Dnetmanager_base_common_utils.h24 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/
Dhttp_request_utils.cpp25 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/
Dmock_string_ex_test.cpp96 const string sep = ""; variable
100 SplitStr(str, sep, strs, canEmpty, needTrim);
/foundation/arkui/ace_engine/frameworks/base/utils/
Dstring_utils.h407 …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/
Dutil.h43 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/
Dstring_ex.h39 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/
Dfile_path_utils_test.cpp154 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/
Dhttp_request_utils.h38 std::vector<std::string> Split(const std::string &str, const std::string &sep);
/foundation/multimodalinput/input/util/common/src/
Dutil.cpp155 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/
Davmetadatahelper_demo.cpp185 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/
Dfile_path_utils.h26 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/
DFileExtensionAbility.ts82 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/
Djsi_module_searcher.cpp91 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/
Dfile_path_utils.cpp93 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()