Lines Matching refs:string

41     std::string tmpName = std::string(fileFullName);
47 std::string tmpName = std::string(fileFullName);
53 std::string tmpName = std::string(fileName);
59 std::string tmpPath = std::string(path);
65 std::string tmpPath = std::string(path);
71 std::string tmpPath = std::string(path);
72 std::string tmpResolved;
84 std::string tmpPath(path);
85 std::vector<std::string> tmpFiles(files.begin(), files.end());
91 string GetCurrentProcFullFileName()
97 return string();
100 return string(procFile);
103 string GetCurrentProcPath()
108 string ExtractFilePath(const string& fileFullName)
110 return string(fileFullName).substr(0, fileFullName.rfind("/") + 1);
113 std::string ExtractFileName(const std::string& fileFullName)
115 return string(fileFullName).substr(fileFullName.rfind("/") + 1, fileFullName.size());
118 string ExtractFileExt(const string& fileName)
120 string::size_type pos = fileName.rfind(".");
121 if (pos == string::npos) {
125 return string(fileName).substr(pos + 1, fileName.size());
128 string ExcludeTrailingPathDelimiter(const std::string& path)
141 string IncludeTrailingPathDelimiter(const std::string& path)
153 void GetDirFiles(const string& path, vector<string>& files)
161 string currentPath = ExcludeTrailingPathDelimiter(path);
171 if (pos != string::npos) {
177 string name = ptr->d_name;
206 bool ForceCreateDirectory(const string& path)
208 string::size_type index = 0;
210 string subPath;
212 if (index == string::npos) {
223 } while (index != string::npos);
234 bool ForceRemoveDirectory(const string& path)
327 bool RemoveFile(const string& fileName)
336 bool IsEmptyFolder(const string& path)
338 vector<string> files;
343 uint64_t GetFolderSize(const string& path)
345 vector<string> files;
359 bool ChangeMode(const string& fileName, const mode_t& mode)
364 bool ChangeModeFile(const string& fileName, const mode_t& mode)
373 bool ChangeModeDirectory(const string& path, const mode_t& mode)
375 string subPath;
392 subPath = IncludeTrailingPathDelimiter(path) + string(ptr->d_name);
406 string currentPath = ExcludeTrailingPathDelimiter(path);
416 bool PathToRealPath(const string& path, string& realPath)
443 string TransformFileName(const string& fileName)
445 string::size_type pos = fileName.find(".");
446 string transformfileName = "";
447 if (pos == string::npos) {
458 transformfileName = string(fileName).substr(0, pos + 1);