diff options
author | mpimenov <mpimenov@users.noreply.github.com> | 2017-02-13 19:37:48 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-13 19:37:48 +0300 |
commit | d1ca2a02c1e6a1ec1cd3e231cd145f848bf07c9b (patch) | |
tree | 8ab2facf0f6caf6ae81ed172a83622b8425348e1 /coding | |
parent | 05b55c1b6aa0d708ef826f9ade4cb4ae6f86954b (diff) | |
parent | 56c926d5347eb0f18cd04f8bdf95303d99383541 (diff) |
Merge pull request #5136 from mgsergio/openlr-decodingbeta-627
OpenLR decoding, markup tool.
Diffstat (limited to 'coding')
-rw-r--r-- | coding/file_name_utils.cpp | 6 | ||||
-rw-r--r-- | coding/file_name_utils.hpp | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/coding/file_name_utils.cpp b/coding/file_name_utils.cpp index 1d13245cf6..a1def51637 100644 --- a/coding/file_name_utils.cpp +++ b/coding/file_name_utils.cpp @@ -12,6 +12,12 @@ void GetNameWithoutExt(string & name) name.erase(i); } +string FilenameWithoutExt(string name) +{ + GetNameWithoutExt(name); + return name; +} + string GetFileExtension(string const & name) { size_t const pos = name.find_last_of("./\\"); diff --git a/coding/file_name_utils.hpp b/coding/file_name_utils.hpp index 76629660c9..1e3ffe83d1 100644 --- a/coding/file_name_utils.hpp +++ b/coding/file_name_utils.hpp @@ -7,6 +7,7 @@ namespace my { /// Remove extension from file name. void GetNameWithoutExt(string & name); + string FilenameWithoutExt(string name); /// @return File extension with the dot or empty string if no extension found. string GetFileExtension(string const & name); |