Home
last modified time | relevance | path

Searched refs:strPath (Results 1 – 17 of 17) sorted by relevance

/ohos5.0/base/update/updater/utils/
H A Dutils_fs.cpp106 std::string strPath = path; in RemoveDir() local
107 if (strPath.at(strPath.length() - 1) != '/') { in RemoveDir()
108 strPath.append("/"); in RemoveDir()
110 DIR *d = opendir(strPath.c_str()); in RemoveDir()
120 auto file_name = strPath + std::string(dt->d_name); in RemoveDir()
131 return rmdir(strPath.c_str()) == 0 ? true : false; in RemoveDir()
/ohos5.0/base/startup/init/test/unittest/modules/
H A Deng_unittest.cpp42 std::string strPath = path; in RemoveDir() local
43 if (strPath.at(strPath.length() - 1) != '/') { in RemoveDir()
44 strPath.append("/"); in RemoveDir()
46 DIR *d = opendir(strPath.c_str()); in RemoveDir()
56 auto file_name = strPath + std::string(dt->d_name); in RemoveDir()
67 return rmdir(strPath.c_str()) == 0 ? true : false; in RemoveDir()
/ohos5.0/foundation/multimodalinput/input/util/common/src/
H A Dutil.cpp166 static std::string GetFileName(const std::string &strPath) in GetFileName() argument
168 size_t nPos = strPath.find_last_of('/'); in GetFileName()
169 if (strPath.npos == nPos) { in GetFileName()
170 nPos = strPath.find_last_of('\\'); in GetFileName()
172 if (strPath.npos == nPos) { in GetFileName()
173 return strPath; in GetFileName()
176 return strPath.substr(nPos + 1, strPath.npos); in GetFileName()
/ohos5.0/base/telephony/sms_mms/frameworks/native/mms/src/
H A Dmms_attachment.cpp31 bool MmsAttachment::SetAttachmentFilePath(std::string strPath, bool isSmil) in SetAttachmentFilePath() argument
33 if (strPath.empty()) { in SetAttachmentFilePath()
37 strPathName_ = strPath; in SetAttachmentFilePath()
/ohos5.0/foundation/bundlemanager/bundle_framework/interfaces/kits/js/zip/src/
H A Dzip_writer.cpp78 std::string strPath = path.Value(); in OpenNewFileEntry() local
81 strPath += SEPARATOR; in OpenNewFileEntry()
84 return ZipOpenNewFileInZip(zip_file, strPath, options, lastModified); in OpenNewFileEntry()
H A Dzip_internal.cpp272 …zipFile zipFile, const std::string &strPath, const OPTIONS &options, const struct tm *lastModified… in ZipOpenNewFileInZip() argument
279 strPath.c_str(), // filename in ZipOpenNewFileInZip()
/ohos5.0/base/hiviewdfx/hidumper/frameworks/native/src/util/zip/
H A Dzip_writer.cpp156 bool ZipWriter::ZipOpenNewFileInZip(zipFile zip_file, const std::string &strPath) in ZipOpenNewFileInZip() argument
158 DUMPER_HILOGD(MODULE_COMMON, "ZipOpenNewFileInZip enter|strPath=[%{public}s]", strPath.c_str()); in ZipOpenNewFileInZip()
163 int res = zipOpenNewFileInZip4(zip_file, strPath.c_str(), &fileInfo, in ZipOpenNewFileInZip()
/ohos5.0/commonlibrary/ets_utils/js_api_module/url/
H A Djs_url.cpp816 std::string strPath = temp.substr(pos + 1); in AnalysisSpecialFile() local
824 AnalysisFilePath(strPath, urlinfo, flags); in AnalysisSpecialFile()
862 std::string strPath = urlinfo.scheme + input; in AnalysisFilescheme() local
865 AnalysisFilePath(strPath, urlinfo, flags); in AnalysisFilescheme()
1011 std::string strPath = input.substr(pos + 1); in ParsingHostAndPath() local
1491 std::string strPath = input; in SetPath() local
1497 ReplaceSpecialSymbols(strPath, oldstr, newstr); in SetPath()
1502 if ((strPath[0] == '/') || (strPath[0] == '\\' && in SetPath()
1504 strPath = strPath.substr(1); in SetPath()
1514 if ((strPath[0] == '/') || (strPath[0] == '\\' && in SetPath()
[all …]
/ohos5.0/foundation/arkui/ui_lite/test/unittest/components/
H A Dui_image_unit_test.cpp148 const char* strPath = static_cast<const char*>(TIF_IMAGE_PATH); variable
149 imageView_->SetSrc(strPath);
150 EXPECT_STREQ(imageView_->GetPath(), strPath);
/ohos5.0/foundation/bundlemanager/bundle_framework/interfaces/kits/js/zip/include/
H A Dzip_internal.h65 …zipFile zipFile, const std::string &strPath, const OPTIONS &options, const struct tm *lastModified…
/ohos5.0/base/hiviewdfx/hidumper/frameworks/native/include/util/zip/
H A Dzip_writer.h40 static bool ZipOpenNewFileInZip(zipFile zip_file, const std::string &strPath);
/ohos5.0/base/telephony/sms_mms/test/unittest/
H A Dmms_msg_test.h29 void MmsDecodeTest(std::string strPath) const;
H A Dmms_msg_test.cpp145 void MmsMsgTest::MmsDecodeTest(std::string strPath) const in MmsDecodeTest()
148 if (!decodeMsg.DecodeMsg(strPath)) { in MmsDecodeTest()
150 std::cout << "mms file path name:" << strPath << std::endl; in MmsDecodeTest()
/ohos5.0/base/telephony/sms_mms/interfaces/innerkits/
H A Dmms_attachment.h37 bool SetAttachmentFilePath(std::string strPath, bool isSmil = false);
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/text/fontmgr_fuzzer/
H A Dfontmgr_fuzzer.cpp378 std::string strPath(path); in FontMgrFuzzTest010() local
380 fontMgr->ParseInstallFontConfig(strPath, fontPathVec); in FontMgrFuzzTest010()
/ohos5.0/commonlibrary/c_utils/base/test/benchmarktest/directory_benchmark_test/
H A Ddirectory_benchmark_test.cpp93 string strPath = ExtractFilePath(GetCurrentProcFullFileName()); in BENCHMARK_F() local
94 AssertEqual(strFilePath, strPath, "strFilePath did not equal strPath as expected.", state); in BENCHMARK_F()
/ohos5.0/commonlibrary/c_utils/base/test/unittest/common/
H A Dutils_directory_test.cpp83 string strPath = ExtractFilePath(GetCurrentProcFullFileName()); variable
84 EXPECT_EQ(strFilePath, strPath);