|
| CJSON_PUBLIC (const char *) cJSON_Version(void) |
|
| CJSON_PUBLIC (void) cJSON_InitHooks(cJSON_Hooks *hooks) |
|
| CJSON_PUBLIC (cJSON *) cJSON_Parse(const char *value) |
|
| CJSON_PUBLIC (char *) cJSON_Print(const cJSON *item) |
|
| CJSON_PUBLIC (cJSON_bool) cJSON_PrintPreallocated(cJSON *item |
|
| CJSON_PUBLIC (double) cJSON_GetNumberValue(const cJSON *const item) |
|
| CJSON_PUBLIC (void *) cJSON_malloc(size_t size) |
|
static int | case_insensitive_strcmp (const unsigned char *string1, const unsigned char *string2) |
|
static unsigned char * | cJSON_strdup (const unsigned char *string, const internal_hooks *const hooks) |
|
static cJSON * | cJSON_New_Item (const internal_hooks *const hooks) |
|
static unsigned char | get_decimal_point (void) |
|
static cJSON_bool | parse_number (cJSON *const item, parse_buffer *const input_buffer) |
|
| if (!(object->type &cJSON_String)||(object->type &cJSON_IsReference)) |
|
| if (strlen(valuestring)<=strlen(object->valuestring)) |
|
| if (copy==NULL) |
|
| if (object->valuestring !=NULL) |
|
static unsigned char * | ensure (printbuffer *const p, size_t needed) |
|
static void | update_offset (printbuffer *const buffer) |
|
static cJSON_bool | compare_double (double a, double b) |
|
static cJSON_bool | print_number (const cJSON *const item, printbuffer *const output_buffer) |
|
static unsigned | parse_hex4 (const unsigned char *const input) |
|
static unsigned char | utf16_literal_to_utf8 (const unsigned char *const input_pointer, const unsigned char *const input_end, unsigned char **output_pointer) |
|
static cJSON_bool | parse_string (cJSON *const item, parse_buffer *const input_buffer) |
|
static cJSON_bool | print_string_ptr (const unsigned char *const input, printbuffer *const output_buffer) |
|
static cJSON_bool | print_string (const cJSON *const item, printbuffer *const p) |
|
static cJSON_bool | parse_value (cJSON *const item, parse_buffer *const input_buffer) |
|
static cJSON_bool | print_value (const cJSON *const item, printbuffer *const output_buffer) |
|
static cJSON_bool | parse_array (cJSON *const item, parse_buffer *const input_buffer) |
|
static cJSON_bool | print_array (const cJSON *const item, printbuffer *const output_buffer) |
|
static cJSON_bool | parse_object (cJSON *const item, parse_buffer *const input_buffer) |
|
static cJSON_bool | print_object (const cJSON *const item, printbuffer *const output_buffer) |
|
static parse_buffer * | buffer_skip_whitespace (parse_buffer *const buffer) |
|
static parse_buffer * | skip_utf8_bom (parse_buffer *const buffer) |
|
| if (NULL==value) |
|
return | cJSON_ParseWithLengthOpts (value, buffer_length, return_parse_end, require_null_terminated) |
|
| if (value==NULL||0==buffer_length) |
|
| if (item==NULL) |
|
| if (!parse_value(item, buffer_skip_whitespace(skip_utf8_bom(&buffer)))) |
|
| if (require_null_terminated) |
|
| if (return_parse_end) |
|
| if (value !=NULL) |
|
static unsigned char * | print (const cJSON *const item, cJSON_bool format, const internal_hooks *const hooks) |
|
| if (prebuffer< 0) |
|
| if (!p.buffer) |
|
| if (!print_value(item, &p)) |
|
| return (char *) p.buffer |
|
| if ((length< 0)||(buffer==NULL)) |
|
return | print_value (item, &p) |
|
static cJSON * | get_array_item (const cJSON *array, size_t index) |
|
static cJSON * | get_object_item (const cJSON *const object, const char *const name, const cJSON_bool case_sensitive) |
|
static void | suffix_object (cJSON *prev, cJSON *item) |
|
static cJSON * | create_reference (const cJSON *item, const internal_hooks *const hooks) |
|
static cJSON_bool | add_item_to_array (cJSON *array, cJSON *item) |
|
static void * | cast_away_const (const void *string) |
|
static cJSON_bool | add_item_to_object (cJSON *const object, const char *const string, cJSON *const item, const internal_hooks *const hooks, const cJSON_bool constant_key) |
|
| if (add_item_to_object(object, name, null, &global_hooks, false)) |
|
| cJSON_Delete (null) |
|
| if (add_item_to_object(object, name, true_item, &global_hooks, false)) |
|
| cJSON_Delete (true_item) |
|
| if (add_item_to_object(object, name, false_item, &global_hooks, false)) |
|
| cJSON_Delete (false_item) |
|
| if (add_item_to_object(object, name, bool_item, &global_hooks, false)) |
|
| cJSON_Delete (bool_item) |
|
| if (add_item_to_object(object, name, number_item, &global_hooks, false)) |
|
| cJSON_Delete (number_item) |
|
| if (add_item_to_object(object, name, string_item, &global_hooks, false)) |
|
| cJSON_Delete (string_item) |
|
| if (add_item_to_object(object, name, raw_item, &global_hooks, false)) |
|
| cJSON_Delete (raw_item) |
|
| if (add_item_to_object(object, name, object_item, &global_hooks, false)) |
|
| cJSON_Delete (object_item) |
|
| if (add_item_to_object(object, name, array, &global_hooks, false)) |
|
| cJSON_Delete (array) |
|
return | cJSON_DetachItemViaPointer (object, to_detach) |
|
| if (after_inserted==NULL) |
|
| if (replacement->next !=NULL) |
|
| if (parent->child==item) |
|
| cJSON_Delete (item) |
|
static cJSON_bool | replace_item_in_object (cJSON *object, const char *string, cJSON *replacement, cJSON_bool case_sensitive) |
|
| if ((count< 0)||(numbers==NULL)) |
|
| for (i=0;a &&(i<(size_t) count);i++) |
|
| if ((count< 0)||(strings==NULL)) |
|
| if (!item) |
|
| if (item->valuestring) |
|
| while (child !=NULL) |
|
| if (newitem &&newitem->child) |
|
static void | skip_oneline_comment (char **input) |
|
static void | skip_multiline_comment (char **input) |
|
static void | minify_string (char **input, char **output) |
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0.
MODIFICATIONS: valueInt was moved up to improve alignment. Wrap all symbols in the Aws namespace as a short-term collision resolution Replace strcpy() with strncpy()
Modifications licensed under:
Copyright 2010-2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at
http://aws.amazon.com/apache2.0
or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0. To keep ABI compatability, we use CRT's own string view implementation even for C++ 17.