Lines Matching defs:valuestring
106 return item->valuestring;
275 if (!(item->type & cJSON_IsReference) && (item->valuestring != NULL))
277 global_hooks.deallocate(item->valuestring);
278 item->valuestring = NULL;
561 CJSON_PUBLIC(char*) cJSON_SetValuestring(cJSON *object, const char *valuestring)
564 /* if object's type is not cJSON_String or is cJSON_IsReference, it should not set valuestring */
570 if (object->valuestring == NULL || valuestring == NULL)
574 if (strlen(valuestring) <= strlen(object->valuestring))
576 strcpy(object->valuestring, valuestring);
577 return object->valuestring;
579 copy = (char*) cJSON_strdup((const unsigned char*)valuestring, &global_hooks);
584 if (object->valuestring != NULL)
586 cJSON_free(object->valuestring);
588 object->valuestring = copy;
1123 item->valuestring = (char*)output;
1269 return print_string_ptr((unsigned char*)item->valuestring, p);
1654 if (item->valuestring == NULL)
1659 raw_length = strlen(item->valuestring) + sizeof("");
1665 memcpy(output, item->valuestring, raw_length);
1914 /* swap valuestring and string, because we parsed the name */
1915 current_item->string = current_item->valuestring;
1916 current_item->valuestring = NULL;
2772 item->valuestring = (char*)cJSON_strdup((const unsigned char*)string, &global_hooks);
2773 if(!item->valuestring)
2789 item->valuestring = (char*)cast_away_const(string);
2822 item->valuestring = (char*)cJSON_strdup((const unsigned char*)raw, &global_hooks);
2823 if(!item->valuestring)
3039 if (item->valuestring)
3041 newitem->valuestring = (char*)cJSON_strdup((unsigned char*)item->valuestring, &global_hooks);
3042 if (!newitem->valuestring)
3378 if ((a->valuestring == NULL) || (b->valuestring == NULL))
3382 if (strcmp(a->valuestring, b->valuestring) == 0)