/external/rust/crates/nom/tests/ |
D | ini.rs | 16 map_res(delimited(char('['), take_while(|c| c != b']'), char(']')), str::from_utf8)(i) in category() 20 str::from_utf8(s) in complete_byte_slice_to_str() 83 Ok((i, o)) => println!("i: {:?} | o: {:?}", str::from_utf8(i), o), in parse_category_test() 100 Ok((i, (o1, o2))) => println!("i: {:?} | o: ({:?},{:?})", str::from_utf8(i), o1, o2), in parse_key_value_test() 117 Ok((i, (o1, o2))) => println!("i: {:?} | o: ({:?},{:?})", str::from_utf8(i), o1, o2), in parse_key_value_with_space_test() 134 Ok((i, (o1, o2))) => println!("i: {:?} | o: ({:?},{:?})", str::from_utf8(i), o1, o2), in parse_key_value_with_comment_test() 154 Ok((i, ref o)) => println!("i: {:?} | o: {:?}", str::from_utf8(i), o), in parse_multiple_keys_and_values_test() 179 Ok((i, ref o)) => println!("i: {:?} | o: {:?}", str::from_utf8(i), o), in parse_category_then_multiple_keys_and_values_test() 207 Ok((i, ref o)) => println!("i: {:?} | o: {:?}", str::from_utf8(i), o), in parse_multiple_categories_test()
|
D | inference.rs | 22 first_line: map_res!(is_not!("\n"), std::str::from_utf8) 29 map_res!(take_while!(call!(|c| c != b'\n')), std::str::from_utf8)
|
D | reborrow_fold.rs | 10 map!(map_res!(is_not!(" \t\r\n()"), str::from_utf8), ToString::to_string));
|
/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() 95 let key = core::str::from_utf8(key).map_err(drop)?; in set_env() 98 Some(raw) => Some(core::str::from_utf8(raw).map_err(drop)?), in set_env() 107 let key = core::str::from_utf8(key).map_err(drop)?; in remove_env() 134 Some(raw) => Some(core::str::from_utf8(raw).map_err(drop)?), in cfg_working_dir()
|
D | monitor_cmd.rs | 12 let cmd = match core::str::from_utf8(cmd) { in handle_monitor_cmd()
|
/external/rust/crates/zip/src/ |
D | cp437.rs | 18 ::std::str::from_utf8(self).unwrap().into() in from_cp437() 30 String::from_utf8(self).unwrap() in from_cp437() 192 assert!(::std::str::from_utf8(data).is_err()); in example_slice() 200 assert!(String::from_utf8(data.clone()).is_err()); in example_vec()
|
/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/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/structopt/tests/ |
D | utils.rs | 8 let output = String::from_utf8(output).unwrap(); in get_help() 21 let output = String::from_utf8(output).unwrap(); in get_long_help()
|
/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/clap/ |
D | clap-test.rs | 38 let left = String::from_utf8(content).unwrap(); in compare_output() 48 let left = String::from_utf8(content).unwrap(); in compare_output2()
|
/external/rust/crates/libc/ |
D | build.rs | 107 let version = otry!(str::from_utf8(&output.stdout).ok()); in rustc_minor_nightly() 140 let stdout = String::from_utf8(output.stdout).ok(); in which_freebsd()
|
/external/rust/crates/remain/src/ |
D | atom.rs | 121 let number = str::from_utf8(bytes).expect("valid utf8"); in next() 136 let chars = str::from_utf8(bytes).expect("valid utf8"); in next()
|
/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/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/mio/examples/ |
D | tcp_server.rs | 8 use std::str::from_utf8; 159 if let Ok(str_buf) = from_utf8(received_data) { in handle_connection_event()
|
/external/rust/crates/tokio/src/io/util/ |
D | read_line.rs | 49 *output = String::from_utf8(vector).expect("The original data must be valid utf-8."); in put_back_original_data() 102 let utf8_res = String::from_utf8(mem::replace(buf, Vec::new())); in read_line_internal()
|
/external/rust/crates/flate2/src/gz/ |
D | write.rs | 427 let return_string = String::from_utf8(writer).expect("String parsing error"); in decode_writer_one_chunk() 445 let return_string = String::from_utf8(writer).expect("String parsing error"); in decode_writer_partial_header() 460 let return_string = String::from_utf8(writer).expect("String parsing error"); in decode_writer_exact_header() 476 let return_string = String::from_utf8(writer).expect("String parsing error"); in decode_writer_partial_crc()
|
/external/rust/cxx/gen/cmd/src/ |
D | test.rs | 48 let help = String::from_utf8(out).unwrap(); in test_help()
|
/external/rust/crates/rusqlite/src/ |
D | column.rs | 62 str::from_utf8(slice.to_bytes()).expect("Invalid UTF-8 sequence in column name") in column_name() 97 str::from_utf8(s.to_bytes()).expect("Invalid UTF-8 sequence in column declaration") in columns()
|
/external/rust/crates/rusqlite/src/types/ |
D | value_ref.rs | 59 std::str::from_utf8(t).map_err(|e| FromSqlError::Other(Box::new(e))) in as_str() 82 let s = std::str::from_utf8(s).expect("invalid UTF-8"); in from()
|
/external/rust/crates/proc-macro-hack/ |
D | build.rs | 25 let version = str::from_utf8(&output.stdout).ok()?; in rustc_minor_version()
|