fs/Path: document GetExtension()
This commit is contained in:
parent
254ee00c37
commit
849ed122c7
@ -295,6 +295,10 @@ public:
|
|||||||
return Traits::Relative(c_str(), other_fs.c_str());
|
return Traits::Relative(c_str(), other_fs.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the filename extension (excluding the dot) or
|
||||||
|
* nullptr if the path does not have one.
|
||||||
|
*/
|
||||||
[[gnu::pure]]
|
[[gnu::pure]]
|
||||||
const_pointer GetExtension() const noexcept {
|
const_pointer GetExtension() const noexcept {
|
||||||
return Path{*this}.GetExtension();
|
return Path{*this}.GetExtension();
|
||||||
|
@ -166,6 +166,10 @@ public:
|
|||||||
return Traits::IsAbsolute(c_str());
|
return Traits::IsAbsolute(c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the filename extension (excluding the dot) or
|
||||||
|
* nullptr if the path does not have one.
|
||||||
|
*/
|
||||||
[[gnu::pure]]
|
[[gnu::pure]]
|
||||||
const_pointer GetExtension() const noexcept;
|
const_pointer GetExtension() const noexcept;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user