10 Commits

Author SHA1 Message Date
Andrey Semashev
c03249c375 Reformatted code for more consistent look and better readability. 2021-04-24 22:37:57 +03:00
Andrey Semashev
06d8d660a1 Fixed path::lexically_relative to handle empty, dot and dot-dot elements.
The algorithm implementation now ignores empty and dot path elements in the
argument path and accounts dot-dot elements by decreasing the number of
dot-dot elements to generate in the resulting relative path. This is
according to C++17 std::path specification [fs.path.gen]/4.

Fixes https://github.com/boostorg/filesystem/issues/76.
2019-10-05 19:14:21 +03:00
Andrey Semashev
e268f557df Trim trailing spaces in the tests. 2018-11-24 15:23:43 +03:00
Beman
3c344a5f0b Revert to lexical functions back to being members of class path. This is not the time to redesign the library's lexical vs operational conventions. It would break existing users mental model of lexical vs operational.
See doc/relative_proposal.html#Add-lexical-functions for additional rationale.
2015-10-25 13:28:49 -04:00
Beman
23759ba8ec Add lexically_proximate and proximate functions. 2015-08-25 15:05:17 -04:00
Beman
27f8e5fd6a Minor tweaks. 2015-08-25 11:04:21 -04:00
Beman
732609a2da Change member normal() and relative() to non-member lexically_normal() and lexically_relative(). See doc/relative_proposal.html#Add-lexical-functions-as-non-members for rationale. 2015-08-23 09:33:21 -04:00
Beman
b54092e66f Simplify expressions and remove accumulated cruft. 2015-08-13 09:01:59 -04:00
Beman
fe71dc8729 Fix test where Windows and POSIX results differ 2015-08-10 08:34:22 -04:00
Beman
f5da08da74 Initial commit. 2015-08-10 08:15:24 -04:00