| 1999 | } |
| 2000 | |
| 2001 | cJSON *cJSON_DetachItemFromObject(cJSON *object, const char *string) |
| 2002 | { |
| 2003 | size_t i = 0; |
| 2004 | cJSON *c = object->child; |
| 2005 | while (c && cJSON_strcasecmp((unsigned char*)c->string, (const unsigned char*)string)) |
| 2006 | { |
| 2007 | i++; |
| 2008 | c = c->next; |
| 2009 | } |
| 2010 | if (c) |
| 2011 | { |
| 2012 | return DetachItemFromArray(object, i); |
| 2013 | } |
| 2014 | |
| 2015 | return NULL; |
| 2016 | } |
| 2017 | |
| 2018 | void cJSON_DeleteItemFromObject(cJSON *object, const char *string) |
| 2019 | { |
no test coverage detected