/napi_generator/examples/napitutorials/entry/src/main/cpp/ncpp/cjsoncase/ |
H A D | cjsoncommon.cpp | 190 cJSON *getNapiCjsonChild(napi_env env, napi_value cjsonObj, cJSON *jsonObj, char *objStr, const char *tag) in getNapiCjsonChild() argument 202 return jsonObj; in getNapiCjsonChild() 208 jsonObj = initCJSON_Object(env, napiChildObj, jsonObj, tag); in getNapiCjsonChild() 211 return jsonObj; in getNapiCjsonChild() 214 cJSON *getNapiCjsonNext(napi_env env, napi_value cjsonObj, cJSON *jsonObj, const char *tag) in getNapiCjsonNext() argument 229 jsonObj = initCJSON_Object(env, napiNextObj, jsonObj, tag); in getNapiCjsonNext() 232 return jsonObj; in getNapiCjsonNext() 235 cJSON *getNapiCjsonPrev(napi_env env, napi_value cjsonObj, cJSON *jsonObj, cons argument 256 getNapiCjsonChildArrObj(napi_env env, napi_value cjsonObj, cJSON *jsonObj, char *objStrIn, const char *tag) getNapiCjsonChildArrObj() argument 293 initCJSON_Object(napi_env env, napi_value cjsonObj, cJSON *jsonObj, const char *tag) initCJSON_Object() argument 324 getNapiCjsonArrayChild(napi_env env, napi_value cjsonObj, cJSON *jsonObj, const char *tag, bool flag) getNapiCjsonArrayChild() argument 349 getNapiCjsonArrayNext(napi_env env, napi_value cjsonObj, cJSON *jsonObj, const char *tag, bool flag) getNapiCjsonArrayNext() argument 374 getNapiCjsonArrayPrev(napi_env env, napi_value cjsonObj, cJSON *jsonObj, const char *tag, bool flag) getNapiCjsonArrayPrev() argument 407 initCJSON_Array(napi_env env, napi_value cjsonObj, cJSON *jsonObj, const char *tag, bool flag) initCJSON_Array() argument 436 initCJSON_ArrayObj(napi_env env, napi_value cjsonObj, cJSON *jsonObj, const char *tag, bool flag) initCJSON_ArrayObj() argument [all...] |
H A D | cjsonaddfalsetoobjectcase.cpp | 113 napi_value getAddfalsetoobjValuestringOut(napi_env env, napi_value cJSON_AddFalseToObjectOut, cJSON *jsonObj) in getAddfalsetoobjValuestringOut() argument 127 status = napi_create_string_utf8(env, jsonObj->valuestring == NULL ? "" : jsonObj->valuestring, in getAddfalsetoobjValuestringOut() 184 napi_value getAddfalsetoobjNextOut(napi_env env, napi_value cJSON_AddFalseToObjectOut, cJSON *jsonObj) in getAddfalsetoobjNextOut() argument 200 // 给jsonObj->next赋值 in getAddfalsetoobjNextOut() 201 if (jsonObj == NULL) { in getAddfalsetoobjNextOut() 204 if (jsonObj->next != NULL) { in getAddfalsetoobjNextOut() 205 nextOut = getAddfalsetoobjTypeOut(env, nextOut, jsonObj->next); in getAddfalsetoobjNextOut() 206 nextOut = getAddfalsetoobjValuesdoubleOut(env, nextOut, jsonObj->next); in getAddfalsetoobjNextOut() 207 nextOut = getAddfalsetoobjValuesintOut(env, nextOut, jsonObj in getAddfalsetoobjNextOut() 233 getJsonobjfalseChildOut(napi_env env, napi_value childOut, cJSON *jsonObj) getJsonobjfalseChildOut() argument 251 getAddfalsetoobjChildOut(napi_env env, napi_value cJSON_AddFalseToObjectOut, cJSON *jsonObj) getAddfalsetoobjChildOut() argument 285 getAddfalsetoobjPrevOut(napi_env env, napi_value cJSON_AddFalseToObjectOut, cJSON *jsonObj) getAddfalsetoobjPrevOut() argument 400 cJSON *jsonObj = cJSON_CreateObject(); KH545_cJSON_AddFalseToObject() local [all...] |
H A D | cjsonaddstringtoobjectcase.cpp | 18 napi_value getAddstrtoobjTypeOut(napi_env env, napi_value cJSON_AddStringToObjectOut, cJSON *jsonObj) in getAddstrtoobjTypeOut() argument 29 status = napi_create_int32(env, jsonObj == NULL ? 0 : jsonObj->type, &typeOut); in getAddstrtoobjTypeOut() 49 napi_value getAddstrtoobjValuesintOut(napi_env env, napi_value cJSON_AddStringToObjectOut, cJSON *jsonObj) in getAddstrtoobjValuesintOut() argument 60 status = napi_create_int32(env, jsonObj == NULL ? 0 : jsonObj->valueint, &valueintOut); in getAddstrtoobjValuesintOut() 80 napi_value getAddstrtoobjValuesdoubleOut(napi_env env, napi_value cJSON_AddStringToObjectOut, cJSON *jsonObj) in getAddstrtoobjValuesdoubleOut() argument 91 status = napi_create_double(env, jsonObj == NULL ? 0 : jsonObj->valuedouble, &valuedoubleOut); in getAddstrtoobjValuesdoubleOut() 183 napi_value getAddstrtoobjNextOut(napi_env env, napi_value cJSON_AddStringToObjectOut, cJSON *jsonObj) in getAddstrtoobjNextOut() argument 230 getJsonobjstrChildOut(napi_env env, napi_value childOut, cJSON *jsonObj) getJsonobjstrChildOut() argument 248 getAddstrtoobjChildOut(napi_env env, napi_value cJSON_AddStringToObjectOut, cJSON *jsonObj) getAddstrtoobjChildOut() argument 282 getAddstrtoobjPrevOut(napi_env env, napi_value cJSON_AddStringToObjectOut, cJSON *jsonObj) getAddstrtoobjPrevOut() argument 438 cJSON *jsonObj = cJSON_CreateObject(); KH526_cJSON_AddStringToObject() local [all...] |
H A D | cjsonaddnumbertoobjectcase.cpp | 18 napi_value getAddnumbertoobjTypeOut(napi_env env, napi_value cJSON_AddNumberToObjectOut, cJSON *jsonObj) in getAddnumbertoobjTypeOut() argument 29 status = napi_create_int32(env, jsonObj == NULL ? 0 : jsonObj->type, &typeOut); in getAddnumbertoobjTypeOut() 49 napi_value getAddnumbertoobjValuesintOut(napi_env env, napi_value cJSON_AddNumberToObjectOut, cJSON *jsonObj) in getAddnumbertoobjValuesintOut() argument 60 status = napi_create_int32(env, jsonObj == NULL ? 0 : jsonObj->valueint, &valueintOut); in getAddnumbertoobjValuesintOut() 80 napi_value getAddnumbertoobjValuesdoubleOut(napi_env env, napi_value cJSON_AddNumberToObjectOut, cJSON *jsonObj) in getAddnumbertoobjValuesdoubleOut() argument 91 status = napi_create_double(env, jsonObj == NULL ? 0 : jsonObj->valuedouble, &valuedoubleOut); in getAddnumbertoobjValuesdoubleOut() 183 napi_value getAddnumbertoobjNextOut(napi_env env, napi_value cJSON_AddNumberToObjectOut, cJSON *jsonObj) in getAddnumbertoobjNextOut() argument 230 getJsonobjnumChildout(napi_env env, napi_value childOut, cJSON *jsonObj) getJsonobjnumChildout() argument 249 getAddnumbertoobjChildOut(napi_env env, napi_value cJSON_AddNumberToObjectOut, cJSON *jsonObj) getAddnumbertoobjChildOut() argument 283 getAddnumbertoobjPrevOut(napi_env env, napi_value cJSON_AddNumberToObjectOut, cJSON *jsonObj) getAddnumbertoobjPrevOut() argument 429 cJSON *jsonObj = cJSON_CreateObject(); KH206_cJSON_AddNumberToObject() local [all...] |
H A D | cjsonadditemtoarraycase.cpp | 132 napi_value getAdditemtoarrTypeOut(napi_env env, napi_value cJSON_AddItemToArrayOut, cJSON *jsonObj) in getAdditemtoarrTypeOut() argument 143 status = napi_create_int32(env, jsonObj == NULL ? 0 : jsonObj->type, &typeOut); in getAdditemtoarrTypeOut() 163 napi_value getAdditemtoarrValuesintOut(napi_env env, napi_value cJSON_AddItemToArrayOut, cJSON *jsonObj) in getAdditemtoarrValuesintOut() argument 174 status = napi_create_int32(env, jsonObj == NULL ? 0 : jsonObj->valueint, &valueintOut); in getAdditemtoarrValuesintOut() 194 napi_value getAdditemtoarrValuesdoubleOut(napi_env env, napi_value cJSON_AddItemToArrayOut, cJSON *jsonObj) in getAdditemtoarrValuesdoubleOut() argument 205 status = napi_create_double(env, jsonObj == NULL ? 0 : jsonObj->valuedouble, &valuedoubleOut); in getAdditemtoarrValuesdoubleOut() 297 napi_value getAdditemtoarrNextOut(napi_env env, napi_value cJSON_AddItemToArrayOut, cJSON *jsonObj) in getAdditemtoarrNextOut() argument 350 getJsonarrayitemChildOut(napi_env env, napi_value childOut, cJSON *jsonObj) getJsonarrayitemChildOut() argument 378 getAdditemtoarrChildOut(napi_env env, napi_value cJSON_AddItemToArrayOut, cJSON *jsonObj) getAdditemtoarrChildOut() argument 412 getAdditemtoarrPrevOut(napi_env env, napi_value cJSON_AddItemToArrayOut, cJSON *jsonObj) getAdditemtoarrPrevOut() argument [all...] |
H A D | cjsonadditemtoobjectcase.cpp | 18 napi_value getAdditemtoobjTypeOut(napi_env env, napi_value cJSON_AddItemToObjectOut, cJSON *jsonObj) in getAdditemtoobjTypeOut() argument 29 status = napi_create_int32(env, jsonObj == NULL ? 0 : jsonObj->type, &typeOut); in getAdditemtoobjTypeOut() 49 napi_value getAdditemtoobjValuesintOut(napi_env env, napi_value cJSON_AddItemToObjectOut, cJSON *jsonObj) in getAdditemtoobjValuesintOut() argument 60 status = napi_create_int32(env, jsonObj == NULL ? 0 : jsonObj->valueint, &valueintOut); in getAdditemtoobjValuesintOut() 80 napi_value getAdditemtoobjValuesdoubleOut(napi_env env, napi_value cJSON_AddItemToObjectOut, cJSON *jsonObj) in getAdditemtoobjValuesdoubleOut() argument 91 status = napi_create_double(env, jsonObj == NULL ? 0 : jsonObj->valuedouble, &valuedoubleOut); in getAdditemtoobjValuesdoubleOut() 188 napi_value getAdditemtoobjNextOut(napi_env env, napi_value cJSON_AddItemToObjectOut, cJSON *jsonObj) in getAdditemtoobjNextOut() argument 235 getJsonarritemChildOut(napi_env env, napi_value childOut, cJSON *jsonObj) getJsonarritemChildOut() argument 262 getAdditemtoobjChildOut(napi_env env, napi_value cJSON_AddItemToObjectOut, cJSON *jsonObj) getAdditemtoobjChildOut() argument 296 getAdditemtoobjPrevOut(napi_env env, napi_value cJSON_AddItemToObjectOut, cJSON *jsonObj) getAdditemtoobjPrevOut() argument [all...] |
H A D | cjsoncreateintarraycase.cpp | 19 napi_value getCreateintarrTypeOut(napi_env env, napi_value cJSON_CreateIntArrayOut, cJSON *jsonObj) in getCreateintarrTypeOut() argument 30 status = napi_create_int32(env, jsonObj == NULL ? 0 : jsonObj->type, &typeOut); in getCreateintarrTypeOut() 50 napi_value getCreateintarrValuesintOut(napi_env env, napi_value cJSON_CreateIntArrayOut, cJSON *jsonObj) in getCreateintarrValuesintOut() argument 61 status = napi_create_int32(env, jsonObj == NULL ? 0 : jsonObj->valueint, &valueintOut); in getCreateintarrValuesintOut() 81 napi_value getCreateintarrValuesdoubleOut(napi_env env, napi_value cJSON_CreateIntArrayOut, cJSON *jsonObj) in getCreateintarrValuesdoubleOut() argument 92 status = napi_create_double(env, jsonObj == NULL ? 0 : jsonObj->valuedouble, &valuedoubleOut); in getCreateintarrValuesdoubleOut() 184 napi_value getCreateintarrNextOut(napi_env env, napi_value cJSON_CreateIntArrayOut, cJSON *jsonObj) in getCreateintarrNextOut() argument 231 getJsonobjitemChildOut(napi_env env, napi_value childOut, cJSON *jsonObj) getJsonobjitemChildOut() argument 249 getCreateintarrChildOut(napi_env env, napi_value cJSON_CreateIntArrayOut, cJSON *jsonObj) getCreateintarrChildOut() argument 283 getCreateintarrPrevOut(napi_env env, napi_value cJSON_CreateIntArrayOut, cJSON *jsonObj) getCreateintarrPrevOut() argument [all...] |
/napi_generator/examples/napitutorials/entry/src/main/cpp/include/cJsonNapiH/ |
H A D | cjsoncommon.h | 67 * jsonObj: 待初始化的native层cJSON对象 70 cJSON *initCJSON_Object(napi_env env, napi_value cjsonObj, cJSON *jsonObj, const char *tag); 75 * jsonObj: 待初始化的native层cJSON对象 80 cJSON *initCJSON_ArrayObj(napi_env env, napi_value cjsonObj, cJSON *jsonObj, const char *tag, bool flag); 85 * jsonObj: 待初始化的native层cJSON对象 90 cJSON *initCJSON_Array(napi_env env, napi_value cjsonObj, cJSON *jsonObj, const char *tag, bool flag);
|
H A D | cjsonnapi.h | 71 napi_value getAdditemtoobjChildOut(napi_env env, napi_value cJSON_AddItemToObjectOut, cJSON *jsonObj); 83 napi_value getAdditemtoarrChildOut(napi_env env, napi_value cJSON_AddItemToArrayOut, cJSON *jsonObj);
|
/napi_generator/examples/akitutorials/entry/src/main/cpp/ |
H A D | napi_init.cpp | 131 aki::Value jsonObj = aki::Value::FromGlobal("JSON"); in GetFromGlobal() local 132 aki::Value strObj = jsonObj["stringify"](obj); in GetFromGlobal()
|