• Home
  • Raw
  • Download

Lines Matching refs:CString

21 CString ModulePathHelper::ConcatFileNameWithMerge(JSThread *thread, const JSPandaFile *jsPandaFile,  in ConcatFileNameWithMerge()
22 CString &baseFileName, CString recordName, CString requestName) in ConcatFileNameWithMerge()
24 CString entryPoint; in ConcatFileNameWithMerge()
45 CString msg = "failed to load module'" + requestName + "' which imported by '" + in ConcatFileNameWithMerge()
64 void ModulePathHelper::ParseOhmUrl(EcmaVM *vm, const CString &inputFileName, in ParseOhmUrl()
65 CString &outBaseFileName, CString &outEntryPoint) in ParseOhmUrl()
67 CString bundleInstallName(BUNDLE_INSTALL_PATH); in ParseOhmUrl()
69 size_t pos = CString::npos; in ParseOhmUrl()
74 if (pos != CString::npos) { in ParseOhmUrl()
77 if (pos == CString::npos) { in ParseOhmUrl()
80 CString moduleName = inputFileName.substr(startStrLen, pos - startStrLen); in ParseOhmUrl()
118 CString ModulePathHelper::ParseUrl(EcmaVM *vm, const CString &recordName) in ParseUrl()
120 CVector<CString> vec; in ParseUrl()
124 return CString(); in ParseUrl()
126 CString bundleName = vec[0]; in ParseUrl()
127 CString moduleName = vec[1]; in ParseUrl()
130 CString baseFileName; in ParseUrl()
148 CString ModulePathHelper::ParsePrefixBundle(JSThread *thread, const JSPandaFile *jsPandaFile, in ParsePrefixBundle()
149 …[[maybe_unused]] CString &baseFileName, CString moduleRequestName, [[maybe_unused]] CString record… in ParsePrefixBundle()
153 CString entryPoint = moduleRequestName; in ParsePrefixBundle()
155 CVector<CString> vec; in ParsePrefixBundle()
159 return CString(); in ParsePrefixBundle()
161 CString bundleName = vec[0]; in ParsePrefixBundle()
162 CString moduleName = vec[1]; in ParsePrefixBundle()
176 CVector<CString> currentVec; in ParsePrefixBundle()
180 return CString(); in ParsePrefixBundle()
182 CString currentModuleName = currentVec[1]; in ParsePrefixBundle()
203 CString ModulePathHelper::MakeNewRecord(const JSPandaFile *jsPandaFile, CString &baseFileName, in MakeNewRecord()
204 const CString &recordName, const CString &requestName) in MakeNewRecord()
206 CString entryPoint; in MakeNewRecord()
207 CString moduleRequestName = RemoveSuffix(requestName); in MakeNewRecord()
213 if (pos != CString::npos) { in MakeNewRecord()
232 if (pos != CString::npos) { in MakeNewRecord()
238 if (pos != CString::npos) { in MakeNewRecord()
251 CString ModulePathHelper::FindOhpmEntryPoint(const JSPandaFile *jsPandaFile, in FindOhpmEntryPoint()
252 const CString& ohpmPath, const CString& requestName) in FindOhpmEntryPoint()
254 CVector<CString> vec; in FindOhpmEntryPoint()
257 CString ohpmKey; in FindOhpmEntryPoint()
262CString maybeKey = ohpmPath + PathHelper::SLASH_TAG + StringHelper::JoinString(vec, 0, index); in FindOhpmEntryPoint()
271 return CString(); in FindOhpmEntryPoint()
274 CString entryPoint; in FindOhpmEntryPoint()
287 CString ModulePathHelper::FindPackageInTopLevelWithNamespace(const JSPandaFile *jsPandaFile, in FindPackageInTopLevelWithNamespace()
288 const CString& requestName, const CString &recordName) in FindPackageInTopLevelWithNamespace()
291 CString entryPoint; in FindPackageInTopLevelWithNamespace()
292 CString ohpmPath; in FindPackageInTopLevelWithNamespace()
295 if (pos == CString::npos) { in FindPackageInTopLevelWithNamespace()
297 return CString(); in FindPackageInTopLevelWithNamespace()
302 CVector<CString> vec; in FindPackageInTopLevelWithNamespace()
306 return CString(); in FindPackageInTopLevelWithNamespace()
308 CString moduleName = vec[1]; in FindPackageInTopLevelWithNamespace()
311 if (pos != CString::npos) { in FindPackageInTopLevelWithNamespace()
314 ohpmPath = CString(PACKAGE_PATH_SEGMENT) + PathHelper::NAME_SPACE_TAG + moduleName; in FindPackageInTopLevelWithNamespace()
329 CString ModulePathHelper::ParseOhpmPackage(const JSPandaFile *jsPandaFile, in ParseOhpmPackage()
330 const CString &recordName, const CString &requestName) in ParseOhpmPackage()
332 CString entryPoint; in ParseOhpmPackage()
337 CString packageName = info.npmPackageName; in ParseOhpmPackage()
339 if (pos != CString::npos) { in ParseOhpmPackage()
342 CString ohpmPath = packageName + PACKAGE_PATH_SEGMENT; in ParseOhpmPackage()
360 CString ModulePathHelper::ParseThirdPartyPackage(const JSPandaFile *jsPandaFile, in ParseThirdPartyPackage()
361 const CString &recordName, const CString &requestName, const CString &packagePath) in ParseThirdPartyPackage()
363 CString entryPoint; in ParseThirdPartyPackage()
366 CString packageName = info.npmPackageName; // pkg_modules/.ohpm/pkgName/pkg_modules/pkgName in ParseThirdPartyPackage()
369CString key = packageName + PathHelper::SLASH_TAG + packagePath + PathHelper::SLASH_TAG + requestN… in ParseThirdPartyPackage()
375 if (pos == CString::npos || pos < 0) { in ParseThirdPartyPackage()
389 CString ModulePathHelper::ParseThirdPartyPackage(const JSPandaFile *jsPandaFile, in ParseThirdPartyPackage()
390 const CString &recordName, const CString &requestName) in ParseThirdPartyPackage()
393 CString normalizeRequestName = PathHelper::NormalizePath(requestName); in ParseThirdPartyPackage()
394 CString entryPoint = ParseOhpmPackage(jsPandaFile, recordName, normalizeRequestName); in ParseThirdPartyPackage()
399 … static CVector<CString> packagePaths = {CString(PACKAGE_PATH_SEGMENT), CString(NPM_PATH_SEGMENT)}; in ParseThirdPartyPackage()
407 return CString(); in ParseThirdPartyPackage()
420 CString fullName = jsPandaFile->GetJSPandaFileDesc(); in ResolveCurrentPath()
429 CString ModulePathHelper::FindNpmEntryPoint(const JSPandaFile *jsPandaFile, const CString &packageE… in FindNpmEntryPoint()
432 CString entryPoint = ConfirmLoadingIndexOrNot(jsPandaFile, packageEntryPoint); in FindNpmEntryPoint()
445 CString ModulePathHelper::FindPackageInTopLevel(const JSPandaFile *jsPandaFile, in FindPackageInTopLevel()
446 const CString& requestName, const CString &packagePath) in FindPackageInTopLevel()
449 CString entryPoint; in FindPackageInTopLevel()
451 CString levelStr = std::to_string(level).c_str(); in FindPackageInTopLevel()
452CString key = packagePath + PathHelper::SLASH_TAG + levelStr + PathHelper::SLASH_TAG + requestName; in FindPackageInTopLevel()
458 return CString(); in FindPackageInTopLevel()
461 bool ModulePathHelper::IsImportFile(const CString &moduleRequestName) in IsImportFile()
467 if (pos != CString::npos) { in IsImportFile()
468 CString suffix = moduleRequestName.substr(pos); in IsImportFile()
480 CString ModulePathHelper::RemoveSuffix(const CString &requestName) in RemoveSuffix()
482 CString res = requestName; in RemoveSuffix()
484 if (pos != CString::npos) { in RemoveSuffix()
485 CString suffix = res.substr(pos); in RemoveSuffix()