From 7ce96585f5e0a5786f17d7996252b5c58e60d0ed Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 1 Mar 2015 01:09:53 +0100 Subject: fs/Path: add method GetSuffix() Type-safe wrapper for uri_get_suffix(). --- src/fs/Path.cxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/fs/Path.cxx') diff --git a/src/fs/Path.cxx b/src/fs/Path.cxx index 5a21b698f..691284313 100644 --- a/src/fs/Path.cxx +++ b/src/fs/Path.cxx @@ -20,9 +20,16 @@ #include "config.h" #include "Path.hxx" #include "Charset.hxx" +#include "util/UriUtil.hxx" std::string Path::ToUTF8() const { return ::PathToUTF8(c_str()); } + +const char * +Path::GetSuffix() const +{ + return uri_get_suffix(c_str()); +} -- cgit v1.2.3