Lines Matching refs:type
266 if (!(item->type & cJSON_IsReference) && (item->child != NULL)) in cJSON_Delete()
270 if (!(item->type & cJSON_IsReference) && (item->valuestring != NULL)) in cJSON_Delete()
274 if (!(item->type & cJSON_StringIsConst) && (item->string != NULL)) in cJSON_Delete()
382 item->type = cJSON_Number; in parse_number()
411 if (!(object->type & cJSON_String) || (object->type & cJSON_IsReference)) in cJSON_SetValuestring()
884 item->type = cJSON_String; in parse_string()
1328 item->type = cJSON_NULL; in parse_value()
1335 item->type = cJSON_False; in parse_value()
1342 item->type = cJSON_True; in parse_value()
1381 switch ((item->type) & 0xFF) in print_value()
1523 item->type = cJSON_Array; in parse_array()
1695 item->type = cJSON_Object; in parse_object()
1948 reference->type |= cJSON_IsReference; in create_reference()
2030 new_type = item->type | cJSON_StringIsConst; in add_item_to_object()
2040 new_type = item->type & ~cJSON_StringIsConst; in add_item_to_object()
2043 if (!(item->type & cJSON_StringIsConst) && (item->string != NULL)) in add_item_to_object()
2049 item->type = new_type; in add_item_to_object()
2351 if (!(replacement->type & cJSON_StringIsConst) && (replacement->string != NULL)) in replace_item_in_object()
2356 replacement->type &= ~cJSON_StringIsConst; in replace_item_in_object()
2377 item->type = cJSON_NULL; in cJSON_CreateNull()
2388 item->type = cJSON_True; in cJSON_CreateTrue()
2399 item->type = cJSON_False; in cJSON_CreateFalse()
2410 item->type = boolean ? cJSON_True : cJSON_False; in cJSON_CreateBool()
2421 item->type = cJSON_Number; in cJSON_CreateNumber()
2447 item->type = cJSON_String; in cJSON_CreateString()
2464 item->type = cJSON_String | cJSON_IsReference; in cJSON_CreateStringReference()
2475 item->type = cJSON_Object | cJSON_IsReference; in cJSON_CreateObjectReference()
2485 item->type = cJSON_Array | cJSON_IsReference; in cJSON_CreateArrayReference()
2497 item->type = cJSON_Raw; in cJSON_CreateRaw()
2514 item->type=cJSON_Array; in cJSON_CreateArray()
2525 item->type = cJSON_Object; in cJSON_CreateObject()
2695 newitem->type = item->type & (~cJSON_IsReference); in cJSON_Duplicate()
2708 …newitem->string = (item->type&cJSON_StringIsConst) ? item->string : (char*)cJSON_strdup((unsigned … in cJSON_Duplicate()
2859 return (item->type & 0xFF) == cJSON_Invalid; in cJSON_IsInvalid()
2869 return (item->type & 0xFF) == cJSON_False; in cJSON_IsFalse()
2879 return (item->type & 0xff) == cJSON_True; in cJSON_IsTrue()
2890 return (item->type & (cJSON_True | cJSON_False)) != 0; in cJSON_IsBool()
2899 return (item->type & 0xFF) == cJSON_NULL; in cJSON_IsNull()
2909 return (item->type & 0xFF) == cJSON_Number; in cJSON_IsNumber()
2919 return (item->type & 0xFF) == cJSON_String; in cJSON_IsString()
2929 return (item->type & 0xFF) == cJSON_Array; in cJSON_IsArray()
2939 return (item->type & 0xFF) == cJSON_Object; in cJSON_IsObject()
2949 return (item->type & 0xFF) == cJSON_Raw; in cJSON_IsRaw()
2954 if ((a == NULL) || (b == NULL) || ((a->type & 0xFF) != (b->type & 0xFF)) || cJSON_IsInvalid(a)) in cJSON_Compare()
2960 switch (a->type & 0xFF) in cJSON_Compare()
2982 switch (a->type & 0xFF) in cJSON_Compare()