/third_party/rust/crates/nom/tests/ |
H A D | ini.rs | 18 str::from_utf8, in category() 23 let (i, key) = map_res(alphanumeric, str::from_utf8)(i)?; in key_value() 25 let (i, val) = map_res(take_while(|c| c != b'\n' && c != b';'), str::from_utf8)(i)?; in key_value() 69 Ok((i, o)) => println!("i: {:?} | o: {:?}", str::from_utf8(i), o), in parse_category_test() 86 Ok((i, (o1, o2))) => println!("i: {:?} | o: ({:?},{:?})", str::from_utf8(i), o1, o2), in parse_key_value_test() 103 Ok((i, (o1, o2))) => println!("i: {:?} | o: ({:?},{:?})", str::from_utf8(i), o1, o2), in parse_key_value_with_space_test() 120 Ok((i, (o1, o2))) => println!("i: {:?} | o: ({:?},{:?})", str::from_utf8(i), o1, o2), in parse_key_value_with_comment_test() 140 Ok((i, ref o)) => println!("i: {:?} | o: {:?}", str::from_utf8(i), o), in parse_multiple_keys_and_values_test() 165 Ok((i, ref o)) => println!("i: {:?} | o: {:?}", str::from_utf8(i), o), in parse_category_then_multiple_keys_and_values_test() 193 Ok((i, ref o)) => println!("i: {:?} | o: {:?}", str::from_utf8( in parse_multiple_categories_test() [all...] |
H A D | reborrow_fold.rs | 16 map_res(is_not(" \t\r\n"), str::from_utf8), in atom()
|
/third_party/rust/crates/cxx/tests/ |
H A D | cxx_gen.rs | 20 let output = str::from_utf8(&generated.implementation).unwrap(); in test_extern_c_function() 32 let output = str::from_utf8(&generated.implementation).unwrap(); in test_impl_annotation()
|
/third_party/rust/crates/nom/benchmarks/benches/ |
H A D | ini.rs | 22 str::from_utf8, in category() 27 let (i, key) = map_res(alphanumeric, str::from_utf8)(i)?; in key_value() 29 let (i, val) = map_res(take_while(|c| c != b'\n' && c != b';'), str::from_utf8)(i)?; in key_value()
|
/third_party/rust/crates/rust-cexpr/tests/ |
H A D | clang.rs | 29 str::from_utf8(value) in test_definition() 70 let chr = u32::from_str_radix(str::from_utf8(chr).unwrap(), 16).unwrap(); in test_definition() 78 str::from_utf8(value) in test_definition() 84 str::from_utf8(value) in test_definition() 90 str::from_utf8(value) in test_definition()
|
/third_party/rust/crates/env_logger/tests/ |
H A D | init-twice-retains-filter.rs | 37 println!("--- stdout\n{}", str::from_utf8(&out.stdout).unwrap()); in main() 38 println!("--- stderr\n{}", str::from_utf8(&out.stderr).unwrap()); in main()
|
H A D | log-in-log.rs | 36 println!("--- stdout\n{}", str::from_utf8(&out.stdout).unwrap()); in main() 37 println!("--- stderr\n{}", str::from_utf8(&out.stderr).unwrap()); in main()
|
H A D | log_tls_dtors.rs | 61 println!("--- stdout\n{}", str::from_utf8(&out.stdout).unwrap()); in main() 62 println!("--- stderr\n{}", str::from_utf8(&out.stderr).unwrap()); in main()
|
H A D | regexp_filter.rs | 29 str::from_utf8(out.stderr.as_ref()) in run_child()
|
/third_party/rust/crates/cxx/src/ |
H A D | lossy.rs | 7 match str::from_utf8(bytes) { in display() 28 let from_utf8_result = str::from_utf8(bytes); in debug()
|
/third_party/rust/crates/autocfg/src/ |
H A D | version.rs | 34 let output = try!(str::from_utf8(&output.stdout).map_err(error::from_utf8)); in from_rustc()
|
/third_party/rust/crates/libc/ |
H A D | build.rs | 131 let version = otry!(str::from_utf8(&output.stdout).ok()); in rustc_minor_nightly() 164 let stdout = String::from_utf8(output.stdout).ok(); in which_freebsd()
|
/third_party/rust/crates/rust-cexpr/src/ |
H A D | literal.rs | 165 str::from_utf8(&n) in c_raw_escape() 175 str::from_utf8(&n) in c_unicode_escape() 242 str::from_utf8(&n) in c_int_radix() 337 |v| str::from_utf8(v).ok().and_then(|i| f64::from_str(i).ok()), in c_float()
|
/third_party/rust/crates/regex/src/ |
H A D | expand.rs | 150 str::from_utf8(&rep[i..cap_end]).expect("valid UTF-8 capture name"); 172 let cap = match str::from_utf8(&rep[start..i]) {
|
/third_party/rust/crates/memchr/src/memmem/ |
H A D | twoway.rs | 719 let got_suffix = std::str::from_utf8(got_suffix).unwrap(); in suffix_forward() 728 let got_suffix = std::str::from_utf8(got_suffix).unwrap(); in suffix_forward() 776 let got_suffix = std::str::from_utf8(got_suffix).unwrap(); in suffix_reverse() 785 let got_suffix = std::str::from_utf8(got_suffix).unwrap(); in suffix_reverse()
|
/third_party/rust/crates/rust-openssl/openssl/src/ |
H A D | cms.rs | 333 let decrypt_with_cert_check = String::from_utf8(decrypt_with_cert_check) in cms_encrypt_decrypt() 339 let decrypt_without_cert_check = String::from_utf8(decrypt_without_cert_check) in cms_encrypt_decrypt() 358 let decrypt_with_cert_check = String::from_utf8(decrypt_with_cert_check) in cms_encrypt_decrypt() 364 let decrypt_without_cert_check = String::from_utf8(decrypt_without_cert_check) in cms_encrypt_decrypt()
|
H A D | error.rs | 129 let data = str::from_utf8(bytes).unwrap(); in get() 235 Some(str::from_utf8(bytes).unwrap()) in library() 261 Some(str::from_utf8(bytes).unwrap()) in function()
|
/third_party/rust/crates/shlex/fuzz/fuzz_targets/ |
H A D | fuzz_next.rs | 6 if let Ok(s) = std::str::from_utf8(data) {
|
/third_party/rust/crates/cxx/gen/cmd/src/ |
H A D | test.rs | 52 let help = String::from_utf8(out).unwrap(); in test_help()
|
/third_party/rust/crates/syn/fuzz/fuzz_targets/ |
H A D | create_token_buffer.rs | 14 if let Ok(string) = str::from_utf8(data) {
|
/third_party/rust/crates/cxx/ |
H A D | build.rs | 25 let version = String::from_utf8(output.stdout).ok()?; in rustc_version()
|
/third_party/rust/crates/os_str_bytes/src/wasm/ |
H A D | raw.rs | 22 let string = expect_encoded!(str::from_utf8(string));
|
/third_party/rust/crates/os_str_bytes/tests/ |
H A D | integration.rs | 10 assert!(str::from_utf8(string).is_err()); in assert_string_is_invalid_utf8()
|
/third_party/rust/crates/serde/serde/src/private/ |
H A D | mod.rs | 46 str::from_utf8(bytes).unwrap_or("\u{fffd}\u{fffd}\u{fffd}") in from_utf8_lossy()
|
/third_party/rust/crates/regex/tests/ |
H A D | macros_str.rs | 7 macro_rules! bytes { ($text:expr) => { std::str::from_utf8($text.as_ref()).unwrap() } }
|