Home
last modified time | relevance | path

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

/ohos5.0/base/startup/init/test/unittest/innerkits/
H A Dstrutil_unittest.cpp42 ret = OH_StrArrayGetIndex(strArray, NULL, 0);
46 ret = OH_StrArrayGetIndex(strArray, "a1", 0);
48 ret = OH_StrArrayGetIndex(strArray, "a2", 0);
50 ret = OH_StrArrayGetIndex(strArray, "a3", 0);
54 ret = OH_StrArrayGetIndex(strArray, "aa1", 0);
56 ret = OH_StrArrayGetIndex(strArray, "A1", 0);
58 ret = OH_StrArrayGetIndex(strArray, "A2", 0);
60 ret = OH_StrArrayGetIndex(strArray, "A3", 0);
64 ret = OH_StrArrayGetIndex(strArray, "A1", 1);
66 ret = OH_StrArrayGetIndex(strArray, "A2", 2);
[all …]
/ohos5.0/base/hiviewdfx/hiview/base/utility/
H A Dcjson_util.cpp77 cJSON* strArray = cJSON_GetObjectItem(json, key.c_str()); in GetStringArray() local
78 if (strArray == nullptr || !cJSON_IsArray(strArray)) { in GetStringArray()
81 int size = cJSON_GetArraySize(strArray); in GetStringArray()
86 cJSON* strItem = cJSON_GetArrayItem(strArray, index); in GetStringArray()
/ohos5.0/foundation/multimedia/player_framework/services/utils/
H A Dxml_parse.cpp55 bool XmlParser::IsNumberArray(const std::vector<std::string> &strArray) const in IsNumberArray()
57 for (auto iter = strArray.begin(); iter != strArray.end(); iter++) { in IsNumberArray()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/cj/src/
H A Ddistributed_kv_store_impl.cpp277 CArrStr strArray; in VectorAppIdToCArr() local
278 strArray.size = static_cast<int64_t>(storeIdList.size()); in VectorAppIdToCArr()
279 strArray.head = static_cast<char**>(malloc(strArray.size * sizeof(char*))); in VectorAppIdToCArr()
280 if (strArray.head == nullptr) { in VectorAppIdToCArr()
283 for (int64_t i = 0; i < strArray.size; i++) { in VectorAppIdToCArr()
284 strArray.head[i] = MallocCString(storeIdList[i].storeId); in VectorAppIdToCArr()
286 return strArray; in VectorAppIdToCArr()
/ohos5.0/foundation/resourceschedule/device_standby/utils/policy/src/
H A Djson_utils.cpp177 std::vector<std::string>& strArray) in GetStrArrFromJsonValue() argument
183 strArray.clear(); in GetStrArrFromJsonValue()
188 strArray.emplace_back(strItem.get<std::string>()); in GetStrArrFromJsonValue()
/ohos5.0/base/startup/init/interfaces/innerkits/include/
H A Dinit_utils.h113 int OH_StrArrayGetIndex(const char *strArray[], const char *target, int ignoreCase);
126 int OH_ExtendableStrArrayGetIndex(const char *strArray[], const char *target, int ignoreCase, const…
/ohos5.0/base/startup/init/services/utils/
H A Dinit_utils.c745 int OH_ExtendableStrArrayGetIndex(const char *strArray[], const char *target, int ignoreCase, const… in OH_ExtendableStrArrayGetIndex() argument
751 if ((strArray == NULL) || (target == NULL) || (target[0] == '\0')) { in OH_ExtendableStrArrayGetIndex()
759 for (i = 0; strArray[i] != NULL; i++) { in OH_ExtendableStrArrayGetIndex()
760 if (cmp(strArray[i], target) == 0) { in OH_ExtendableStrArrayGetIndex()
777 int OH_StrArrayGetIndex(const char *strArray[], const char *target, int ignoreCase) in OH_StrArrayGetIndex() argument
779 return OH_ExtendableStrArrayGetIndex(strArray, target, ignoreCase, NULL); in OH_StrArrayGetIndex()
/ohos5.0/base/security/access_token/interfaces/innerkits/nativetoken/src/
H A Dnativetoken.c401 static uint32_t CheckStrArray(const char **strArray, int32_t strNum, int32_t maxNum, uint32_t maxIn… in CheckStrArray() argument
403 if (((strArray == NULL) && (strNum != 0)) || in CheckStrArray()
409 … if ((strArray[i] == NULL) || (strlen(strArray[i]) > maxInfoLen) || (strlen(strArray[i]) == 0)) { in CheckStrArray()
H A Dnativetoken_json_oper.c118 static int32_t AddStrArrayInfo(cJSON *object, char* const strArray[], int32_t strNum, const char *s… in AddStrArrayInfo() argument
126 cJSON *item = cJSON_CreateString(strArray[i]); in AddStrArrayInfo()
/ohos5.0/base/global/i18n/interfaces/js/kits/src/
H A Dvariable_convertor.cpp111 std::vector<std::string> &strArray) in GetStringArrayFromJsParam() argument
136 strArray.push_back(str); in GetStringArrayFromJsParam()
/ohos5.0/foundation/distributeddatamgr/preferences/frameworks/cj/src/
H A Dpreferences_impl.cpp326 CArrStr strArray; in VectorToStringArray() local
327 strArray.size = static_cast<int64_t>(strings.size()); in VectorToStringArray()
328 strArray.head = VectorToCharPointer(strings, code); in VectorToStringArray()
332 return strArray; in VectorToStringArray()
/ohos5.0/base/global/i18n/interfaces/js/kits/include/
H A Dvariable_convertor.h36 std::vector<std::string> &strArray);
/ohos5.0/foundation/resourceschedule/device_standby/utils/policy/include/
H A Djson_utils.h116 std::vector<std::string>& strArray);
/ohos5.0/foundation/multimedia/player_framework/services/utils/include/
H A Dxml_parse.h43 virtual bool IsNumberArray(const std::vector<std::string> &strArray) const final;
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkts/
H A Djs-apis-taskpool.md2348 let strArray: Array<string> = ['c test string', 'b test string', 'a test string'];
2349 let task: taskpool.Task = new taskpool.Task(strSort, strArray);
2355 let strArray: Array<string> = ['c test string', 'b test string', 'a test string'];
2356 taskpool.execute(strSort, strArray).then((result: Object) => {
/ohos5.0/docs/zh-cn/application-dev/reference/apis-localization-kit/
H A Djs-apis-resource-manager.md1120 let strArray = value;
1168 let strArray = value;
1224 let strArray = value;
1281 let strArray = value;
1329 let strArray = value;
1378 let strArray = value;
5689 let strArray = value;
5724 let strArray = value;
/ohos5.0/docs/en/application-dev/reference/apis-arkts/
H A Djs-apis-taskpool.md2352 let strArray: Array<string> = ['c test string', 'b test string', 'a test string'];
2353 let task: taskpool.Task = new taskpool.Task(strSort, strArray);
2359 let strArray: Array<string> = ['c test string', 'b test string', 'a test string'];
2360 taskpool.execute(strSort, strArray).then((result: Object) => {
/ohos5.0/docs/en/application-dev/reference/apis-localization-kit/
H A Djs-apis-resource-manager.md1120 let strArray = value;
1168 let strArray = value;
1224 let strArray = value;
1281 let strArray = value;
1329 let strArray = value;
1378 let strArray = value;
5686 let strArray = value;
5721 let strArray = value;
/ohos5.0/foundation/bundlemanager/bundle_framework/interfaces/kits/js/bundle_manager/
H A Dbundle_manager.cpp2305 napi_env env, napi_value result, const std::vector<std::string> &strArray) in SetStrArrayToNapiObj() argument
2307 if (strArray.size() == 0) { in SetStrArrayToNapiObj()
2312 for (const auto &item : strArray) { in SetStrArrayToNapiObj()