Function kiwix::getLastPathElement

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).