Home
last modified time | relevance | path

Searched refs:args (Results 1 - 25 of 46) sorted by relevance

12

/napi_generator/src/cli/h2sa/src/tools/
H A Dtool.js23 function print(...args) {
25 vscode.window.showInformationMessage(...args);
27 console.log(...args);
30 String.prototype.format = function (...args) {
33 for (let i = 0; i < args.length; i++) {
38 result = result.substring(0, p) + args[i] + result.substring(p + 2, result.length);
43 String.prototype.replaceAll = function (...args) {
45 while (result.indexOf(args[0]) >= 0) {
46 result = result.replace(args[0], args[
[all...]
H A Dnapi_log.js84 function print(...args) {
86 vscode.window.showInformationMessage(...args);
88 console.log(args + '');
91 function recordLog(lev, ...args) {
92 let origMsgInfo = args;
95 let detail = args.join(' ');
108 NapiLog.logError = function (...args) {
109 let logInfo = recordLog(NapiLog.LEV_ERROR, args);
113 NapiLog.logDebug = function (...args) {
114 recordLog(NapiLog.LEV_DEBUG, args);
[all...]
/napi_generator/src/tool/api/api_scan_vs_plugin/src/gen/tools/
H A DVsPluginLog.js49 function recordLog(lev, ...args) {
51 let detail = args.join(' ');
62 VsPluginLog.logError = function (...args) {
63 recordLog(VsPluginLog.LEV_ERROR, args);
66 VsPluginLog.logDebug = function (...args) {
67 recordLog(VsPluginLog.LEV_DEBUG, args);
70 VsPluginLog.logInfo = function (...args) {
71 recordLog(VsPluginLog.LEV_INFO, args);
/napi_generator/src/cli/dts2cpp/src/gen/tools/
H A DNapiLog.js97 function print(...args) {
99 vscode.window.showInformationMessage(...args);
101 console.log(args + '');
104 function recordLog(lev, ...args) {
105 let origMsgInfo = args;
108 let detail = args.join(' ');
121 NapiLog.logError = function (...args) {
122 let logInfo = recordLog(NapiLog.LEV_ERROR, args);
126 NapiLog.logDebug = function (...args) {
127 recordLog(NapiLog.LEV_DEBUG, args);
[all...]
H A Dtool.js30 function print(...args) {
32 vscode.window.showInformationMessage(...args);
34 console.log(...args);
37 String.prototype.format = function (...args) {
40 for (let i = 0; i < args.length; i++) {
45 result = result.substring(0, p) + args[i] + result.substring(p + 2, result.length);
50 String.prototype.replaceAll = function (...args) {
52 while (result.indexOf(args[0]) >= 0) {
53 result = result.replace(args[0], args[
[all...]
/napi_generator/src/cli/dts2ets/appCodeGen/src/tools/
H A DNapiLog.js97 function print(...args) {
99 vscode.window.showInformationMessage(...args);
101 console.log(args + '');
104 function recordLog(lev, ...args) {
105 let origMsgInfo = args;
108 let detail = args.join(' ');
121 NapiLog.logError = function (...args) {
122 let logInfo = recordLog(NapiLog.LEV_ERROR, args);
126 NapiLog.logDebug = function (...args) {
127 recordLog(NapiLog.LEV_DEBUG, args);
[all...]
H A Dtool.js30 function print(...args) {
32 vscode.window.showInformationMessage(...args);
34 console.log(...args);
37 String.prototype.format = function (...args) {
40 for (let i = 0; i < args.length; i++) {
45 result = result.substring(0, p) + args[i] + result.substring(p + 2, result.length);
50 String.prototype.replaceAll = function (...args) {
52 while (result.indexOf(args[0]) >= 0) {
53 result = result.replace(args[0], args[
[all...]
/napi_generator/src/cli/h2dts/src/tsGen/tools/
H A DNapiLog.js99 function print(...args) {
101 vscode.window.showInformationMessage(...args);
103 console.log(args + '');
106 function recordLog(lev, ...args) {
107 let origMsgInfo = args;
110 let detail = args.join(' ');
123 NapiLog.logError = function (...args) {
124 let logInfo = recordLog(NapiLog.LEV_ERROR, args);
128 NapiLog.logDebug = function (...args) {
129 recordLog(NapiLog.LEV_DEBUG, args);
[all...]
H A Dre.js70 function pathJoin(...args) {
71 return path.join(...args);
/napi_generator/src/cli/h2dtscpp/src/src/tools/
H A DNapiLog.js97 function print(...args) {
99 vscode.window.showInformationMessage(...args);
101 console.log(args + '');
104 function recordLog(lev, ...args) {
105 let origMsgInfo = args;
108 let detail = args.join(' ');
121 NapiLog.logError = function (...args) {
122 let logInfo = recordLog(NapiLog.LEV_ERROR, args);
126 NapiLog.logDebug = function (...args) {
127 recordLog(NapiLog.LEV_DEBUG, args);
[all...]
/napi_generator/examples/napitutorials/entry/src/main/cpp/
H A Dinit.cpp32 napi_value args[2] = {nullptr}; in Add() local
34 napi_get_cb_info(env, info, &argc, args, nullptr, nullptr); in Add()
37 napi_typeof(env, args[0], &valuetype0); in Add()
40 napi_typeof(env, args[1], &valuetype1); in Add()
43 napi_get_value_double(env, args[0], &value0); in Add()
46 napi_get_value_double(env, args[1], &value1); in Add()
58 napi_value args[1] = {nullptr}; in getTestCase() local
62 napi_get_cb_info(env, info, &argc, args, nullptr, nullptr); in getTestCase()
65 napi_typeof(env, args[0], &valuetype0); in getTestCase()
68 napi_get_value_uint32(env, args[ in getTestCase()
[all...]
/napi_generator/examples/napitutorials/entry/src/main/cpp/basesample/
H A Dbasesample.cpp22 napi_value args[2] = {nullptr}; in Add() local
26 napi_get_cb_info(env, info, &argc, args, nullptr, nullptr); in Add()
29 napi_typeof(env, args[0], &valuetype0); in Add()
32 napi_typeof(env, args[1], &valuetype1); in Add()
35 napi_get_value_double(env, args[0], &value0); in Add()
38 napi_get_value_double(env, args[1], &value1); in Add()
/napi_generator/src/cli/dts2cpp/src/gen/
H A Dcmd_gen.js25 'filename': { key: 'f', args: 1, description: '.d.ts file', default: '' },
26 'directory': { key: 'd', args: 1, description: '.d.ts directory', default: '' },
27 'imports': { key: 'i', args: 1, description: 'enable or disable support imports self-define file', default: false },
28 'out': { key: 'o', args: 1, description: 'output directory', default: '.' },
29 'loglevel': { key: 'l', args: 1, description: 'Log Level : 0~3', default: '1' },
31 'numbertype':{key: 'n', args: 1, description: 'optional elemtype: basic cpp elemtype', default: 'uint32_t'},
32 'tsGen':{key: 't', args: 1, description: 'enable or disable generate typescript file', default: false },
39 'serviceCode': {key: 's', args: 1, description: 'configure the service code', default: ''}
/napi_generator/src/cli/h2dts/src/tsGen/
H A Dcmd_gen.js24 'filename': { key: 'f', args: 1, description: '.d.ts file', default: '' },
25 'directory': { key: 'd', args: 1, description: '.d.ts directory', default: '' },
26 'out': { key: 'o', args: 1, description: 'output directory', default: '.' },
27 'loglevel': { key: 'l', args: 1, description: 'Log Level : 0~3', default: '1' },
28 'tsGen':{key: 't', args: 1, description: 'enable or disable generate typescript file', default: false },
51 function print(...args) {
53 vscode.window.showInformationMessage(...args);
55 console.log(...args);
/napi_generator/src/cli/dts2ets/appCodeGen/src/
H A Dapp_code_gen.js26 'filename': { key: 'f', args: 1, description: '.d.ts file', default: '@ohos.napitest.d.ts' },
27 'out': { key: 'o', args: 1, description: 'output directory', default: '.' },
28 'loglevel': { key: 'l', args: 1, description: 'Log Level : 0~3', default: '1' },
37 'functionsCfg': { key: 'c', args: 1, description: 'configured file including the functions for test', default: '' }
/napi_generator/examples/napitutorials/entry/src/main/cpp/javascriptapi/jsabstractops/
H A Dnapicoercetostring.cpp27 napi_value args[1] = {nullptr}; in testNapiCoerceToString() local
30 // Get args in testNapiCoerceToString()
31 status = napi_get_cb_info(env, info, &argc, args, nullptr, nullptr); in testNapiCoerceToString()
38 status = napi_coerce_to_string(env, args[0], &result); in testNapiCoerceToString()
H A Dnapicoercetoobject.cpp27 napi_value args[1] = {nullptr}; in testNapiCoerceToObject() local
30 // Get args in testNapiCoerceToObject()
31 status = napi_get_cb_info(env, info, &argc, args, nullptr, nullptr); in testNapiCoerceToObject()
38 status = napi_coerce_to_object(env, args[0], &result); in testNapiCoerceToObject()
H A Dnapicoercetonumber.cpp27 napi_value args[1] = {nullptr}; in testNapiCoerceToNumber() local
30 // Get args in testNapiCoerceToNumber()
31 status = napi_get_cb_info(env, info, &argc, args, nullptr, nullptr); in testNapiCoerceToNumber()
38 status = napi_coerce_to_number(env, args[0], &result); in testNapiCoerceToNumber()
H A Dnapicoercetobool.cpp27 napi_value args[1] = {nullptr}; in testNapiCoerceToBool() local
30 // Get args in testNapiCoerceToBool()
31 status = napi_get_cb_info(env, info, &argc, args, nullptr, nullptr); in testNapiCoerceToBool()
38 status = napi_coerce_to_bool(env, args[0], &result); in testNapiCoerceToBool()
H A Dnapitypeof.cpp28 napi_value args[PARAM1] = {nullptr}; in testNapiTypeof() local
31 // Get args in testNapiTypeof()
32 status = napi_get_cb_info(env, info, &argc, args, nullptr, nullptr); in testNapiTypeof()
44 status = napi_typeof(env, args[PARAM0], &result); in testNapiTypeof()
/napi_generator/examples/napitutorials/entry/src/main/cpp/ncpp/cjsoncase/
H A Dcjsongetarraysizecase.cpp38 /* [NAPI_GEN]: args: 一个数组,保存js传入的参数 */ in KH373_cJSON_GetArraySize()
39 napi_value args[PARAMS1] = {nullptr}; in KH373_cJSON_GetArraySize() local
44 * args: 一个足够大的数组,用于接收传递给回调函数的所有js参数。数组的大小应至少与argc传入的值一样大。 in KH373_cJSON_GetArraySize()
48 status = napi_get_cb_info(env, info, &argc, args, nullptr, nullptr); in KH373_cJSON_GetArraySize()
54 /* [NAPI_GEN]: 从args数组中获取入参 */ in KH373_cJSON_GetArraySize()
58 status = napi_get_named_property(env, args[0], "valuestring", &arrayStringObj); // 读取属性 in KH373_cJSON_GetArraySize()
H A Dcjsonprintcase.cpp93 /* [NAPI_GEN]: args: 一个数组,保存js传入的参数 */ in KH735_cJSON_Print()
94 napi_value args[PARAMS1] = {nullptr}; in KH735_cJSON_Print() local
99 * args: 一个足够大的数组,用于接收传递给回调函数的所有js参数。数组的大小应至少与argc传入的值一样大。 in KH735_cJSON_Print()
103 status = napi_get_cb_info(env, info, &argc, args, nullptr, nullptr); in KH735_cJSON_Print()
111 char *resultStr = getCjsonPrintRes(env, args[PARAMS0]); in KH735_cJSON_Print()
/napi_generator/src/cli/h2hdf/src/
H A Dmain.js22 'drivername': { key: 'n', args: 1, description: 'driver name', default: 'hello' },
24 'version': { key: 'v', args: 1, description: 'source version', default: '4.1' },
26 'out': { key: 'o', args: 1, description: 'output directory', default: '' },
/napi_generator/src/cli/h2sa/src/gen/
H A Dmain.js27 'filename': { key: 'f', args: 1, description: '.h file', default: '' },
28 'out': { key: 'o', args: 1, description: 'output directory', default: '.' },
29 'loglevel': { key: 'l', args: 1, description: 'Log Level: 0~3', default: '1' },
30 'serviceId': { key: 's', args: 1, description: 'service register id: 9000~16777214', default: '19000' },
31 'versionTag': { key: 'v', args: 1, description: 'version tag: 4.1 / 3.2', default: '3.2' }
/napi_generator/src/cli/h2dtscpp/src/src/
H A Dmain.js22 'filename': { key: 'f', args: 1, description: '.h file', default: '' },
24 'out': { key: 'o', args: 1, description: 'out path', default: '' },

Completed in 8 milliseconds

12