getPathRelative#
Fully qualified name: carb::extras::getPathRelative
Defined in carb/extras/Path.h
- inline Path carb::extras::getPathRelative(
- carb::cpp::string_view path,
- carb::cpp::string_view base,
Helper function to calculate a relative path from a provided path and a base path.
See also
Note
This function also accepts
const char*
representations of paths on either side, it will have to be replaced with a safe overload once the string_view migration is ultimated- Parameters:
path – a
carb::cpp::string_view
representation of a pathbase – a
carb::cpp::string_view
representation of the base path
- Returns:
Path(path).getRelative(base)