Revert "removing redundant function modifiers"

This reverts commit 39536dbb93.
This commit is contained in:
Adalberto Foresti 2016-10-01 18:08:03 -07:00
Родитель 9b2a980cbc
Коммит e944487f45
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -49,23 +49,23 @@ struct MatchPathSeparator
}
};
std::string basename(std::string const &pathname)
inline std::string basename(std::string const &pathname)
{
return std::string(std::find_if(pathname.rbegin(), pathname.rend(), MatchPathSeparator()).base(), pathname.end());
}
std::wstring basename(std::wstring const &pathname)
static inline std::wstring basename(std::wstring const &pathname)
{
return std::wstring(std::find_if(pathname.rbegin(), pathname.rend(), MatchPathSeparator()).base(), pathname.end());
}
std::string removeExtension(std::string const &filename)
inline std::string removeExtension(std::string const &filename)
{
size_t lastindex = filename.find_first_of(".");
return filename.substr(0, lastindex);
}
std::wstring removeExtension(std::wstring const &filename)
inline std::wstring removeExtension(std::wstring const &filename)
{
size_t lastindex = filename.find_first_of(L".");
return filename.substr(0, lastindex);