Lines Matching refs:item
32 static bool CheckValueInt(const cJSON *item)
34 if (item == nullptr || !cJSON_IsNumber(item)) {
41 static bool CheckValueString(const cJSON *item)
43 if (item == nullptr || !cJSON_IsString(item) || strlen(item->valuestring) == 0) {
57 cJSON *item = cJSON_GetObjectItem(thisPartition, "start");
58 if (!CheckValueInt(item)) {
62 myPartition->start = static_cast<size_t>(item->valueint);
64 item = cJSON_GetObjectItem(thisPartition, "length");
65 if (!CheckValueInt(item)) {
69 myPartition->length = static_cast<size_t>(item->valueint);
73 item = cJSON_GetObjectItem(thisPartition, "partName");
74 if (!CheckValueString(item)) {
78 myPartition->partName = (item->valuestring);
80 item = cJSON_GetObjectItem(thisPartition, "fsType");
81 if (!CheckValueString(item)) {
85 myPartition->fsType = (item->valuestring);