Lines Matching refs:name

1905         /* parse the name of the child */
1910 goto fail; /* failed to parse name */
1914 /* swap valuestring and string, because we parsed the name */
2128 static cJSON *get_object_item(const cJSON * const object, const char * const name, const cJSON_bool case_sensitive)
2132 if ((object == NULL) || (name == NULL))
2140 while ((current_element != NULL) && (current_element->string != NULL) && (strcmp(name, current_element->string) != 0))
2147 while ((current_element != NULL) && (case_insensitive_strcmp((const unsigned char*)name, (const unsigned char*)(current_element->string)) != 0))
2327 CJSON_PUBLIC(cJSON*) cJSON_AddNullToObject(cJSON * const object, const char * const name)
2330 if (add_item_to_object(object, name, null, &global_hooks, false))
2339 CJSON_PUBLIC(cJSON*) cJSON_AddTrueToObject(cJSON * const object, const char * const name)
2342 if (add_item_to_object(object, name, true_item, &global_hooks, false))
2351 CJSON_PUBLIC(cJSON*) cJSON_AddFalseToObject(cJSON * const object, const char * const name)
2354 if (add_item_to_object(object, name, false_item, &global_hooks, false))
2363 CJSON_PUBLIC(cJSON*) cJSON_AddBoolToObject(cJSON * const object, const char * const name, const cJSON_bool boolean)
2366 if (add_item_to_object(object, name, bool_item, &global_hooks, false))
2376 CJSON_PUBLIC(cJSON*) cJSON_AddInt64NumberToObject(cJSON * const object, const char * const name, const long long integer)
2379 if (add_item_to_object(object, name, int_item, &global_hooks, false))
2389 CJSON_PUBLIC(cJSON*) cJSON_AddNumberToObject(cJSON * const object, const char * const name, const double number)
2392 if (add_item_to_object(object, name, number_item, &global_hooks, false))
2401 CJSON_PUBLIC(cJSON*) cJSON_AddStringToObject(cJSON * const object, const char * const name, const char * const string)
2404 if (add_item_to_object(object, name, string_item, &global_hooks, false))
2413 CJSON_PUBLIC(cJSON*) cJSON_AddRawToObject(cJSON * const object, const char * const name, const char * const raw)
2416 if (add_item_to_object(object, name, raw_item, &global_hooks, false))
2425 CJSON_PUBLIC(cJSON*) cJSON_AddObjectToObject(cJSON * const object, const char * const name)
2428 if (add_item_to_object(object, name, object_item, &global_hooks, false))
2437 CJSON_PUBLIC(cJSON*) cJSON_AddArrayToObject(cJSON * const object, const char * const name)
2440 if (add_item_to_object(object, name, array, &global_hooks, false))
2625 /* replace the name in the replacement */