/napi_generator/examples/napitutorials/entry/src/main/cpp/ncpp/cjsoncase/ |
H A D | cjsoncase.cpp | 31 napi_value res; in cJSONVersion() local 32 napi_create_string_utf8(env, version, strlen(version), &res); in cJSONVersion() 34 return res; in cJSONVersion()
|
H A D | cjsoncommon.cpp | 32 std::string res = "Failed to " + myInfo + " em = " + errorMessage + in getErrMessage() local 35 napi_throw_error(env, NULL, res.c_str()); in getErrMessage()
|
/napi_generator/examples/napitutorials/entry/src/main/cpp/javascriptapi/jsabstractops/ |
H A D | napicoercetostring.cpp | 47 std::string res = "Failed to coerce to string. em = " + std::string(errorMessage) + in testNapiCoerceToString() local 50 napi_throw_error(env, NULL, res.c_str()); in testNapiCoerceToString() 59 std::string res = "Expected a string, got " + std::to_string(resultType); in testNapiCoerceToString() local 60 napi_throw_error(env, NULL, res.c_str()); in testNapiCoerceToString()
|
H A D | napicoercetoobject.cpp | 47 std::string res = "Failed to coerce to object. em = " + std::string(errorMessage) + in testNapiCoerceToObject() local 50 napi_throw_error(env, NULL, res.c_str()); in testNapiCoerceToObject() 59 std::string res = "Expected an object, got " + std::to_string(resultType); in testNapiCoerceToObject() local 60 napi_throw_error(env, NULL, res.c_str()); in testNapiCoerceToObject()
|
H A D | napicoercetonumber.cpp | 47 std::string res = "Failed to coerce to number. em = " + std::string(errorMessage) + in testNapiCoerceToNumber() local 50 napi_throw_error(env, NULL, res.c_str()); in testNapiCoerceToNumber() 59 std::string res = "Expected a number, got " + std::to_string(resultType); in testNapiCoerceToNumber() local 60 napi_throw_error(env, NULL, res.c_str()); in testNapiCoerceToNumber()
|
H A D | napicoercetobool.cpp | 47 std::string res = "Failed to coerce to bool. em = " + std::string(errorMessage) + in testNapiCoerceToBool() local 50 napi_throw_error(env, NULL, res.c_str()); in testNapiCoerceToBool() 59 std::string res = "Expected a boolean, got " + std::to_string(resultType); in testNapiCoerceToBool() local 60 napi_throw_error(env, NULL, res.c_str()); in testNapiCoerceToBool()
|
/napi_generator/src/cli/dts2cpp/src/gen/analyze/ |
H A D | function.js | 171 let res = ''; 175 res += regs1; 180 let interfaceBody = res; 235 let res = analyzeFuncNoNameInterface(data, values, results); 239 if (res) { 240 tmp = analyzeParams(name, res.values); 266 v = getFuncParaType(v, res.interfaceName, data, results);
|
/napi_generator/src/cli/dts2ets/appCodeGen/src/analyze/ |
H A D | function.js | 169 let res = ''; 173 res += regs1; 178 let interfaceBody = res; 233 let res = analyzeFuncNoNameInterface(data, values, results); 237 if (res) { 238 tmp = analyzeParams(name, res.values); 264 v = getFuncParaType(v, res.interfaceName, data, results);
|
/napi_generator/examples/napitutorials/entry/src/main/cpp/javascriptapi/jsobjectwrap/ |
H A D | napiwrap.cpp | 59 std::string res = "Expected a string, got " + std::to_string(resultType); in testNapiWrap() local 60 napi_throw_error(env, NULL, res.c_str()); in testNapiWrap()
|
/napi_generator/examples/napitutorials/entry/src/main/cpp/nodeapi/datatypes/ |
H A D | napithreadsafefuncall.cpp | 75 std::string res = "Failed to create threadsafe function em = " + std::string(errorMessage) + in setThreadsafefuncall() local 78 napi_throw_error(env, NULL, res.c_str()); in setThreadsafefuncall()
|
H A D | napithreadsafefunc.cpp | 75 std::string res = "Failed to create threadsafe function em = " + std::string(errorMessage) + in setThreadsafefunc() local 78 napi_throw_error(env, NULL, res.c_str()); in setThreadsafefunc()
|
H A D | napiextendederrorinfo.cpp | 58 std::string res = "Failed to create threadsafe function em = " + std::string(errorMessage) + in testNapiExterrinfo() local 61 napi_throw_error(env, NULL, res.c_str()); in testNapiExterrinfo()
|
H A D | napithreadsafefuncrel.cpp | 76 std::string res = "Failed to create threadsafe function em = " + std::string(errorMessage) + in setThreadsafefuncrel() local 79 napi_throw_error(env, NULL, res.c_str()); in setThreadsafefuncrel()
|
/napi_generator/src/cli/dts2cpp/src/gen/tools/ |
H A D | common.js | 191 let res = ''; 195 res += regs1; 197 return res; 204 let res = type.substring(preStrLen, type.length - 1); 205 return res; 212 let res = type.substring(preStrLen, type.length - 1); 213 return res;
|
/napi_generator/src/cli/dts2ets/appCodeGen/src/tools/ |
H A D | common.js | 190 let res = ''; 194 res += regs1; 196 return res; 203 let res = type.substring(preStrLen, type.length - 1); 204 return res; 211 let res = type.substring(preStrLen, type.length - 1); 212 return res;
|
/napi_generator/examples/napitutorials/entry/src/main/cpp/javascriptapi/ |
H A D | common.cpp | 29 std::string res = "Failed to " + myInfo + " em = " + std::to_string(extended_error_info->engine_error_code) + in getErrMsg() local 32 napi_throw_error(env, NULL, res.c_str()); in getErrMsg()
|
/napi_generator/src/cli/h2dtscpp/src/src/tools/ |
H A D | commonTemplete.js | 71 std::string res = "Failed to " + myInfo + " em = " + errorMessage + 74 napi_throw_error(env, NULL, res.c_str());
|
/napi_generator/src/cli/h2sa/src/gen/ |
H A D | generate.js | 589 let res = genFunctionCode(classInfo); 590 files.iServiceH = replaceAll(files.iServiceH, '[funcEnum]', res.funcEnumStr); 591 files.iServiceH = replaceAll(files.iServiceH, '[functions]', res.iServiceFuncH); 592 files.proxyH = replaceAll(files.proxyH, '[functions]', res.proxyFuncH); 593 files.stubH = replaceAll(files.stubH, '[innerFuncDef]', res.stubInnerFuncH); 594 files.serviceH = replaceAll(files.serviceH, '[functions]', res.proxyFuncH); 595 files.proxyCpp = replaceAll(files.proxyCpp, '[remoteFuncImpl]', res.proxyFuncCpp); 596 files.stubCpp = replaceAll(files.stubCpp, '[innerFuncMap]', res.stubInnerFuncMap); 597 files.stubCpp = replaceAll(files.stubCpp, '[innerFuncImpl]', res.stubInnerFuncCpp); 598 files.serviceCpp = replaceAll(files.serviceCpp, '[serviceFuncImpl]', res [all...] |
/napi_generator/examples/napitutorials/entry/src/main/cpp/include/ |
H A D | common.h | 100 extern bool CreateArrayBuffer(napi_env env, uint8_t *src, size_t srcLen, napi_value *res);
|