/test/testfwk/developer_test/aw/python/distributed/common/ |
H A D | common.py | 33 findkey = os.sep + "tests" + os.sep 38 pos1 = subpath.find(os.sep) 40 subpath = subpath[pos1 + len(os.sep):] 65 pos = phone_res_dir.find(os.sep + "tests" + os.sep)
|
H A D | drivers.py | 72 file_dir = suite_file.split("distributedtest")[1].strip(os.sep).split(os.sep)[0] 123 dst_dir = case_dir.split("distributedtest")[1].strip(os.sep)
|
/foundation/communication/wifi/wifi/relation_services/wifi_hal_service/wifi_hal_module/wpa_supplicant_hal/wpa_sta_hal/ |
H A D | wifi_common_hal.c | 56 char *sep = "*"; in SendComCmd() local 57 char *retbuf = strtok(buf, sep); in SendComCmd() 58 retbuf = strtok(NULL, sep); in SendComCmd()
|
/test/testfwk/developer_test/src/core/testcase/ |
H A D | testcase_manager.py | 70 suitfile_subpath = suitfile_subpath.strip(os.sep)
73 temp_list = suitfile_subpath.split(os.sep)
82 partname + os.sep + testmodule + os.sep):
86 if suitfile_subpath.startswith(partname + os.sep):
242 os.sep + "resource" + os.sep):
|
/foundation/ai/intelligent_voice_framework/utils/ |
H A D | string_util.cpp | 34 void StringUtil::Split(const string &str, const string &sep, vector<string> &res) in Split() argument 39 size_t findPos = tmpStr.find(sep, startPos); in Split() 44 startPos = findPos + sep.length(); in Split() 45 findPos = tmpStr.find(sep, startPos); in Split()
|
/foundation/filemanagement/storage_service/services/storage_daemon/utils/ |
H A D | disk_utils.cpp | 135 size_t sep = output[0].find_first_of("\n"); in GetBlkidDataByCmd() local 136 if (sep != string::npos) in GetBlkidDataByCmd() 137 output[0].resize(sep); in GetBlkidDataByCmd()
|
/foundation/communication/netstack/frameworks/js/builtin/fetch/src/ |
H A 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/audio_framework/services/audio_policy/server/src/service/config/ |
H A D | audio_usage_strategy_parser.cpp | 114 std::vector<std::string> AudioUsageStrategyParser::split(const std::string &line, const std::string &sep) in split() argument 120 pos = line.find(sep, temp); in split() 125 temp = pos + sep.length(); in split()
|
H A D | audio_strategy_router_parser.cpp | 120 std::vector<std::string> AudioStrategyRouterParser::split(const std::string &line, const std::string &sep) in split() argument 126 pos = line.find(sep, temp); in split() 131 temp = pos + sep.length(); in split()
|
H A D | audio_device_parser.cpp | 199 std::vector<std::string> split(const std::string &line, const std::string &sep) in split() argument 205 pos = line.find(sep, temp); in split() 210 temp = pos + sep.length(); in split()
|
/foundation/communication/netmanager_base/utils/common_utils/include/ |
H A D | netmanager_base_common_utils.h | 35 inline std::vector<std::string> Split(const std::string &str, const std::string &sep) in Split() argument 40 size_t pos = s.find(sep); in Split() 46 s = s.substr(pos + sep.size()); in Split()
|
/foundation/multimodalinput/input/util/common/src/ |
H A D | util.cpp | 109 static size_t StringToken(std::string &str, const std::string &sep, std::string &token) in StringToken() argument 117 for (auto &item : sep) { in StringToken() 129 return StringToken(str, sep, token); in StringToken() 138 size_t StringSplit(const std::string &str, const std::string &sep, std::vector<std::string> &vecList) in StringSplit() argument 143 while (str.npos != (size = StringToken(strs, sep, token))) { in StringSplit() 149 std::string IdsListToString(const std::vector<int32_t> &list, const std::string &sep) in IdsListToString() argument 153 str += std::to_string(it) + sep; in IdsListToString() 156 str.resize(str.size() - sep.size()); in IdsListToString()
|
/foundation/arkui/ace_engine/frameworks/base/utils/ |
H A D | string_utils.h | 632 const std::string& str, const std::string& sep, std::vector<std::string>& out, bool needTrim = true) in SplitStr() 636 if (str.empty() || sep.empty()) { in SplitStr() 642 std::string::size_type pos = str.find_first_of(sep, startPos); in SplitStr() 648 startPos = pos + sep.size(); in SplitStr() 649 pos = str.find_first_of(sep, startPos); in SplitStr() 658 inline void SplitStr(const std::string& str, const std::string& sep, std::vector<Dimension>& out, bool needTrim = true) in SplitStr() argument 661 if (str.empty() || sep.empty()) { in SplitStr() 666 std::string::size_type pos = str.find_first_of(sep, startPos); in SplitStr() 674 startPos = pos + sep.size(); in SplitStr() 675 pos = str.find_first_of(sep, startPo in SplitStr() 631 SplitStr( const std::string& str, const std::string& sep, std::vector<std::string>& out, bool needTrim = true) SplitStr() argument [all...] |
/foundation/ability/ability_runtime/test/unittest/file_path_utils_test/ |
H A D | file_path_utils_test.cpp | 155 char sep = ':'; in HWTEST_F() local 157 std::string result = JoinString(strVector, sep, startIndex); in HWTEST_F() 170 char sep = ':'; in HWTEST_F() local 172 std::string result = JoinString(strVector, sep, startIndex); in HWTEST_F() 185 char sep = ':'; in HWTEST_F() local 187 std::string result = JoinString(strVector, sep, startIndex); in HWTEST_F()
|
/foundation/communication/netstack/utils/common_utils/src/ |
H A D | netstack_common_utils.cpp | 62 std::vector<std::string> Split(const std::string &str, const std::string &sep) in Split() argument 67 auto pos = s.find(sep); in Split() 73 s = s.substr(pos + sep.size()); in Split() 78 std::vector<std::string> Split(const std::string &str, const std::string &sep, size_t size) in Split() argument 88 auto pos = s.find(sep); in Split() 94 s = s.substr(pos + sep.size()); in Split()
|
/foundation/filemanagement/app_file_service/utils/src/b_json/ |
H A D | b_report_entity.cpp | 48 static vector<string> SplitStringByChar(const string &str, const char &sep) in SplitStringByChar() argument 55 if (str.rfind(sep) == str.size() - 1) { in SplitStringByChar() 56 newStr += sep; in SplitStringByChar() 60 while (getline(ss, res, sep)) { in SplitStringByChar()
|
/test/testfwk/developer_test/src/core/config/ |
H A D | resource_manager.py | 40 if current_dir.endswith(os.sep + "tests"): 95 dir_name_list = dir_path.rstrip(os.sep).split(os.sep) 174 src = src.replace("/", os.sep)
|
/test/testfwk/xdevice/plugins/ohos/src/ohos/drivers/ |
H A D | constants.py | 109 findkey = "%stests%s" % (os.sep, os.sep) 114 pos1 = subpath.find(os.sep) 116 subpath = subpath[pos1 + len(os.sep):]
|
/foundation/communication/netstack/utils/common_utils/include/ |
H A D | netstack_common_utils.h | 39 std::vector<std::string> Split(const std::string &str, const std::string &sep); 41 std::vector<std::string> Split(const std::string &str, const std::string &sep, size_t size);
|
/foundation/communication/netstack/frameworks/js/builtin/fetch/include/ |
H A D | http_request_utils.h | 38 std::vector<std::string> Split(const std::string &str, const std::string &sep);
|
/foundation/multimodalinput/input/util/common/include/ |
H A D | util.h | 50 size_t StringSplit(const std::string &str, const std::string &sep, std::vector<std::string> &vecList); 52 std::string IdsListToString(const std::vector<int32_t> &list, const std::string &sep = ", ");
|
/foundation/multimedia/audio_framework/services/audio_policy/server/include/service/config/ |
H A D | audio_strategy_router_parser.h | 66 std::vector<std::string> split(const std::string &line, const std::string &sep);
|
/foundation/filemanagement/app_file_service/tests/unittests/backup_utils/b_json/ |
H A D | b_report_entity_test.cpp | 130 char sep = ATTR_SEP;
in HWTEST_F() local 131 auto splits = SplitStringByChar(str, sep);
in HWTEST_F() 135 splits = SplitStringByChar(str, sep);
in HWTEST_F() 139 splits = SplitStringByChar(str, sep);
in HWTEST_F()
|
/test/testfwk/developer_test/src/core/driver/ |
H A D | lite_driver.py | 253 "unittest" + os.sep)[1].split(os.sep + "bin")[0] 254 if os.sep in sub_system_module: 255 sub_system = sub_system_module.split(os.sep)[0] 256 module_name = sub_system_module.split(os.sep)[1]
|
/foundation/ability/ability_base/interfaces/kits/native/extractortool/include/ |
H A D | file_path_utils.h | 26 std::string JoinString(const std::vector<std::string>& strs, char sep, size_t startIndex = 0);
|