Function isAbsoluteWindows [src]

Prototype

pub fn isAbsoluteWindows(path: []const u8) bool

Parameters

path: []const u8

Example

test isAbsoluteWindows { try testIsAbsoluteWindows("", false); try testIsAbsoluteWindows("/", true); try testIsAbsoluteWindows("//", true); try testIsAbsoluteWindows("//server", true); try testIsAbsoluteWindows("//server/file", true); try testIsAbsoluteWindows("\\\\server\\file", true); try testIsAbsoluteWindows("\\\\server", true); try testIsAbsoluteWindows("\\\\", true); try testIsAbsoluteWindows("c", false); try testIsAbsoluteWindows("c:", false); try testIsAbsoluteWindows("c:\\", true); try testIsAbsoluteWindows("c:/", true); try testIsAbsoluteWindows("c://", true); try testIsAbsoluteWindows("C:/Users/", true); try testIsAbsoluteWindows("C:\\Users\\", true); try testIsAbsoluteWindows("C:cwd/another", false); try testIsAbsoluteWindows("C:cwd\\another", false); try testIsAbsoluteWindows("directory/directory", false); try testIsAbsoluteWindows("directory\\directory", false); try testIsAbsoluteWindows("/usr/local", true); }

Source

pub fn isAbsoluteWindows(path: []const u8) bool { return isAbsoluteWindowsImpl(u8, path); }