Function isSep [src]
Returns true if c is a valid path separator for the path_type.
Prototype
pub inline fn isSep(comptime path_type: PathType, comptime T: type, c: T) bool
Parameters
path_type: PathType
T: type
c: T
Source
pub inline fn isSep(comptime path_type: PathType, comptime T: type, c: T) bool {
return switch (path_type) {
.windows => c == '/' or c == '\\',
.posix => c == '/',
.uefi => c == '\\',
};
}