Lines Matching refs:replaceAll
17 const { replaceAll, getTab } = require('../tools/tool');
302 newMarshall.marshallFuncH = replaceAll(
476 let proxyFunc = replaceAll(proxyFuncTemplate, '[className]', className);
477 proxyFunc = replaceAll(proxyFunc, '[funcName]', funcInfo.name);
478 proxyFunc = replaceAll(proxyFunc, '[params]', paramStr);
479 proxyFunc = replaceAll(proxyFunc, '[retType]', funcInfo.retType);
480 proxyFunc = replaceAll(proxyFunc, '[funcEnum]', funcInfo.funcEnum);
490 proxyFunc = replaceAll(proxyFunc, '[writeData]', writeDataStr);
504 proxyFunc = replaceAll(proxyFunc, '[readReply]', readReplyStr);
510 let innerFunc = replaceAll(stubInnerFuncTemplate, '[className]', className);
511 innerFunc = replaceAll(innerFunc, '[funcName]', funcInfo.name);
535 innerFunc = replaceAll(innerFunc, '[readData]', readDataStr);
548 innerFunc = replaceAll(innerFunc, '[writeReply]', writeReplyStr);
553 let serviceFunc = replaceAll(serviceFuncImplTemplate, '[retType]', funcInfo.retType);
580 serviceFunc = replaceAll(serviceFunc, '[initRetvalue]', initRetvalue);
581 serviceFunc = replaceAll(serviceFunc, '[className]', className);
582 serviceFunc = replaceAll(serviceFunc, '[funcName]', funcInfo.name);
583 serviceFunc = replaceAll(serviceFunc, '[params]', paramStr);
584 serviceFunc = replaceAll(serviceFunc, '[paramsName]', paramsName);
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.serviceFuncCpp);
599 files.clientCpp = replaceAll(files.clientCpp, '[clientFuncInvoke]', res.clientFuncCpp);
600 files.clientCpp = replaceAll(files.clientCpp, '[clientFuncParaMessage]', res.clientFuncMessage);
601 files.clientCpp = replaceAll(files.clientCpp, '[clientFuncParaLogMessage]', res.clientFuncLogMessage);
607 files.iServiceH = replaceAll(iServiceHTemplate, '[marcoName]', upperServiceName);
608 files.proxyH = replaceAll(proxyHTemplate, '[marcoName]', upperServiceName);
609 files.stubH = replaceAll(stubHTemplate, '[marcoName]', upperServiceName);
610 files.serviceH = replaceAll(serviceHTemplate, '[marcoName]', upperServiceName);
613 files.serviceCpp = replaceAll(serviceCppTemplate, '[marcoName]', upperServiceName);
614 files.clientCpp = replaceAll(clientCppTemplate, '[marcoName]', upperServiceName);
619 files.buildGn = replaceAll(buildGnTemplate41, '[lowServiceName]', lowServiceName);
620 files.bundleJson = replaceAll(bundleJsonTemplate41, '[lowServiceName]', lowServiceName);
621 files.profileJson = replaceAll(profileJsonTemplate, '[lowServiceName]', lowServiceName);
622 files.profileJson = replaceAll(files.profileJson, '[serviceId]', rootInfo.serviceId);
623 files.profileGn = replaceAll(profileGnTemplate41, '[lowServiceName]', lowServiceName);
624 files.serviceCfg = replaceAll(serviceCfgTemplate41, '[lowServiceName]', lowServiceName);
626 files.buildGn = replaceAll(buildGnTemplate, '[lowServiceName]', lowServiceName);
627 files.bundleJson = replaceAll(bundleJsonTemplate, '[lowServiceName]', lowServiceName);
628 files.profileXml = replaceAll(profileXmlTemplate, '[lowServiceName]', lowServiceName);
629 files.profileXml = replaceAll(files.profileXml, '[serviceId]', rootInfo.serviceId);
630 files.profileGn = replaceAll(profileGnTemplate, '[lowServiceName]', lowServiceName);
631 files.serviceCfg = replaceAll(serviceCfgTemplate, '[lowServiceName]', lowServiceName);
633 files.buildGn = replaceAll(files.buildGn, '[stubCppFile]', fileContent.stubCppFile.name);
634 files.buildGn = replaceAll(files.buildGn, '[serviceCppFile]', fileContent.serviceCppFile.name);
635 files.buildGn = replaceAll(files.buildGn, '[proxyCppFile]', fileContent.proxyCppFile.name);
636 files.buildGn = replaceAll(files.buildGn, '[clientCppFile]', fileContent.clientCppFile.name);
637 files.buildGn = replaceAll(files.buildGn, '[iServiceCppFile]', fileContent.iServiceCppFile.name);
638 files.profileGn = replaceAll(files.profileGn, '[serviceId]', rootInfo.serviceId);
639 files.serviceGnCfg = replaceAll(serviceCfgGnTemplate, '[lowServiceName]', lowServiceName);
644 files.iServiceH = replaceAll(files.iServiceH, '[className]', classInfo.name);
645 files.proxyH = replaceAll(files.proxyH, '[className]', classInfo.name);
646 files.stubH = replaceAll(files.stubH, '[className]', classInfo.name);
647 files.serviceH = replaceAll(files.serviceH, '[className]', classInfo.name);
648 files.proxyCpp = replaceAll(files.proxyCpp, '[className]', classInfo.name);
649 files.stubCpp = replaceAll(files.stubCpp, '[className]', classInfo.name);
650 files.serviceCpp = replaceAll(files.serviceCpp, '[className]', classInfo.name);
651 files.clientCpp = replaceAll(files.clientCpp, '[className]', classInfo.name);
655 files.iServiceH = replaceAll(files.iServiceH, '[serviceName]', rootInfo.serviceName);
656 files.proxyH = replaceAll(files.proxyH, '[serviceName]', rootInfo.serviceName);
657 files.stubH = replaceAll(files.stubH, '[serviceName]', rootInfo.serviceName);
658 files.serviceH = replaceAll(files.serviceH, '[serviceName]', rootInfo.serviceName);
659 files.proxyCpp = replaceAll(files.proxyCpp, '[serviceName]', rootInfo.serviceName);
660 files.stubCpp = replaceAll(files.stubCpp, '[serviceName]', rootInfo.serviceName);
661 files.serviceCpp = replaceAll(files.serviceCpp, '[serviceName]', rootInfo.serviceName);
662 files.clientCpp = replaceAll(files.clientCpp, '[serviceName]', rootInfo.serviceName);
666 files.iServiceH = replaceAll(files.iServiceH, '[includes]', getIncludeStr(rootInfo.includes));
667 files.proxyH = replaceAll(files.proxyH, '[iServiceHInclude]', fileContent.iServiceHFile.name);
668 files.stubH = replaceAll(files.stubH, '[iServiceHInclude]', fileContent.iServiceHFile.name);
669 files.serviceH = replaceAll(files.serviceH, '[stubHInclude]', fileContent.stubHFile.name);
670 files.proxyCpp = replaceAll(files.proxyCpp, '[proxyHInclude]', fileContent.proxyHFile.name);
671 files.stubCpp = replaceAll(files.stubCpp, '[stubHInclude]', fileContent.stubHFile.name);
672 files.serviceCpp = replaceAll(files.serviceCpp, '[serviceHInclude]', fileContent.serviceHFile.name);
673 files.clientCpp = replaceAll(files.clientCpp, '[proxyHInclude]', fileContent.proxyHFile.name);
674 files.iServiceCpp = replaceAll(files.iServiceCpp, '[iServiceHInclude]', fileContent.iServiceHFile.name);
678 files.iServiceH = replaceAll(files.iServiceH, '[using]', getUsingStr(rootInfo.using));