/external/rust/crates/nom/tests/ |
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(i), o), in parse_multiple_categories_test()
|
/external/rust/crates/xml-rs/tests/ |
D | event_writer.rs | 45 let bs = String::from_utf8(b).unwrap(); in reading_writing_equal_with_namespaces() 65 str::from_utf8(&b).unwrap(), in writing_simple() 87 assert_eq!(str::from_utf8(&b).unwrap(), r#"<hello><world /></hello>"#); in writing_empty_elements_with_normalizing() 110 assert_eq!(str::from_utf8(&b).unwrap(), r#"<hello><world></world></hello>"#); in writing_empty_elements_without_normalizing() 133 assert_eq!(str::from_utf8(&b).unwrap(), r#"<hello><world/></hello>"#); in writing_empty_elements_without_pad_self_closing() 155 assert_eq!(str::from_utf8(&b).unwrap(), r#"<hello><world /></hello>"#); in writing_empty_elements_pad_self_closing_explicit() 181 str::from_utf8(&b).unwrap(), in writing_comments_with_indentation() 212 str::from_utf8(&b).unwrap(), in issue_112_overriding_namepace_prefix() 262 str::from_utf8(&b).unwrap(), in attribute_escaping()
|
/external/rust/crates/gdbstub/examples/armv4t/gdb/ |
D | extended_mode.rs | 47 Some(raw) => Some(core::str::from_utf8(raw).map_err(drop)?), in run() 50 .map(|raw| core::str::from_utf8(raw).map_err(drop)) in run() 111 let key = core::str::from_utf8(key).map_err(drop)?; in set_env() 114 Some(raw) => Some(core::str::from_utf8(raw).map_err(drop)?), in set_env() 123 let key = core::str::from_utf8(key).map_err(drop)?; in remove_env() 150 Some(raw) => Some(core::str::from_utf8(raw).map_err(drop)?), in cfg_working_dir()
|
/external/rust/crates/combine/examples/ |
D | async.rs | 64 str::from_utf8(digits) in decode_parser() 94 println!("Decoding `{:?}`", str::from_utf8(src).unwrap_or("NOT UTF8")); in decode() 111 str::from_utf8(r) in decode() 116 format!("{}\nIn input: `{}`", err, str::from_utf8(src).unwrap()) in decode() 122 str::from_utf8(&src[..removed_len]).unwrap_or("NOT UTF8") in decode() 142 let value = String::from_utf8(output)?; in decode()
|
/external/rust/crates/zip/src/ |
D | cp437.rs | 19 ::std::str::from_utf8(self).unwrap().into() in from_cp437() 31 String::from_utf8(self).unwrap() in from_cp437() 193 assert!(::std::str::from_utf8(data).is_err()); in example_slice() 201 assert!(String::from_utf8(data.clone()).is_err()); in example_vec()
|
/external/toolchain-utils/rust-analyzer-chromiumos-wrapper/src/ |
D | main.rs | 11 use std::str::from_utf8; 169 let s = from_utf8(&header.other_fields[index + slen..]) in read_header() 207 let init_val: Value = from_slice(contents).with_context(|| match from_utf8(contents) { in replace() 244 from_utf8(&head.other_fields)? in stream_with_replacement() 251 trace!("Received payload\n{}", from_utf8(&buf)?); in stream_with_replacement() 256 trace!("After replacements payload\n{}", from_utf8(&buf2)?); in stream_with_replacement() 322 from_utf8(w1)?, in test_stream_with_replacement()
|
/external/rust/crates/regex-automata/src/ |
D | codegen.rs | 32 return String::from_utf8(buf).unwrap(); in is_match_forward() 67 String::from_utf8(buf).unwrap() in is_match_forward() 92 String::from_utf8(buf).unwrap() in state_enum_def()
|
/external/rust/crates/rustc-demangle-capi/src/ |
D | lib.rs | 235 let out_str = core::str::from_utf8(&res.as_slice()[..5]).unwrap(); in demangle_c_str_large() 244 let out_str = core::str::from_utf8(res.as_slice()).unwrap(); in demangle_c_str_exact() 256 let out_str = core::str::from_utf8(&res.as_slice()[..5]).unwrap(); in demangle_c_str_small() 266 let out_str = core::str::from_utf8(&res.as_slice()[..5]).unwrap(); in demangle_c_str_alloc()
|
/external/rust/cxx/tests/ |
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()
|
/external/rust/crates/env_logger/tests/ |
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()
|
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()
|
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()
|
/external/rust/crates/cexpr/tests/ |
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()
|
/external/rust/crates/rustc-demangle-capi/patches/ |
D | 0002-Adjust-API-to-match-__cxa_demangle.patch | 295 - let out_str = std::str::from_utf8(&out_buf[..5]).unwrap(); 298 + let out_str = core::str::from_utf8(&res.as_slice()[..5]).unwrap(); 314 - let out_str = std::str::from_utf8(&out_buf).unwrap(); 318 + let out_str = core::str::from_utf8(res.as_slice()).unwrap(); 334 - let out_str = std::str::from_utf8(&out_buf[4..]).unwrap(); 350 - let out_str = std::str::from_utf8(&out_buf[3..]).unwrap(); 358 + let out_str = core::str::from_utf8(&res.as_slice()[..5]).unwrap(); 374 - let out_str = std::str::from_utf8(&out_buf).unwrap(); 381 + let out_str = core::str::from_utf8(&res.as_slice()[..5]).unwrap();
|
/external/rust/crates/quiche/examples/ |
D | qpack-decode.rs | 80 let name = std::str::from_utf8(hdr.name()).unwrap(); in main() 81 let value = std::str::from_utf8(hdr.value()).unwrap(); in main()
|
/external/rust/crates/openssl/src/ |
D | cms.rs | 279 let decrypt_with_cert_check = String::from_utf8(decrypt_with_cert_check) in cms_encrypt_decrypt() 285 let decrypt_without_cert_check = String::from_utf8(decrypt_without_cert_check) in cms_encrypt_decrypt() 301 let decrypt_with_cert_check = String::from_utf8(decrypt_with_cert_check) in cms_encrypt_decrypt() 307 let decrypt_without_cert_check = String::from_utf8(decrypt_without_cert_check) in cms_encrypt_decrypt()
|
/external/rust/crates/os_str_bytes/src/wasm/ |
D | mod.rs | 39 str::from_utf8(string).map_err(EncodingError) in from_bytes() 51 String::from_utf8(string) in os_string_from_vec()
|
/external/rust/cxx/src/ |
D | lossy.rs | 7 match str::from_utf8(bytes) { in display() 28 let from_utf8_result = str::from_utf8(bytes); in debug()
|
/external/crosvm/e2e_tests/fixture/src/ |
D | vhost_user.rs | 95 std::str::from_utf8(&output.stdout).unwrap() in drop() 100 std::str::from_utf8(&output.stderr).unwrap() in drop()
|
/external/rust/crates/combine/benches/ |
D | mp4.rs | 5 use std::{fs::File, io::Read, str::from_utf8}; 38 let brand_name = || take(4).and_then(from_utf8); in parse_mp4()
|
/external/rust/crates/libc/ |
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()
|
/external/rust/crates/csv/src/ |
D | string_record.rs | 334 debug_assert!(str::from_utf8(bytes).is_ok()); in get() 557 debug_assert!(str::from_utf8(self.0.as_slice()).is_ok()); in as_slice() 719 debug_assert!(str::from_utf8(bytes).is_ok()); in next() 740 debug_assert!(str::from_utf8(bytes).is_ok()); in next_back()
|
/external/rust/crates/flate2/src/gz/ |
D | write.rs | 398 let return_string = String::from_utf8(writer).expect("String parsing error"); in decode_writer_one_chunk() 416 let return_string = String::from_utf8(writer).expect("String parsing error"); in decode_writer_partial_header() 431 let return_string = String::from_utf8(writer).expect("String parsing error"); in decode_writer_exact_header() 447 let return_string = String::from_utf8(writer).expect("String parsing error"); in decode_writer_partial_crc()
|
/external/rust/crates/cexpr/src/ |
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()
|
/external/rust/crates/cesu8/src/ |
D | lib.rs | 93 use std::str::{from_utf8, from_utf8_unchecked}; 183 match from_utf8(bytes) { in from_cesu8_internal() 191 debug_assert!(from_utf8(&decoded[..]).is_ok()); in from_cesu8_internal()
|