Home
last modified time | relevance | path

Searched refs:curJsModulePath (Results 1 – 7 of 7) sorted by relevance

/ohos5.0/foundation/ability/ability_runtime/test/unittest/file_path_utils_test/
H A Dfile_path_utils_test.cpp260 const std::string& curJsModulePath = "/data/bundle"; variable
274 const std::string& curJsModulePath = "/data/bundlescurJsModulePath"; variable
400 const std::string& curJsModulePath = ""; variable
415 const std::string& curJsModulePath = ""; variable
445 const std::string& curJsModulePath = ""; variable
460 const std::string& curJsModulePath = ""; variable
490 const std::string& curJsModulePath = ""; variable
520 const std::string& curJsModulePath = ""; variable
535 const std::string& curJsModulePath = ""; variable
550 const std::string& curJsModulePath = ""; variable
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/utils/
H A Djsi_module_searcher.cpp133 if (curJsModulePath.empty() || newJsModuleUri.empty()) { in operator ()()
143 newJsModulePath = ParseOhmUri(curJsModulePath, newJsModuleUri); in operator ()()
145 newJsModulePath = FindNpmPackage(curJsModulePath, newJsModuleUri); in operator ()()
150 newJsModulePath = FindNpmPackage(curJsModulePath, newJsModuleUri); in operator ()()
188 pos = curJsModulePath.find(SEPERATOR, pos + 1); in GetInstallPath()
194 return curJsModulePath.substr(0, pos + 1); in GetInstallPath()
198 const std::string& curJsModulePath, const std::string& newJsModuleUri) const in MakeNewJsModulePath() argument
200 std::string moduleInstallPath = GetInstallPath(curJsModulePath, true); in MakeNewJsModulePath()
206 SplitString(curJsModulePath, pathVector, moduleInstallPath.length()); in MakeNewJsModulePath()
338 moduleInstallPath = GetInstallPath(curJsModulePath, false); in ParseOhmUri()
[all …]
H A Djsi_module_searcher.h32 …std::string operator()(const std::string& curJsModulePath, const std::string& newJsModuleUri) cons…
36 std::string GetInstallPath(const std::string& curJsModulePath, bool module = true) const;
37 …std::string MakeNewJsModulePath(const std::string& curJsModulePath, const std::string& newJsModule…
41 …std::string FindNpmPackage(const std::string& curJsModulePath, const std::string& npmPackage) cons…
42 …std::string ParseOhmUri(const std::string& curJsModulePath, const std::string& newJsModuleUri) con…
/ohos5.0/foundation/ability/ability_base/interfaces/kits/native/extractortool/src/
H A Dfile_path_utils.cpp144 if (!StringStartWith(curJsModulePath, OTHER_BUNDLE_INSTALL_PATH, in GetInstallPath()
156 pos = curJsModulePath.find('/', pos + 1); in GetInstallPath()
162 return curJsModulePath.substr(0, pos + 1); in GetInstallPath()
166 const std::string& curJsModulePath, const std::string& newJsModuleUri) in MakeNewJsModulePath() argument
168 std::string moduleInstallPath = GetInstallPath(curJsModulePath, true); in MakeNewJsModulePath()
174 SplitString(curJsModulePath, pathVector, moduleInstallPath.length()); in MakeNewJsModulePath()
277 std::string moduleInstallPath = GetInstallPath(curJsModulePath); in FindNpmPackage()
282 SplitString(curJsModulePath, pathVector, moduleInstallPath.length()); in FindNpmPackage()
347 moduleInstallPath = GetInstallPath(curJsModulePath, false); in ParseOhmUri()
359 moduleInstallPath = GetInstallPath(curJsModulePath); in ParseOhmUri()
[all …]
/ohos5.0/foundation/ability/ability_base/interfaces/kits/native/extractortool/include/
H A Dfile_path_utils.h30 std::string GetInstallPath(const std::string& curJsModulePath, bool module = true);
31 …std::string MakeNewJsModulePath(const std::string& curJsModulePath, const std::string& newJsModule…
35 std::string FindNpmPackage(const std::string& curJsModulePath, const std::string& npmPackage);
36 std::string ParseOhmUri(const std::string& originBundleName, const std::string& curJsModulePath,
39 …const std::string& bundleName, const std::string& curJsModulePath, const std::string& newJsModuleU…
/ohos5.0/foundation/ability/ability_runtime/frameworks/native/runtime/
H A Djs_module_searcher.cpp27 std::string JsModuleSearcher::operator()(const std::string& curJsModulePath, const std::string& new… in operator ()() argument
29 return AbilityBase::NormalizeUri(bundleName_, curJsModulePath, newJsModuleUri); in operator ()()
H A Djs_module_searcher.h35 …std::string operator()(const std::string& curJsModulePath, const std::string& newJsModuleUri) cons…