sapling/eden/fs/win/utils
Xavier Deguillard 0273817488 win: simplify path management
Summary:
The StringConv.h header contains many functions to convert from Windows paths
to Eden's path (and vice versa) to workaround the fact that Eden's path don't
support wide strings that Windows uses. Let's simply add support for these wide
strings in PathFuncs so we can greatly simplify all the call sites. Instead of
calling "edenToWinName(winstr)", "PathComponent(winstr)" is both more
descriptive and more idiomatic.

To be fair, I'm not entirely a fan of the approach taken in this diff, as this
adds Windows specific code to PathFuncs.h, but I feel that the benefit is too
big to not do that.

Reviewed By: chadaustin

Differential Revision: D23004523

fbshipit-source-id: 3a1507e398a66909773251907db01e06603b91dd
2020-08-10 08:53:13 -07:00
..
test win: simplify path management 2020-08-10 08:53:13 -07:00
CMakeLists.txt Add header file in CMakeLists 2019-10-25 16:29:17 -07:00
FileUtils.cpp win: simplify path management 2020-08-10 08:53:13 -07:00
FileUtils.h win: simplify path management 2020-08-10 08:53:13 -07:00
Guid.h win: simplify path management 2020-08-10 08:53:13 -07:00
Handle.h Tidy up license headers 2019-10-11 05:28:23 -07:00
Pipe.cpp win: rework the Pipe API a bit 2020-08-07 11:05:31 -07:00
Pipe.h win: rework the Pipe API a bit 2020-08-07 11:05:31 -07:00
StringConv.h win: simplify path management 2020-08-10 08:53:13 -07:00
Stub.h mount: unify EdenMount::initialize 2020-05-15 13:14:55 -07:00
Subprocess.cpp win: remove the Edenwin.h header 2020-08-06 09:15:16 -07:00
Subprocess.h Tidy up license headers 2019-10-11 05:28:23 -07:00
WinError.cpp win: micro-optimize exceptionToHResult 2020-07-27 08:51:43 -07:00
WinError.h win: micro-optimize exceptionToHResult 2020-07-27 08:51:43 -07:00