Lines Matching refs:child_pointer
433 unsigned char *child_pointer = NULL; in detach_path() local
443 child_pointer = (unsigned char*)strrchr((char*)parent_pointer, '/'); /* last '/' */ in detach_path()
444 if (child_pointer == NULL) in detach_path()
449 child_pointer[0] = '\0'; in detach_path()
450 child_pointer++; in detach_path()
453 decode_pointer_inplace(child_pointer); in detach_path()
458 if (!decode_array_index_from_pointer(child_pointer, &index)) in detach_path()
466 detached_item = cJSON_DetachItemFromObject(parent, (char*)child_pointer); in detach_path()
814 unsigned char *child_pointer = NULL; in apply_patch() local
964 child_pointer = (unsigned char*)strrchr((char*)parent_pointer, '/'); in apply_patch()
966 if (child_pointer != NULL) in apply_patch()
968 child_pointer[0] = '\0'; in apply_patch()
969 child_pointer++; in apply_patch()
972 decode_pointer_inplace(child_pointer); in apply_patch()
975 if ((parent == NULL) || (child_pointer == NULL)) in apply_patch()
983 if (strcmp((char*)child_pointer, "-") == 0) in apply_patch()
991 if (!decode_array_index_from_pointer(child_pointer, &index)) in apply_patch()
1009 cJSON_DeleteItemFromObjectCaseSensitive(parent, (char*)child_pointer); in apply_patch()
1013 cJSON_DeleteItemFromObject(parent, (char*)child_pointer); in apply_patch()
1015 cJSON_AddItemToObject(parent, (char*)child_pointer, value); in apply_patch()