aws-crt-cpp
|
Namespaces | |
Crt | |
Iot | |
Classes | |
struct | cJSON |
struct | cJSON_Hooks |
struct | internal_hooks |
struct | parse_buffer |
struct | printbuffer |
Typedefs | |
typedef struct Aws::cJSON | cJSON |
typedef struct Aws::cJSON_Hooks | cJSON_Hooks |
typedef int | cJSON_bool |
typedef struct Aws::internal_hooks | internal_hooks |
Functions | |
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_PrintPreallocated (cJSON *item, char *buffer, const int length, const cJSON_bool format) | |
CJSON_PUBLIC (int) cJSON_GetArraySize(const cJSON *array) | |
cJSON_InsertItemInArray (cJSON *array, int which, cJSON *newitem) | |
CJSON_PUBLIC (double) cJSON_SetNumberHelper(cJSON *object | |
CJSON_PUBLIC (void *) cJSON_malloc(size_t size) | |
if (value==NULL) | |
if (item==NULL) | |
if (!parse_value(item, buffer_skip_whitespace(skip_utf8_bom(&buffer)))) | |
if (return_parse_end) | |
if (value !=NULL) | |
if (prebuffer< 0) | |
if (!p.buffer) | |
if (!print_value(item, &p)) | |
return (char *) p.buffer | |
if ((len< 0)||(buf==NULL)) | |
return | print_value (item, &p) |
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 (replacement->prev !=NULL) | |
if (parent->child==item) | |
cJSON_Delete (item) | |
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) | |
cJSON_Compare (const cJSON *const a, const cJSON *const b, const cJSON_bool case_sensitive) | |
Variables | |
size_t | length = length |
size_t const char ** | return_parse_end |
int | prebuffer |
int cJSON_bool | fmt |
int | index |
const char *const | string |
int | count |
cJSON * | item = NULL |
int | which |
cJSON *const cJSON * | replacement |
int cJSON * | newitem |
cJSON_bool | recurse |
const cJSON *const | b |
const cJSON *const const cJSON_bool | case_sensitive |
const char *const | name |
const char *const const cJSON_bool | boolean |
const char *const const double | number |
const char *const const char *const | raw |
global_error | json = NULL |
global_error | position = 0 |
buffer | content = (const unsigned char *) value |
buffer | offset = 0 |
buffer | hooks = global_hooks |
fail | __pad0__ |
return | NULL |
p | buffer = (unsigned char *) global_hooks.allocate((size_t) prebuffer) |
p | noalloc = false |
p | format = fmt |
char * | buf |
char const int | len |
item | next = NULL |
after_inserted = get_array_item(array, (size_t) which) | |
newitem | prev = after_inserted->prev |
else | |
return | true |
cJSON * | n = NULL |
cJSON * | p = NULL |
cJSON * | a = NULL |
cJSON * | child = NULL |
cJSON * | newchild = NULL |
newitem | type = item->type & (~cJSON_IsReference) |
newitem | valueint = item->valueint |
newitem | valuedouble = item->valuedouble |
fail | __pad1__ |
MODIFICATIONS: parse doesn't rely on null terminated strings. (Who thought that was a good idea.... ever?). valueInt was moved up to improve alignment. Wrap all symbols in the Aws namespace as a short-term collision resolution
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.
typedef struct Aws::cJSON Aws::cJSON |
typedef int Aws::cJSON_bool |
typedef struct Aws::cJSON_Hooks Aws::cJSON_Hooks |
typedef struct Aws::internal_hooks Aws::internal_hooks |
Aws::cJSON_Compare | ( | const cJSON *const | a, |
const cJSON *const | b, | ||
const cJSON_bool | case_sensitive | ||
) |
Aws::cJSON_Delete | ( | array | ) |
Aws::cJSON_Delete | ( | bool_item | ) |
Aws::cJSON_Delete | ( | false_item | ) |
Aws::cJSON_Delete | ( | item | ) |
Aws::cJSON_Delete | ( | null | ) |
Aws::cJSON_Delete | ( | number_item | ) |
Aws::cJSON_Delete | ( | object_item | ) |
Aws::cJSON_Delete | ( | raw_item | ) |
Aws::cJSON_Delete | ( | string_item | ) |
Aws::cJSON_Delete | ( | true_item | ) |
return Aws::cJSON_DetachItemViaPointer | ( | object | , |
to_detach | |||
) |
Aws::cJSON_PrintPreallocated | ( | cJSON * | item, |
char * | buffer, | ||
const int | length, | ||
const cJSON_bool | format | ||
) |
Aws::CJSON_PUBLIC | ( | char * | ) | const |
Aws::CJSON_PUBLIC | ( | cJSON * | ) | const |
Aws::CJSON_PUBLIC | ( | const char * | ) |
Aws::CJSON_PUBLIC | ( | double | ) |
Aws::CJSON_PUBLIC | ( | int | ) | const |
Aws::CJSON_PUBLIC | ( | void * | ) |
Aws::CJSON_PUBLIC | ( | void | ) |
Aws::if | ( | ! | item | ) |
Aws::if | ( | !p. | buffer | ) |
Aws::if | ( | ! | parse_valueitem, buffer_skip_whitespace(skip_utf8_bom(&buffer)) | ) |
Aws::if | ( | ! | print_valueitem, &p | ) |
Aws::if | ( | add_item_to_object(object, name, array, &global_hooks, false) | ) |
Aws::if | ( | add_item_to_object(object, name, bool_item, &global_hooks, false) | ) |
Aws::if | ( | add_item_to_object(object, name, false_item, &global_hooks, false) | ) |
Aws::if | ( | add_item_to_object(object, name, null, &global_hooks, false) | ) |
Aws::if | ( | add_item_to_object(object, name, number_item, &global_hooks, false) | ) |
Aws::if | ( | add_item_to_object(object, name, object_item, &global_hooks, false) | ) |
Aws::if | ( | add_item_to_object(object, name, raw_item, &global_hooks, false) | ) |
Aws::if | ( | add_item_to_object(object, name, string_item, &global_hooks, false) | ) |
Aws::if | ( | add_item_to_object(object, name, true_item, &global_hooks, false) | ) |
Aws::if | ( | after_inserted | = = NULL | ) |
Aws::if | ( | item-> | valuestring | ) |
Aws::if | ( | parent-> | child = = item | ) |
Aws::if | ( | ) |
Aws::if | ( | replacement->next ! | = NULL | ) |
Aws::if | ( | replacement->prev ! | = NULL | ) |
Aws::if | ( | return_parse_end | ) |
Aws::if | ( | value ! | = NULL | ) |
Aws::if | ( | value | = = NULL | ) |
Aws::return | ( | char * | ) |
fail Aws::__pad0__ |
fail Aws::__pad1__ |
Aws::after_inserted = get_array_item(array, (size_t) which) |
const cJSON* const Aws::b |
const char *const const cJSON_bool Aws::boolean |
char* Aws::buf |
const cJSON* const const cJSON_bool Aws::case_sensitive |
Aws::child = NULL |
buffer Aws::content = (const unsigned char *) value |
int Aws::count |
char const int const cJSON_bool Aws::fmt |
p Aws::hooks = global_hooks |
int Aws::index |
global_error Aws::json = NULL |
char const int Aws::len |
p Aws::length = length |
const char *const Aws::name |
return Aws::newitem |
p Aws::noalloc = false |
return Aws::NULL |
const char *const const double Aws::number |
p Aws::offset = 0 |
global_error Aws::position = 0 |
int Aws::prebuffer |
item Aws::prev = after_inserted->prev |
cJSON_bool Aws::recurse |
size_t const char ** Aws::return_parse_end |
const char * Aws::string |
return Aws::true |
newitem Aws::type = item->type & (~cJSON_IsReference) |