Lines Matching refs:valuestring

103   return item->valuestring;  in cJSON_GetStringValue()
223 …(!(item->type & cJSON_IsReference) && (item->valuestring != NULL)) global_hooks.deallocate(item->v… in cJSON_Delete()
335 CJSON_PUBLIC(char *) cJSON_SetValuestring(cJSON *object, const char *valuestring) in cJSON_SetValuestring() argument
340 if (strlen(valuestring) <= strlen(object->valuestring)) { in cJSON_SetValuestring()
341 strcpy(object->valuestring, valuestring); in cJSON_SetValuestring()
342 return object->valuestring; in cJSON_SetValuestring()
344 copy = (char *)cJSON_strdup((const unsigned char *)valuestring, &global_hooks); in cJSON_SetValuestring()
346 if (object->valuestring != NULL) cJSON_free(object->valuestring); in cJSON_SetValuestring()
347 object->valuestring = copy; in cJSON_SetValuestring()
709 item->valuestring = (char *)output; in parse_string()
830 return print_string_ptr((unsigned char *)item->valuestring, p); in print_string()
1118 if (item->valuestring == NULL) return false; in print_value()
1120 raw_length = strlen(item->valuestring) + sizeof(""); in print_value()
1123 memcpy(output, item->valuestring, raw_length); in print_value()
1303 current_item->string = current_item->valuestring; in parse_object()
1304 current_item->valuestring = NULL; in parse_object()
1881 item->valuestring = (char *)cJSON_strdup((const unsigned char *)string, &global_hooks); in cJSON_CreateString()
1882 if (!item->valuestring) { in cJSON_CreateString()
1896 item->valuestring = (char *)cast_away_const(string); in cJSON_CreateStringReference()
1929 item->valuestring = (char *)cJSON_strdup((const unsigned char *)raw, &global_hooks); in cJSON_CreateRaw()
1930 if (!item->valuestring) { in cJSON_CreateRaw()
2093 if (item->valuestring) { in cJSON_Duplicate()
2094 newitem->valuestring = (char *)cJSON_strdup((unsigned char *)item->valuestring, &global_hooks); in cJSON_Duplicate()
2095 if (!newitem->valuestring) goto fail; in cJSON_Duplicate()
2321 if ((a->valuestring == NULL) || (b->valuestring == NULL)) return false; in cJSON_Compare()
2322 if (strcmp(a->valuestring, b->valuestring) == 0) return true; in cJSON_Compare()