fs/Path: rename GetSuffix() to GetExtension()

The "extension" is the name after the dot, but the "suffix" is the
string including the dot.
This commit is contained in:
Max Kellermann
2022-07-14 15:56:18 +02:00
parent 594b97feb1
commit 254ee00c37
7 changed files with 9 additions and 9 deletions

View File

@@ -296,8 +296,8 @@ public:
}
[[gnu::pure]]
const_pointer GetSuffix() const noexcept {
return Path{*this}.GetSuffix();
const_pointer GetExtension() const noexcept {
return Path{*this}.GetExtension();
}
/**

View File

@@ -37,7 +37,7 @@ Path::ToUTF8Throw() const
}
Path::const_pointer
Path::GetSuffix() const noexcept
Path::GetExtension() const noexcept
{
const auto base = GetBase().c_str();
const auto *dot = StringFindLast(base, '.');

View File

@@ -167,7 +167,7 @@ public:
}
[[gnu::pure]]
const_pointer GetSuffix() const noexcept;
const_pointer GetExtension() const noexcept;
};
/**