fs/Path: add method GetSuffix()
Type-safe wrapper for uri_get_suffix().
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
@@ -161,6 +161,9 @@ public:
|
||||
bool IsAbsolute() const {
|
||||
return PathTraitsFS::IsAbsolute(c_str());
|
||||
}
|
||||
|
||||
gcc_pure
|
||||
const char *GetSuffix() const;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user