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
diff options
context:
space:
mode:
authorvng <viktor.govako@gmail.com>2013-07-08 18:31:26 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:58:28 +0300
commitd2d7828685ff9e9b8c2988c9efc69ed7b6af9923 (patch)
tree740de4ce1c9d93719aa7fcbb84d3e81395bd2244 /coding/file_name_utils.hpp
parentfa1ef920f82d84e8791562235b96ab797bd7219b (diff)
Add my::GetFileExtension.
Diffstat (limited to 'coding/file_name_utils.hpp')
-rw-r--r--coding/file_name_utils.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/coding/file_name_utils.hpp b/coding/file_name_utils.hpp
index 6ce102f7d2..f45f9fcb91 100644
--- a/coding/file_name_utils.hpp
+++ b/coding/file_name_utils.hpp
@@ -7,6 +7,8 @@ namespace my
{
/// Remove extension from file name.
void GetNameWithoutExt(string & name);
+ /// @return File extension with the dot or empty string if no extension found.
+ string GetFileExtension(string const & name);
/// Get file name from full path.
void GetNameFromFullPath(string & name);