Searched refs:strPath (Results 1 – 9 of 9) sorted by relevance
/base/msdp/device_status/utils/common/src/ |
D | util.cpp | 157 static std::string GetFileName(const std::string &strPath) in GetFileName() argument 159 size_t nPos = strPath.find_last_of('/'); in GetFileName() 160 if (strPath.npos == nPos) { in GetFileName() 161 nPos = strPath.find_last_of('\\'); in GetFileName() 163 if (strPath.npos == nPos) { in GetFileName() 164 return strPath; in GetFileName() 167 return strPath.substr(nPos + 1, strPath.npos); in GetFileName()
|
/base/startup/init/test/unittest/modules/ |
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()
|
/base/telephony/sms_mms/frameworks/native/mms/src/ |
D | mms_attachment.cpp | 30 bool MmsAttachment::SetAttachmentFilePath(std::string strPath, bool isSmil) in SetAttachmentFilePath() argument 32 if (strPath.empty()) { in SetAttachmentFilePath() 36 strPathName_ = strPath; in SetAttachmentFilePath()
|
/base/hiviewdfx/hidumper/frameworks/native/src/util/zip/ |
D | zip_writer.cpp | 155 bool ZipWriter::ZipOpenNewFileInZip(zipFile zip_file, const std::string &strPath) in ZipOpenNewFileInZip() argument 157 DUMPER_HILOGD(MODULE_COMMON, "ZipOpenNewFileInZip enter|strPath=[%{public}s]", strPath.c_str()); in ZipOpenNewFileInZip() 162 int res = zipOpenNewFileInZip4(zip_file, strPath.c_str(), &fileInfo, in ZipOpenNewFileInZip()
|
/base/telephony/sms_mms/test/unittest/ |
D | mms_msg_test.h | 29 void MmsDecodeTest(std::string strPath) const;
|
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()
|
/base/hiviewdfx/hidumper/frameworks/native/include/util/zip/ |
D | zip_writer.h | 40 static bool ZipOpenNewFileInZip(zipFile zip_file, const std::string &strPath);
|
/base/update/updater/utils/ |
D | utils.cpp | 592 std::string strPath = path; in RemoveDir() local 593 if (strPath.at(strPath.length() - 1) != '/') { in RemoveDir() 594 strPath.append("/"); in RemoveDir() 596 DIR *d = opendir(strPath.c_str()); in RemoveDir() 606 auto file_name = strPath + std::string(dt->d_name); in RemoveDir() 617 return rmdir(strPath.c_str()) == 0 ? true : false; in RemoveDir()
|
/base/telephony/sms_mms/interfaces/innerkits/ |
D | mms_attachment.h | 37 bool SetAttachmentFilePath(std::string strPath, bool isSmil = false);
|