Home
last modified time | relevance | path

Searched refs:from_utf8 (Results 1 – 25 of 138) sorted by relevance

123456

/external/rust/crates/nom/tests/
Dini.rs16 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()
Dinference.rs22 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)
Dreborrow_fold.rs10 map!(map_res!(is_not!(" \t\r\n()"), str::from_utf8), ToString::to_string));
/external/rust/crates/gdbstub/examples/armv4t/gdb/
Dextended_mode.rs47 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()
Dmonitor_cmd.rs12 let cmd = match core::str::from_utf8(cmd) { in handle_monitor_cmd()
/external/rust/crates/zip/src/
Dcp437.rs18 ::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/
Dcodegen.rs32 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/
Dcxx_gen.rs20 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/
Dlog-in-log.rs36 println!("--- stdout\n{}", str::from_utf8(&out.stdout).unwrap()); in main()
37 println!("--- stderr\n{}", str::from_utf8(&out.stderr).unwrap()); in main()
Dinit-twice-retains-filter.rs37 println!("--- stdout\n{}", str::from_utf8(&out.stdout).unwrap()); in main()
38 println!("--- stderr\n{}", str::from_utf8(&out.stderr).unwrap()); in main()
Dlog_tls_dtors.rs61 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/
Dutils.rs8 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/
Dclang.rs29 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/
Dclap-test.rs38 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/
Dbuild.rs107 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/
Datom.rs121 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/
Dstring_record.rs334 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/
Dliteral.rs165 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/
Dtcp_server.rs8 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/
Dread_line.rs49 *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/
Dwrite.rs427 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/
Dtest.rs48 let help = String::from_utf8(out).unwrap(); in test_help()
/external/rust/crates/rusqlite/src/
Dcolumn.rs62 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/
Dvalue_ref.rs59 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/
Dbuild.rs25 let version = str::from_utf8(&output.stdout).ok()?; in rustc_minor_version()

123456