Searched refs:os_str (Results 1 – 10 of 10) sorted by relevance
176 fn from_os_string(os_str: OsString) -> Result<Vec<u8>, OsString> { in from_os_string()179 fn imp(os_str: OsString) -> Result<Vec<u8>, OsString> { in from_os_string()182 Ok(Vec::from(os_str.into_vec())) in from_os_string()187 fn imp(os_str: OsString) -> Result<Vec<u8>, OsString> { in from_os_string()188 os_str.into_string().map(Vec::from) in from_os_string()191 imp(os_str) in from_os_string()215 fn from_os_str_lossy<'a>(os_str: &'a OsStr) -> Cow<'a, [u8]> { in from_os_str_lossy()218 fn imp<'a>(os_str: &'a OsStr) -> Cow<'a, [u8]> { in from_os_str_lossy()221 Cow::Borrowed(os_str.as_bytes()) in from_os_str_lossy()226 fn imp<'a>(os_str: &'a OsStr) -> Cow<'a, [u8]> { in from_os_str_lossy()[all …]
174 fn from_os_str(os_str: &OsStr) -> Option<&[u8]> { in from_os_str()177 fn imp(os_str: &OsStr) -> Option<&[u8]> { in from_os_str()180 Some(os_str.as_bytes()) in from_os_str()185 fn imp(os_str: &OsStr) -> Option<&[u8]> { in from_os_str()186 os_str.to_str().map(|s| s.as_bytes()) in from_os_str()189 imp(os_str) in from_os_str()
67 .map(|os_str| {68 let bytes = os_str.as_bytes();
349 std::string os_str = os.str(); in CPUFeaturesFormatHelper() local350 if (os_str != expected) { in CPUFeaturesFormatHelper()351 std::cout << "Found: " << os_str << "\n"; in CPUFeaturesFormatHelper()
247 string os_str(line, pos + strlen(kOsKey)); in Microdump() local248 std::istringstream os_tokens(os_str); in Microdump()
729 if let std::path::Component::Normal(os_str) = component { in path_to_string()733 path_str.push_str(&*os_str.to_string_lossy()); in path_to_string()
377 let mut os_str = OsString::from(test_dir); in setup() localVariable378 os_str.push(".XXXXXX"); in setup()382 let buf = CString::new(os_str.into_vec()) in setup()
105 let os_str = OsStr::from_bytes(b"/foo/ba\x80r"); in new_path_bad_utf8() localVariable106 assert_eq!(url.to_file_path(), Ok(PathBuf::from(os_str))); in new_path_bad_utf8()
1430 llvm::StringRef os_str = triple.getOSName(); in DumpTriple() local1435 os_str.empty() ? "*" : os_str); in DumpTriple()
2782 let os_str = OsStr::from_bytes(&bytes); in file_url_segments_to_pathbuf() localVariable2783 let path = PathBuf::from(os_str); in file_url_segments_to_pathbuf()