diff options
author | vng <viktor.govako@gmail.com> | 2015-07-03 20:23:05 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:54:14 +0300 |
commit | c966bfed30e064149cf8f9c6aa06d9281a5a5c21 (patch) | |
tree | d6b8bfc3fa7b822c16fd140f1c5461a39ea3f6ae /coding/file_name_utils.hpp | |
parent | 7494c3f57668407158a8ef12282e66328553295f (diff) |
[platform]
Replaced Platform::AddOptionalPath with Platform::SetResourceDir.
Added Platform::TestsDataPathForFile to read test files (usually placed in resource directory) in unit tests.
Diffstat (limited to 'coding/file_name_utils.hpp')
-rw-r--r-- | coding/file_name_utils.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/coding/file_name_utils.hpp b/coding/file_name_utils.hpp index ddef2af4a9..f738588acd 100644 --- a/coding/file_name_utils.hpp +++ b/coding/file_name_utils.hpp @@ -26,4 +26,7 @@ namespace my string JoinFoldersToPath(const string & folder1, const string & folder2, const string & file); string JoinFoldersToPath(const string & folder1, const string & folder2, const string & folder3, const string & file); string JoinFoldersToPath(const vector<string> & folders, const string & file); + + /// Add terminating slash, if it's not exist to the folder path string. + string AddSlashIfNeeded(string const & path); } |