-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix get_canonical/absolute/normalize_path() functions (fix #98)
Several refactors in this commit: - Moved is_path_separator() function and path_separator as a constexpr to the header file - Added path_separators string (for Windows, which includes \ and /) - get_canonical_path() works only when the file exists (returns an empty string in other case) - normalize_path() and get_absolute_path() work in a lexical level, handling only strings and getting the current path when needed, but without checking the existence of the file
- Loading branch information
Showing
5 changed files
with
275 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.