COMMON: Add a native directory separator

This will be used when converting the Path back to string to be used by
native filesystem APIs
This commit is contained in:
Le Philousophe 2023-09-02 11:16:17 +02:00 committed by Eugene Sandulenko
parent eeba7ca153
commit 6f4a86db7e

View File

@ -188,6 +188,16 @@ public:
*/
static const char kNoSeparator = '\x00';
/**
* The platform native separator.
* This is used when accessing files on disk
*/
#if defined(WIN32)
static const char kNativeSeparator = '\\';
#else
static const char kNativeSeparator = '/';
#endif
/**
* Hash and comparator for Path with following changes:
* * case-insensitive