]> git.lizzy.rs Git - rust.git/blob - src/libstd/sys/sgx/path.rs
Add x86_64-fortanix-unknown-sgx target to libstd and dependencies
[rust.git] / src / libstd / sys / sgx / path.rs
1 // Copyright 2018 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
4 //
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
10
11 use path::Prefix;
12 use ffi::OsStr;
13
14 #[inline]
15 pub fn is_sep_byte(b: u8) -> bool {
16     b == b'/'
17 }
18
19 #[inline]
20 pub fn is_verbatim_sep(b: u8) -> bool {
21     b == b'/'
22 }
23
24 pub fn parse_prefix(_: &OsStr) -> Option<Prefix> {
25     None
26 }
27
28 pub const MAIN_SEP_STR: &'static str = "/";
29 pub const MAIN_SEP: char = '/';