Searched refs:os_string (Results 1 – 9 of 9) sorted by relevance
/third_party/rust/crates/os_str_bytes/tests/ |
D | common.rs | 46 let os_string = OsStr::from_raw_bytes(string); localVariable 48 test_from_bytes::<Path, _, _>(&os_string, string); 50 os_string 54 let os_string = OsString::from_raw_vec(string.clone()); localVariable 55 test_from_bytes::<OsStr, _, _>(&os_string, string.clone()); 59 assert_eq!(os_string, path.map(PathBuf::into_os_string)); 61 os_string 65 let os_string = from_bytes(string)?; localVariable 66 assert_eq!(string.len(), os_string.len()); 67 assert_eq!(string, &*os_string.to_raw_bytes()); [all …]
|
D | random.rs | 21 let os_string = random_common::random_os_string(LARGE_LENGTH)?; in test_bytes() localVariable 22 let string = os_string.to_raw_bytes(); in test_bytes() 23 assert_eq!(os_string.len(), string.len()); in test_bytes() 24 assert_eq!(Ok(Cow::Borrowed(&*os_string)), common::from_bytes(&string)); in test_bytes() 30 let os_string = random_common::random_os_string(LARGE_LENGTH)?; in test_vec() localVariable 31 let string = os_string.clone().into_raw_vec(); in test_vec() 32 assert_eq!(os_string.len(), string.len()); in test_vec() 33 assert_eq!(Ok(os_string), common::from_vec(string)); in test_vec() 42 if let Ok(os_string) = OsStr::from_raw_bytes(&string) { in test_lossless() 43 assert_eq!(string, &*os_string.to_raw_bytes()); in test_lossless()
|
/third_party/rust/crates/os_str_bytes/src/windows/ |
D | mod.rs | 79 fn to_bytes(os_string: &OsStr) -> Vec<u8> { in to_bytes() 80 let encoder = OsStrExt::encode_wide(os_string); in to_bytes() 88 from_bytes(string).map(|os_string| { in os_str_from_bytes() 89 os_string.map(Cow::Owned).unwrap_or_else(|| { in os_str_from_bytes() 98 pub(super) fn os_str_to_bytes(os_string: &OsStr) -> Cow<'_, [u8]> { in os_str_to_bytes() 99 Cow::Owned(to_bytes(os_string)) in os_str_to_bytes() 103 from_bytes(&string).map(|os_string| { in os_string_from_vec() 104 os_string.unwrap_or_else(|| { in os_string_from_vec() 111 pub(super) fn os_string_into_vec(os_string: OsString) -> Vec<u8> { in os_string_into_vec() 112 to_bytes(&os_string) in os_string_into_vec()
|
/third_party/rust/crates/os_str_bytes/src/common/ |
D | mod.rs | 33 pub(super) fn os_str_to_bytes(os_string: &OsStr) -> Cow<'_, [u8]> { in os_str_to_bytes() 34 Cow::Borrowed(OsStrExt::as_bytes(os_string)) in os_str_to_bytes() 41 pub(super) fn os_string_into_vec(os_string: OsString) -> Vec<u8> { in os_string_into_vec() 42 OsStringExt::into_vec(os_string) in os_string_into_vec()
|
/third_party/rust/crates/os_str_bytes/src/wasm/ |
D | mod.rs | 46 pub(super) fn os_str_to_bytes(os_string: &OsStr) -> Cow<'_, [u8]> { in os_str_to_bytes() 47 Cow::Borrowed(expect_utf8!(os_string.to_str()).as_bytes()) in os_str_to_bytes() 56 pub(super) fn os_string_into_vec(os_string: OsString) -> Vec<u8> { in os_string_into_vec() 57 expect_utf8!(os_string.into_string()).into_bytes() in os_string_into_vec()
|
/third_party/skia/build/fuchsia/ |
D | update_fuchsia_sdk | 101 os_string = "linux-amd64" 103 os_string = "mac-amd64" 108 sdk_pkg = "fuchsia/sdk/core/" + os_string 110 clang_pkg = "fuchsia/clang/" + os_string
|
/third_party/rust/crates/clap/src/builder/ |
D | value_parser.rs | 191 pub const fn os_string() -> Self { in os_string() method 2109 ValueParser::os_string() // Default `clap_derive` to optimized implementation in value_parser()
|
D | command.rs | 3703 static DEFAULT: super::ValueParser = super::ValueParser::os_string(); in get_external_subcommand_value_parser()
|
/third_party/rust/crates/clap/src/parser/matches/ |
D | arg_matches.rs | 1941 .value_parser(crate::builder::ValueParser::os_string()) in os_values_exact_size()
|