Home
last modified time | relevance | path

Searched refs:os_str (Results 1 – 10 of 10) sorted by relevance

/external/rust/crates/bstr/src/
Dext_vec.rs176 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 …]
Dext_slice.rs174 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()
/external/rust/cxx/book/src/binding/
Drawptr.md67 .map(|os_str| {
68 let bytes = os_str.as_bytes();
/external/vixl/test/
Dtest-api.cc349 std::string os_str = os.str(); in CPUFeaturesFormatHelper() local
350 if (os_str != expected) { in CPUFeaturesFormatHelper()
351 std::cout << "Found: " << os_str << "\n"; in CPUFeaturesFormatHelper()
/external/google-breakpad/src/processor/
Dmicrodump.cc247 string os_str(line, pos + strlen(kOsKey)); in Microdump() local
248 std::istringstream os_tokens(os_str); in Microdump()
/external/rust/crates/zip/src/
Dwrite.rs729 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()
/external/vm_tools/p9/src/server/
Dtests.rs377 let mut os_str = OsString::from(test_dir); in setup() localVariable
378 os_str.push(".XXXXXX"); in setup()
382 let buf = CString::new(os_str.into_vec()) in setup()
/external/rust/crates/url/tests/
Dunit.rs105 let os_str = OsStr::from_bytes(b"/foo/ba\x80r"); in new_path_bad_utf8() localVariable
106 assert_eq!(url.to_file_path(), Ok(PathBuf::from(os_str))); in new_path_bad_utf8()
/external/llvm-project/lldb/source/Utility/
DArchSpec.cpp1430 llvm::StringRef os_str = triple.getOSName(); in DumpTriple() local
1435 os_str.empty() ? "*" : os_str); in DumpTriple()
/external/rust/crates/url/src/
Dlib.rs2782 let os_str = OsStr::from_bytes(&bytes); in file_url_segments_to_pathbuf() localVariable
2783 let path = PathBuf::from(os_str); in file_url_segments_to_pathbuf()