Lines Matching refs:valuestring
106 return item->valuestring; in cJSON_GetStringValue()
263 if (!(item->type & cJSON_IsReference) && (item->valuestring != NULL)) in cJSON_Delete()
265 global_hooks.deallocate(item->valuestring); in cJSON_Delete()
400 CJSON_PUBLIC(char*) cJSON_SetValuestring(cJSON *object, const char *valuestring) in cJSON_SetValuestring() argument
408 if (strlen(valuestring) <= strlen(object->valuestring)) in cJSON_SetValuestring()
410 strcpy(object->valuestring, valuestring); in cJSON_SetValuestring()
411 return object->valuestring; in cJSON_SetValuestring()
413 copy = (char*) cJSON_strdup((const unsigned char*)valuestring, &global_hooks); in cJSON_SetValuestring()
418 if (object->valuestring != NULL) in cJSON_SetValuestring()
420 cJSON_free(object->valuestring); in cJSON_SetValuestring()
422 object->valuestring = copy; in cJSON_SetValuestring()
876 item->valuestring = (char*)output; in parse_string()
1022 return print_string_ptr((unsigned char*)item->valuestring, p); in print_string()
1407 if (item->valuestring == NULL) in print_value()
1412 raw_length = strlen(item->valuestring) + sizeof(""); in print_value()
1418 memcpy(output, item->valuestring, raw_length); in print_value()
1663 current_item->string = current_item->valuestring; in parse_object()
1664 current_item->valuestring = NULL; in parse_object()
2452 item->valuestring = (char*)cJSON_strdup((const unsigned char*)string, &global_hooks); in cJSON_CreateString()
2453 if(!item->valuestring) in cJSON_CreateString()
2469 item->valuestring = (char*)cast_away_const(string); in cJSON_CreateStringReference()
2502 item->valuestring = (char*)cJSON_strdup((const unsigned char*)raw, &global_hooks); in cJSON_CreateRaw()
2503 if(!item->valuestring) in cJSON_CreateRaw()
2719 if (item->valuestring) in cJSON_Duplicate()
2721 … newitem->valuestring = (char*)cJSON_strdup((unsigned char*)item->valuestring, &global_hooks); in cJSON_Duplicate()
2722 if (!newitem->valuestring) in cJSON_Duplicate()
3024 if ((a->valuestring == NULL) || (b->valuestring == NULL)) in cJSON_Compare()
3028 if (strcmp(a->valuestring, b->valuestring) == 0) in cJSON_Compare()