Home
last modified time | relevance | path

Searched refs:from_utf8 (Results 1 - 25 of 79) sorted by relevance

1234

/third_party/rust/crates/nom/tests/
H A Dini.rs18 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 Dreborrow_fold.rs16 map_res(is_not(" \t\r\n"), str::from_utf8), in atom()
/third_party/rust/crates/cxx/tests/
H A 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()
/third_party/rust/crates/nom/benchmarks/benches/
H A Dini.rs22 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 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()
/third_party/rust/crates/env_logger/tests/
H A 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()
H A 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()
H A 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()
H A Dregexp_filter.rs29 str::from_utf8(out.stderr.as_ref()) in run_child()
/third_party/rust/crates/cxx/src/
H A Dlossy.rs7 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 Dversion.rs34 let output = try!(str::from_utf8(&output.stdout).map_err(error::from_utf8)); in from_rustc()
/third_party/rust/crates/libc/
H A Dbuild.rs131 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 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()
/third_party/rust/crates/regex/src/
H A Dexpand.rs150 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 Dtwoway.rs719 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 Dcms.rs333 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 Derror.rs129 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 Dfuzz_next.rs6 if let Ok(s) = std::str::from_utf8(data) {
/third_party/rust/crates/cxx/gen/cmd/src/
H A Dtest.rs52 let help = String::from_utf8(out).unwrap(); in test_help()
/third_party/rust/crates/syn/fuzz/fuzz_targets/
H A Dcreate_token_buffer.rs14 if let Ok(string) = str::from_utf8(data) {
/third_party/rust/crates/cxx/
H A Dbuild.rs25 let version = String::from_utf8(output.stdout).ok()?; in rustc_version()
/third_party/rust/crates/os_str_bytes/src/wasm/
H A Draw.rs22 let string = expect_encoded!(str::from_utf8(string));
/third_party/rust/crates/os_str_bytes/tests/
H A Dintegration.rs10 assert!(str::from_utf8(string).is_err()); in assert_string_is_invalid_utf8()
/third_party/rust/crates/serde/serde/src/private/
H A Dmod.rs46 str::from_utf8(bytes).unwrap_or("\u{fffd}\u{fffd}\u{fffd}") in from_utf8_lossy()
/third_party/rust/crates/regex/tests/
H A Dmacros_str.rs7 macro_rules! bytes { ($text:expr) => { std::str::from_utf8($text.as_ref()).unwrap() } }

Completed in 8 milliseconds

1234