Home
last modified time | relevance | path

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

/base/msdp/device_status/utils/common/src/
Dutil.cpp157 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/
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()
/base/telephony/sms_mms/frameworks/native/mms/src/
Dmms_attachment.cpp30 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/
Dzip_writer.cpp155 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/
Dmms_msg_test.h29 void MmsDecodeTest(std::string strPath) const;
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()
/base/hiviewdfx/hidumper/frameworks/native/include/util/zip/
Dzip_writer.h40 static bool ZipOpenNewFileInZip(zipFile zip_file, const std::string &strPath);
/base/update/updater/utils/
Dutils.cpp592 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/
Dmms_attachment.h37 bool SetAttachmentFilePath(std::string strPath, bool isSmil = false);