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.

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:
Returns:

Path(path).getRelative(base)