Function kiwix::getLastPathElement
Defined in File tools.h
Function Documentation
-
std::string kiwix::getLastPathElement(const std::string &path)
Get the last element of a path.
This function is provided as a small helper. It is probably better to use native tools to manipulate paths.
- Parameters:
path – a path.
- Returns:
The base name of the path or empty string if none (ending with a separator).