/ohos5.0/base/update/updater/utils/ |
H A D | utils_fs.cpp | 106 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 D | eng_unittest.cpp | 42 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 D | util.cpp | 166 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 D | mms_attachment.cpp | 31 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 D | zip_writer.cpp | 78 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 D | zip_internal.cpp | 272 …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 D | zip_writer.cpp | 156 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 D | js_url.cpp | 816 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 D | ui_image_unit_test.cpp | 148 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 D | zip_internal.h | 65 …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 D | zip_writer.h | 40 static bool ZipOpenNewFileInZip(zipFile zip_file, const std::string &strPath);
|
/ohos5.0/base/telephony/sms_mms/test/unittest/ |
H A D | mms_msg_test.h | 29 void MmsDecodeTest(std::string strPath) const;
|
H A D | mms_msg_test.cpp | 145 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 D | mms_attachment.h | 37 bool SetAttachmentFilePath(std::string strPath, bool isSmil = false);
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/text/fontmgr_fuzzer/ |
H A D | fontmgr_fuzzer.cpp | 378 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 D | directory_benchmark_test.cpp | 93 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 D | utils_directory_test.cpp | 83 string strPath = ExtractFilePath(GetCurrentProcFullFileName()); variable 84 EXPECT_EQ(strFilePath, strPath);
|