Home
last modified time | relevance | path

Searched refs:pos (Results 1 - 4 of 4) sorted by relevance

/ide/tools/previewer/jsapp/rich/external/
H A DStageContext.cpp149 size_t pos = inputPath.rfind(spliter); in GetModuleBuffer() local
150 if (pos == std::string::npos) { in GetModuleBuffer()
154 std::string bundleName = inputPath.substr(0, pos); in GetModuleBuffer()
160 std::string moduleName = inputPath.substr(pos + spliter.size()); in GetModuleBuffer()
239 size_t pos = hspPath.rfind(spliter); in GetCloudHspVersion() local
240 if (pos == std::string::npos) { in GetCloudHspVersion()
244 int idx = pos + spliter.size(); in GetCloudHspVersion()
321 int pos = GetUpwardDirIndex(loaderJsonPath, upwardLevel); in GetCloudModuleHspPath() local
322 if (pos < 0) { in GetCloudModuleHspPath()
323 ILOG("GetUpwardDirIndex:%d failed.", pos); in GetCloudModuleHspPath()
453 std::string::size_type pos = path.find_last_of(FileSystem::GetSeparator().c_str()); GetUpwardDirIndex() local
471 size_t pos = ret.rfind(find); ReplaceLastStr() local
[all...]
/ide/tools/previewer/test/unittest/jsapp/
H A DStageContextTest.cpp362 int pos = OHOS::Ide::StageContext::GetInstance().GetUpwardDirIndex(path, 3); in TEST_F() local
363 EXPECT_EQ(pos, 8); // 8 is expect pos value in TEST_F()
H A DJsAppImplTest.cpp465 size_t pos = FileSystem::fileSystemPath.find("aaa"); in TEST_F() local
466 EXPECT_TRUE(pos != std::string::npos); in TEST_F()
/ide/tools/previewer/jsapp/rich/
H A DJsAppImpl.cpp365 std::size_t pos = fPath.find(".idea"); in SetSimulatorCommonParams() local
366 if (pos == std::string::npos) { in SetSimulatorCommonParams()
369 options.previewPath = fPath.substr(0, pos) + ".idea" + FileSystem::GetSeparator() + "previewer"; in SetSimulatorCommonParams()

Completed in 6 milliseconds