-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Utility: deprecate Directory in favor of a new Path namespace.
Started as an optimistic task of porting away from std::string, ended up being a full redesign to fix other outstanding issues like a lack of clearly distinguishable failure states for most of the APIs. I tried to make the sweeping changes in-place at first, but it proved to be a backwards compatibility hell that would make everyone angry. So instead it's a whole new namespace and I took that as an opportunity to also fix various naming issues. The Directory namespace is now implemented in terms of the Path functionality and isn't really any slower than it was before. On the other hand, thanks to string views there's no useless string allocations anymore and Path::readString() can now take over the memory ownership coming from read(), being no longer 2x slower. While all Directory APIs are marked as deprecated, existing code is not updated yet, only the DirectoryTest failure message tests to make the test still pass. Updating to the new APIs will be done in next commits.
- Loading branch information
Showing
30 changed files
with
5,575 additions
and
1,692 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
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
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.