/foundation/communication/dhcp/services/dhcp_server/src/ |
H A D | dhcp_binding.cpp | 106 static void ReleaseStrings(char **strs) in ReleaseStrings() argument 108 if (strs == nullptr) { in ReleaseStrings() 112 while (strs[i] != nullptr) { in ReleaseStrings() 113 free(strs[i]); in ReleaseStrings() 114 strs[i] = nullptr; in ReleaseStrings() 117 free(strs); in ReleaseStrings() 118 strs = nullptr; in ReleaseStrings() 140 char **strs = (char **)calloc(num + 1, sizeof(char *)); in SplitString() local 141 if (strs == nullptr) { in SplitString() 149 strs[nu in SplitString() 172 char **strs = SplitString(buf, " "); ParseAddressBinding() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/ |
H A D | grid_utils.cpp | 31 std::vector<std::string> strs; in ParseArgs() local 32 StringUtils::StringSplitter(args, ' ', strs); in ParseArgs() 34 size_t rowArgSize = strs.size(); in ParseArgs() 36 current = strs[i]; in ParseArgs() 38 if (strs[i] == std::string(UNIT_AUTO)) { in ParseArgs()
|
/foundation/multimedia/media_library/frameworks/services/media_dfx/src/ |
H A D | dfx_utils.cpp | 41 string strs = input + pattern; in Split() local 42 size_t pos = strs.find(pattern); in Split() 43 while (pos != strs.npos) { in Split() 44 string temp = strs.substr(0, pos); in Split() 46 strs = strs.substr(pos + 1, strs.size()); in Split() 47 pos = strs.find(pattern); in Split()
|
/foundation/arkui/ace_engine/frameworks/core/components/common/layout/ |
H A D | templates_parser.cpp | 266 std::vector<std::string> strs; in ParseArgs() local 269 StringUtils::StringSplitter(handledArg, ' ', strs); in ParseArgs() 270 if (!strs.empty() && strs[0] == UNIT_AUTO_FILL) { in ParseArgs() 271 return ParseAutoFill(strs, size, gap); in ParseArgs() 274 for (const auto& str : strs) { in ParseArgs() 290 double sizeLeft = size - (static_cast<int32_t>(strs.size()) - 1) * gap; in ParseArgs() 291 double sizeNoGap = size - (static_cast<int32_t>(strs.size()) - 1) * gap; in ParseArgs() 294 for (const auto& str : strs) { in ParseArgs() 337 std::vector<double> TemplatesParser::ParseAutoFill(const std::vector<std::string>& strs, doubl argument [all...] |
H A D | templates_parser.h | 51 static std::vector<double> ParseAutoFill(const std::vector<std::string>& strs, double size, double gap);
|
/foundation/communication/bluetooth_service/services/bluetooth/service/src/ble/ |
H A D | ble_utils.cpp | 37 std::string strs; in ConvertIntToHexString() local 40 strs += IntToHexString(temp); in ConvertIntToHexString() 42 return strs; in ConvertIntToHexString()
|
/foundation/communication/bluetooth_service/services/bluetooth/service/src/classic/ |
H A D | classic_utils.cpp | 36 std::string strs; in ConvertIntToHexString() local 39 strs += IntToHexString(temp); in ConvertIntToHexString() 41 return strs; in ConvertIntToHexString()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/property/ |
H A D | templates_parser.cpp | 287 std::pair<std::vector<double>, double> ParseAutoFill(const std::vector<std::string>& strs, double size, double gap) in ParseAutoFill() argument 290 if (strs.size() <= 1) { in ParseAutoFill() 293 auto allocatedSize = size - (strs.size() - 2) * gap; // size() - 2 means 'auto-fill' should be erased. in ParseAutoFill() 300 for (const auto& str : strs) { in ParseAutoFill() 346 std::vector<std::string> strs; in ParseArgsWithoutAutoFill() local 349 StringUtils::StringSplitter(handledArg, ' ', strs); in ParseArgsWithoutAutoFill() 350 if (!strs.empty() && strs[0] == UNIT_AUTO_FILL) { in ParseArgsWithoutAutoFill() 351 return ParseAutoFill(strs, size, gap); in ParseArgsWithoutAutoFill() 354 for (const auto& str : strs) { in ParseArgsWithoutAutoFill() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/waterflow/layout/ |
H A D | water_flow_layout_utils.cpp | 28 std::vector<std::string> strs; in PreParseArgs() local 29 StringUtils::StringSplitter(args, ' ', strs); in PreParseArgs() 31 size_t rowArgSize = strs.size(); in PreParseArgs() 33 current = strs[i]; in PreParseArgs() 35 if (strs[i] == std::string(UNIT_AUTO)) { in PreParseArgs()
|
/foundation/deviceprofile/device_info_manager/common/src/utils/ |
H A D | profile_utils.cpp | 300 std::string strs = str + splits; in SplitString() local 301 size_t pos = strs.find(splits); in SplitString() 304 while (pos != strs.npos) { in SplitString() 305 std::string temp = strs.substr(0, pos); in SplitString() 307 strs = strs.substr(pos + step, strs.size()); in SplitString() 308 pos = strs.find(splits); in SplitString() 313 std::string ProfileUtils::JoinString(const std::vector<std::string>& strs, const std::string& delimiter) in JoinString() argument 316 if (strs in JoinString() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/grid_layout/ |
H A D | render_grid_layout.cpp | 414 std::vector<std::string> strs; 415 StringUtils::StringSplitter(rowsArgs_, ' ', strs); 417 auto rowArgSize = strs.size(); 419 current = strs[i]; 420 if (strs[i] == std::string(UNIT_AUTO)) { 436 std::vector<std::string> strs; 437 StringUtils::StringSplitter(colsArgs_, ' ', strs); 439 auto colArgSize = strs.size(); 441 current = strs[i]; 442 if (strs[ [all...] |
/foundation/ability/ability_base/interfaces/kits/native/extractortool/src/ |
H A D | file_path_utils.cpp | 93 std::string JoinString(const std::vector<std::string>& strs, char sep, size_t startIndex) in JoinString() argument 96 for (size_t index = startIndex; index < strs.size(); ++index) { in JoinString() 97 if (!strs[index].empty()) { in JoinString() 98 out.append(strs[index]) += sep; in JoinString()
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/utils/ |
H A D | jsi_module_searcher.cpp | 90 std::string JoinString(const std::vector<std::string>& strs, const char* sep, size_t startIndex = 0) in JoinString() argument 93 for (size_t index = startIndex; index < strs.size(); ++index) { in JoinString() 94 if (!strs[index].empty()) { in JoinString() 95 out.append(strs[index]) += sep; in JoinString()
|
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/zip/napi/common/ |
H A D | napi_value.cpp | 363 NapiValue NapiValue::CreateArrayString(napi_env env, const vector<string> &strs) in CreateArrayString() argument 367 for (size_t i = 0; i < strs.size(); i++) { in CreateArrayString() 369 napi_create_string_utf8(env, strs[i].c_str(), strs[i].length(), &filename); in CreateArrayString()
|
/foundation/communication/netstack/test/fuzztest/socket/fuzztest/tlssocket_fuzzer/ |
H A D | tls_socket_fuzzer.cpp | 353 std::vector<std::string> strs; in SetAlpnProtocolsFuzzTest() local 354 strs.reserve(count); in SetAlpnProtocolsFuzzTest() 356 strs.emplace_back(str); in SetAlpnProtocolsFuzzTest() 359 option.SetAlpnProtocols(strs); in SetAlpnProtocolsFuzzTest()
|
/foundation/filemanagement/file_api/interfaces/kits/js/src/common/napi/ |
H A D | n_val.cpp | 348 NVal NVal::CreateArrayString(napi_env env, vector<string> strs) in CreateArrayString() argument 352 for (size_t i = 0; i < strs.size(); i++) { in CreateArrayString() 354 napi_create_string_utf8(env, strs[i].c_str(), strs[i].length(), &filename); in CreateArrayString()
|
H A D | n_val.h | 70 static NVal CreateArrayString(napi_env env, std::vector<std::string> strs);
|
/foundation/filemanagement/file_api/utils/filemgmt_libn/src/ |
H A D | n_val.cpp | 378 NVal NVal::CreateArrayString(napi_env env, vector<string> strs) in CreateArrayString() argument 382 for (size_t i = 0; i < strs.size(); i++) { in CreateArrayString() 384 napi_create_string_utf8(env, strs[i].c_str(), strs[i].length(), &filename); in CreateArrayString()
|
/foundation/ability/ability_runtime/frameworks/simulator/ability_simulator/include/ |
H A D | common_func.h | 40 static void ConvertStringArrays(napi_env env, const std::vector<std::string> &strs, napi_value value);
|
/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);
|
/foundation/bundlemanager/bundle_framework_lite/frameworks/bundle_lite/include/ |
H A D | convert_utils.h | 29 static bool ConvertStringToBundleInfos(const char *strs, BundleInfo **bundleInfo, uint32_t numOfBundleInfo,
|
/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/ |
H A D | medialibrary_analysis_album_operations.cpp | 619 string strs = target + pattern; in ReorderTagId() local 620 size_t pos = strs.find(pattern); in ReorderTagId() 621 while (pos != strs.npos) { in ReorderTagId() 622 string groupTag = strs.substr(0, pos); in ReorderTagId() 623 strs = strs.substr(pos + 1, strs.size()); in ReorderTagId() 624 pos = strs.find(pattern); in ReorderTagId()
|
/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/src/ |
H A D | bundle_ms_feature.cpp | 289 char *strs = ConvertUtils::ConvertBundleInfosToString(&bundleInfos, lengthOfBundleInfo); in HandleGetBundleInfos() local 290 if (strs == nullptr) { in HandleGetBundleInfos() 295 if (strlen(strs) > MAX_IPC_STRING_LENGTH) { in HandleGetBundleInfos() 302 WriteString(reply, strs); in HandleGetBundleInfos() 629 HILOG_ERROR(HILOG_MODULE_APP, "BundleMS HandleGetBundleInfosByIndex strs is nullptr"); in HandleGetBundleInfosByIndex()
|
/foundation/bundlemanager/bundle_framework_lite/frameworks/bundle_lite/src/ |
H A D | convert_utils.cpp | 107 char *strs = cJSON_PrintUnformatted(roots); in ConvertBundleInfosToString() local 109 return strs; in ConvertBundleInfosToString() 168 bool ConvertUtils::ConvertStringToBundleInfos(const char *strs, BundleInfo **bundleInfo, uint32_t numOfBundleInfo, in ConvertStringToBundleInfos() argument 171 if (strs == nullptr || bundleInfo == nullptr || numOfBundleInfo == 0) { in ConvertStringToBundleInfos() 174 cJSON *roots = cJSON_ParseWithLength(strs, buffSize); in ConvertStringToBundleInfos()
|
/foundation/communication/wifi/wifi/test/wifi_utils/unittest/ |
H A D | wifi_common_util_test.cpp | 93 std::string strs = "00"; in HWTEST_F() local 94 SsidAnonymize(strs); in HWTEST_F()
|