Lines Matching refs:item
116 /* An array or object item will have a child pointer pointing to a chain of the items in the array/object. */
119 /* The type of the item, as above. */
122 /* The item's string, if type==cJSON_String and type == cJSON_Raw */
131 /* The item's number, if type==cJSON_Number */
134 /* The item's name string, if this item is the child of, or is in the list of subitems of an object. */
169 CJSON_PUBLIC(char *) cJSON_Print(const cJSON *item);
171 CJSON_PUBLIC(char *) cJSON_PrintUnformatted(const cJSON *item);
173 CJSON_PUBLIC(char *) cJSON_PrintBuffered(const cJSON *item, int prebuffer, cJSON_bool fmt);
176 CJSON_PUBLIC(cJSON_bool) cJSON_PrintPreallocated(cJSON *item, char *buffer, const int length, const cJSON_bool format);
178 CJSON_PUBLIC(void) cJSON_Delete(cJSON *item);
182 /* Retrieve item number "index" from array "array". Returns NULL if unsuccessful. */
184 /* Get item "string" from object. Case insensitive. */
191 /* Check item type and return its value */
192 CJSON_PUBLIC(char *) cJSON_GetStringValue(const cJSON * const item);
194 CJSON_PUBLIC(long long *) cJSON_GetInt64NumberValue(cJSON * const item);
196 CJSON_PUBLIC(double) cJSON_GetNumberValue(const cJSON * const item);
198 /* These functions check the type of an item */
199 CJSON_PUBLIC(cJSON_bool) cJSON_IsInvalid(const cJSON * const item);
200 CJSON_PUBLIC(cJSON_bool) cJSON_IsFalse(const cJSON * const item);
201 CJSON_PUBLIC(cJSON_bool) cJSON_IsTrue(const cJSON * const item);
202 CJSON_PUBLIC(cJSON_bool) cJSON_IsBool(const cJSON * const item);
203 CJSON_PUBLIC(cJSON_bool) cJSON_IsNull(const cJSON * const item);
205 CJSON_PUBLIC(cJSON_bool) cJSON_IsInt64Number(const cJSON * const item);
207 CJSON_PUBLIC(cJSON_bool) cJSON_IsNumber(const cJSON * const item);
208 CJSON_PUBLIC(cJSON_bool) cJSON_IsString(const cJSON * const item);
209 CJSON_PUBLIC(cJSON_bool) cJSON_IsArray(const cJSON * const item);
210 CJSON_PUBLIC(cJSON_bool) cJSON_IsObject(const cJSON * const item);
211 CJSON_PUBLIC(cJSON_bool) cJSON_IsRaw(const cJSON * const item);
213 /* These calls create a cJSON item of the appropriate type. */
243 /* Append item to the specified array/object. */
244 CJSON_PUBLIC(cJSON_bool) cJSON_AddItemToArray(cJSON *array, cJSON *item);
245 CJSON_PUBLIC(cJSON_bool) cJSON_AddItemToObject(cJSON *object, const char *string, cJSON *item);
247 * WARNING: When this function was used, make sure to always check that (item->type & cJSON_StringIsConst) is zero before
248 * writing to `item->string` */
249 CJSON_PUBLIC(cJSON_bool) cJSON_AddItemToObjectCS(cJSON *object, const char *string, cJSON *item);
250 /* Append reference to item to the specified array/object. Use this when you want to add an existing cJSON to a new cJSON, but don't want to corrupt your existing cJSON. */
251 CJSON_PUBLIC(cJSON_bool) cJSON_AddItemReferenceToArray(cJSON *array, cJSON *item);
252 CJSON_PUBLIC(cJSON_bool) cJSON_AddItemReferenceToObject(cJSON *object, const char *string, cJSON *item);
255 CJSON_PUBLIC(cJSON *) cJSON_DetachItemViaPointer(cJSON *parent, cJSON * const item);
265 CJSON_PUBLIC(cJSON_bool) cJSON_ReplaceItemViaPointer(cJSON * const parent, cJSON * const item, cJSON * replacement);
270 /* Duplicate a cJSON item */
271 CJSON_PUBLIC(cJSON *) cJSON_Duplicate(const cJSON *item, cJSON_bool recurse);
272 /* Duplicate will create a new, identical cJSON item to the one you pass, in new memory that will
273 * need to be released. With recurse!=0, it will duplicate any children connected to the item.
274 * The item->next and ->prev pointers are always zero on return from Duplicate. */
285 * They return the added item or NULL on failure. */