mrdocs::files::normalizePath

Return a normalized path.

Synopsis

Declared in <mrdocs/Support/Path.hpp>

std::string
normalizePath(std::string_view pathName);

Description

This function returns a new path based on applying the following changes to the passed path:

  • "." and ".." are resolved

  • Separators made uniform

  • Separators are replaced with the native separator

Return Value

The normalized path.

Parameters

Name Description

pathName

The relative or absolute path.

Created with MrDocs