xref: /drstd/src/std/sys/solid/path.rs (revision 0fe3ff0054d3aec7fbf9bddecfecb10bc7d23a51)
1 use crate::std::ffi::OsStr;
2 use crate::std::io;
3 use crate::std::path::{Path, PathBuf, Prefix};
4 use crate::std::sys::unsupported;
5 
6 #[inline]
7 pub fn is_sep_byte(b: u8) -> bool {
8     b == b'\\'
9 }
10 
11 #[inline]
12 pub fn is_verbatim_sep(b: u8) -> bool {
13     b == b'\\'
14 }
15 
16 pub fn parse_prefix(_: &OsStr) -> Option<Prefix<'_>> {
17     None
18 }
19 
20 pub const MAIN_SEP_STR: &str = "\\";
21 pub const MAIN_SEP: char = '\\';
22 
23 pub(crate) fn absolute(_path: &Path) -> io::Result<PathBuf> {
24     unsupported()
25 }
26