Debian Codegraph @

src/platform/windows.rs

raw symbols SCIP
1 use std::ffi::{OsStr, OsString};
2 use std::os::windows::ffi::{OsStrExt, OsStringExt};
3
4 pub(crate) fn os_to_wide(s: &OsStr) -> Vec<u16> {
5 s.encode_wide().collect()
6 }
7
8 pub(crate) fn os_from_wide(s: &[u16]) -> OsString {
9 OsString::from_wide(s)
10 }