Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/coding
diff options
context:
space:
mode:
authormpimenov <mpimenov@users.noreply.github.com>2017-02-13 19:37:48 +0300
committerGitHub <noreply@github.com>2017-02-13 19:37:48 +0300
commitd1ca2a02c1e6a1ec1cd3e231cd145f848bf07c9b (patch)
tree8ab2facf0f6caf6ae81ed172a83622b8425348e1 /coding
parent05b55c1b6aa0d708ef826f9ade4cb4ae6f86954b (diff)
parent56c926d5347eb0f18cd04f8bdf95303d99383541 (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.cpp6
-rw-r--r--coding/file_name_utils.hpp1
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);