Lines Matching refs:string
35 #include <string.h>
88 if (!(c->type & cJSON_StringIsConst) && c->string) cJSON_Free(c->pAllocator, c->string);
174 /* Render the number nicely from the given item into a string. */
265 } /* not a string! */
270 out = (char *)cJSON_malloc(item->pAllocator, len + 1); /* This is how long we need for the string, roughly. */
359 // out_buf_size = len + 3; // Modified to not put quotes around the string
366 // *ptr2++ = '\"'; // Modified to not put quotes around the string
368 // ptr2[len] = '\"'; // Modified to not put quotes around the string
369 ptr2[len] = 0; // ptr2[len + 1] = 0; // Modified to not put quotes around the string
395 // out_buf_size = len + 3; // Modified to not put quotes around the string
404 // *ptr2++ = '\"'; // Modified to not put quotes around the string
438 // *ptr2++ = '\"'; // Modified to not put quotes around the string
697 /* If we didn't fail, try to malloc the output string */
751 child->string = child->valuestring;
772 child->string = child->valuestring;
833 print_string_ptr(item->pAllocator, child->string, p);
879 names[i] = str = print_string_ptr(item->pAllocator, child->string, 0);
888 /* Try to allocate the output string */
948 cJSON *loader_cJSON_GetObjectItem(cJSON *object, const char *string) {
950 while (c && strcmp(c->string, string)) c = c->next;
1008 // Can't be a valid json if the string is of length zero