#include <file-path-impl.hh>
Public Types | |
using | CharT = CharT0 |
using | String = std::basic_string<CharT> |
using | StringView = std::basic_string_view<CharT> |
Static Public Member Functions | |
static bool | isPathSep (CharT c) |
static size_t | findPathSep (StringView path, size_t from=0) |
static size_t | rfindPathSep (StringView path, size_t from=String::npos) |
Static Public Attributes | |
static constexpr CharT | preferredSep = '\\' |
Windows-style path primitives.
The character type is a parameter because while windows paths rightly work over UTF-16 (*) using wchar_t
, at the current time we are often manipulating them converted to UTF-8 (*) using char
.
(Actually neither are guaranteed to be valid unicode; both are arbitrary non-0 8- or 16-bit bytes. But for charcters with specifical meaning like '/', '\', ':', etc., we refer to an encoding scheme, and also for sake of UIs that display paths a text.)