Lines Matching refs:valuestring
113 return item->valuestring; in cJSON_GetStringValue()
270 if (!(item->type & cJSON_IsReference) && (item->valuestring != NULL)) in cJSON_Delete()
272 global_hooks.deallocate(item->valuestring); in cJSON_Delete()
407 CJSON_PUBLIC(char*) cJSON_SetValuestring(cJSON *object, const char *valuestring) in cJSON_SetValuestring() argument
415 if (strlen(valuestring) <= strlen(object->valuestring)) in cJSON_SetValuestring()
417 strcpy(object->valuestring, valuestring); in cJSON_SetValuestring()
418 return object->valuestring; in cJSON_SetValuestring()
420 copy = (char*) cJSON_strdup((const unsigned char*)valuestring, &global_hooks); in cJSON_SetValuestring()
425 if (object->valuestring != NULL) in cJSON_SetValuestring()
427 cJSON_free(object->valuestring); in cJSON_SetValuestring()
429 object->valuestring = copy; in cJSON_SetValuestring()
885 item->valuestring = (char*)output; in parse_string()
1031 return print_string_ptr((unsigned char*)item->valuestring, p); in print_string()
1416 if (item->valuestring == NULL) in print_value()
1421 raw_length = strlen(item->valuestring) + sizeof(""); in print_value()
1427 memcpy(output, item->valuestring, raw_length); in print_value()
1668 current_item->string = current_item->valuestring; in parse_object()
1669 current_item->valuestring = NULL; in parse_object()
2448 item->valuestring = (char*)cJSON_strdup((const unsigned char*)string, &global_hooks); in cJSON_CreateString()
2449 if(!item->valuestring) in cJSON_CreateString()
2465 item->valuestring = (char*)cast_away_const(string); in cJSON_CreateStringReference()
2498 item->valuestring = (char*)cJSON_strdup((const unsigned char*)raw, &global_hooks); in cJSON_CreateRaw()
2499 if(!item->valuestring) in cJSON_CreateRaw()
2698 if (item->valuestring) in cJSON_Duplicate()
2700 … newitem->valuestring = (char*)cJSON_strdup((unsigned char*)item->valuestring, &global_hooks); in cJSON_Duplicate()
2701 if (!newitem->valuestring) in cJSON_Duplicate()
2999 if ((a->valuestring == NULL) || (b->valuestring == NULL)) in cJSON_Compare()
3003 if (strcmp(a->valuestring, b->valuestring) == 0) in cJSON_Compare()