/base/startup/init/test/unittest/innerkits/ |
H A D | strutil_unittest.cpp | 35 const char *strArray[] = { "a1", "a2", "a3", NULL}; in HWTEST_F() local 42 ret = OH_StrArrayGetIndex(strArray, NULL, 0); in HWTEST_F() 46 ret = OH_StrArrayGetIndex(strArray, "a1", 0); in HWTEST_F() 48 ret = OH_StrArrayGetIndex(strArray, "a2", 0); in HWTEST_F() 50 ret = OH_StrArrayGetIndex(strArray, "a3", 0); in HWTEST_F() 54 ret = OH_StrArrayGetIndex(strArray, "aa1", 0); in HWTEST_F() 56 ret = OH_StrArrayGetIndex(strArray, "A1", 0); in HWTEST_F() 58 ret = OH_StrArrayGetIndex(strArray, "A2", 0); in HWTEST_F() 60 ret = OH_StrArrayGetIndex(strArray, "A3", 0); in HWTEST_F() 64 ret = OH_StrArrayGetIndex(strArray, "A in HWTEST_F() 75 const char *strArray[] = { "a1", "a2", "a3", NULL}; HWTEST_F() local 109 const char *strArray[] = { "a1", "a2", "a3", NULL}; HWTEST_F() local [all...] |
/base/hiviewdfx/hiview/base/utility/ |
H A D | cjson_util.cpp | 77 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()
|
/base/startup/init/interfaces/innerkits/include/ |
H A D | init_utils.h | 116 * @param strArray string array
118 * const char *strArray[] = { "val1", "val2", NULL }
123 int OH_StrArrayGetIndex(const char *strArray[], const char *target, int ignoreCase);
128 * @param strArray string array
130 * const char *strArray[] = { "val1", "val2", NULL }
136 int OH_ExtendableStrArrayGetIndex(const char *strArray[], const char *target, int ignoreCase, const char *extend[]);
|
/base/global/i18n/interfaces/js/kits/include/ |
H A D | variable_convertor.h | 36 std::vector<std::string> &strArray);
|
/base/startup/init/services/utils/ |
H A D | init_utils.c | 745 int OH_ExtendableStrArrayGetIndex(const char *strArray[], const char *target, int ignoreCase, const char *extend[])
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()
|
/base/global/i18n/interfaces/js/kits/src/ |
H A D | variable_convertor.cpp | 111 std::vector<std::string> &strArray) in GetStringArrayFromJsParam() 136 strArray.push_back(str); in GetStringArrayFromJsParam() 110 GetStringArrayFromJsParam(napi_env env, napi_value &jsArray, const std::string& valueName, std::vector<std::string> &strArray) GetStringArrayFromJsParam() argument
|
/base/security/access_token/interfaces/innerkits/nativetoken/src/ |
H A D | nativetoken.c | 401 static uint32_t CheckStrArray(const char **strArray, int32_t strNum, int32_t maxNum, uint32_t maxInfoLen) in CheckStrArray() argument 403 if (((strArray == NULL) && (strNum != 0)) || in CheckStrArray() 405 NativeTokenKmsg(NATIVETOKEN_KERROR, "[%s]:strArray is null or strNum is invalid.", __func__); in CheckStrArray() 409 if ((strArray[i] == NULL) || (strlen(strArray[i]) > maxInfoLen) || (strlen(strArray[i]) == 0)) { in CheckStrArray() 410 NativeTokenKmsg(NATIVETOKEN_KERROR, "[%s]:strArray[%d] length is invalid.", __func__, i); in CheckStrArray()
|
H A D | nativetoken_json_oper.c | 118 static int32_t AddStrArrayInfo(cJSON *object, char* const strArray[], int32_t strNum, const char *strKey) in AddStrArrayInfo() argument 126 cJSON *item = cJSON_CreateString(strArray[i]); in AddStrArrayInfo()
|