Home
last modified time | relevance | path

Searched refs:parse_str (Results 1 – 25 of 35) sorted by relevance

12

/external/rust/crates/uuid/benches/
Dinvalid_parse_str.rs10 let _ = Uuid::parse_str(""); in bench_parse_invalid_strings()
11 let _ = Uuid::parse_str("!"); in bench_parse_invalid_strings()
12 let _ = Uuid::parse_str("F9168C5E-CEB2-4faa-B6BF-329BF39FA1E45"); in bench_parse_invalid_strings()
13 let _ = Uuid::parse_str("F9168C5E-CEB2-4faa-BBF-329BF39FA1E4"); in bench_parse_invalid_strings()
14 let _ = Uuid::parse_str("F9168C5E-CEB2-4faa-BGBF-329BF39FA1E4"); in bench_parse_invalid_strings()
15 let _ = Uuid::parse_str("F9168C5E-CEB2-4faa-B6BFF329BF39FA1E4"); in bench_parse_invalid_strings()
16 let _ = Uuid::parse_str("F9168C5E-CEB2-4faa"); in bench_parse_invalid_strings()
17 let _ = Uuid::parse_str("F9168C5E-CEB2-4faaXB6BFF329BF39FA1E4"); in bench_parse_invalid_strings()
18 let _ = Uuid::parse_str("F9168C5E-CEB-24fa-eB6BFF32-BF39FA1E4"); in bench_parse_invalid_strings()
19 let _ = Uuid::parse_str("01020304-1112-2122-3132-41424344"); in bench_parse_invalid_strings()
[all …]
Dvalid_parse_str.rs12 let _ = Uuid::parse_str("00000000000000000000000000000000"); in bench_parse_valid_strings()
13 let _ = Uuid::parse_str("67e55044-10b1-426f-9247-bb680e5fe0c8"); in bench_parse_valid_strings()
14 let _ = Uuid::parse_str("67e55044-10b1-426f-9247-bb680e5fe0c8"); in bench_parse_valid_strings()
15 let _ = Uuid::parse_str("F9168C5E-CEB2-4faa-B6BF-329BF39FA1E4"); in bench_parse_valid_strings()
16 let _ = Uuid::parse_str("67e5504410b1426f9247bb680e5fe0c8"); in bench_parse_valid_strings()
17 let _ = Uuid::parse_str("01020304-1112-2122-3132-414243444546"); in bench_parse_valid_strings()
19 Uuid::parse_str("urn:uuid:67e55044-10b1-426f-9247-bb680e5fe0c8"); in bench_parse_valid_strings()
22 let _ = Uuid::parse_str("00000000000000000000000000000000"); in bench_parse_valid_strings()
23 let _ = Uuid::parse_str("00000000-0000-0000-0000-000000000000"); in bench_parse_valid_strings()
30 let _ = Uuid::parse_str("67e55044-10b1-426f-9247-bb680e5fe0c8"); in bench_valid_hyphenated()
[all …]
Dformat_str.rs10 let uuid = Uuid::parse_str("F9168C5E-CEB2-4faa-B6BF-329BF39FA1E4").unwrap(); in bench_hyphen()
20 let uuid = Uuid::parse_str("F9168C5E-CEB2-4faa-B6BF-329BF39FA1E4").unwrap(); in bench_simple()
30 let uuid = Uuid::parse_str("F9168C5E-CEB2-4faa-B6BF-329BF39FA1E4").unwrap(); in bench_urn()
40 let uuid = Uuid::parse_str("F9168C5E-CEB2-4faa-B6BF-329BF39FA1E4").unwrap(); in bench_encode_hyphen()
50 let uuid = Uuid::parse_str("F9168C5E-CEB2-4faa-B6BF-329BF39FA1E4").unwrap(); in bench_encode_simple()
60 let uuid = Uuid::parse_str("F9168C5E-CEB2-4faa-B6BF-329BF39FA1E4").unwrap(); in bench_encode_urn()
Dserde_support.rs13 let uuid = Uuid::parse_str("F9168C5E-CEB2-4faa-B6BF-329BF39FA1E4").unwrap(); in bench_json_encode()
31 let uuid = Uuid::parse_str("F9168C5E-CEB2-4faa-B6BF-329BF39FA1E4").unwrap(); in bench_bincode_encode()
/external/rust/crates/uuid/src/parser/
Dmod.rs57 pub fn parse_str(mut input: &str) -> Result<Uuid, crate::Error> { in parse_str() method
222 Uuid::parse_str("").map_err(crate::Error::expect_parser), in test_parse_uuid_v4()
230 Uuid::parse_str("!").map_err(crate::Error::expect_parser), in test_parse_uuid_v4()
238 Uuid::parse_str("F9168C5E-CEB2-4faa-B6BF-329BF39FA1E45") in test_parse_uuid_v4()
247 Uuid::parse_str("F9168C5E-CEB2-4faa-BBF-329BF39FA1E4") in test_parse_uuid_v4()
256 Uuid::parse_str("F9168C5E-CEB2-4faa-BGBF-329BF39FA1E4") in test_parse_uuid_v4()
267 Uuid::parse_str("F9168C5E-CEB2F4faaFB6BFF329BF39FA1E4") in test_parse_uuid_v4()
276 Uuid::parse_str("F9168C5E-CEB2-4faaFB6BFF329BF39FA1E4") in test_parse_uuid_v4()
285 Uuid::parse_str("F9168C5E-CEB2-4faa-B6BFF329BF39FA1E4") in test_parse_uuid_v4()
294 Uuid::parse_str("F9168C5E-CEB2-4faa") in test_parse_uuid_v4()
[all …]
/external/rust/crates/syn/tests/
Dtest_pat.rs29 syn::parse_str::<Item>("fn f() {}").unwrap(); in test_leading_vert()
30 syn::parse_str::<Item>("fn fun1(| A: E) {}").unwrap_err(); in test_leading_vert()
31 syn::parse_str::<Item>("fn fun2(|| A: E) {}").unwrap_err(); in test_leading_vert()
33 syn::parse_str::<Stmt>("let | () = ();").unwrap(); in test_leading_vert()
34 syn::parse_str::<Stmt>("let (| A): E;").unwrap(); in test_leading_vert()
35 syn::parse_str::<Stmt>("let (|| A): (E);").unwrap_err(); in test_leading_vert()
36 syn::parse_str::<Stmt>("let (| A,): (E,);").unwrap(); in test_leading_vert()
37 syn::parse_str::<Stmt>("let [| A]: [E; 1];").unwrap(); in test_leading_vert()
38 syn::parse_str::<Stmt>("let [|| A]: [E; 1];").unwrap_err(); in test_leading_vert()
39 syn::parse_str::<Stmt>("let TS(| A): TS;").unwrap(); in test_leading_vert()
[all …]
Dtest_ty.rs11 syn::parse_str::<Type>("fn(mut self)").unwrap(); in test_mut_self()
12 syn::parse_str::<Type>("fn(mut self: ())").unwrap(); in test_mut_self()
13 syn::parse_str::<Type>("fn(mut self: ...)").unwrap_err(); in test_mut_self()
14 syn::parse_str::<Type>("fn(mut self: mut self)").unwrap_err(); in test_mut_self()
15 syn::parse_str::<Type>("fn(mut self::T)").unwrap_err(); in test_mut_self()
Dtest_parse_buffer.rs16 nested.parse_str("") in smuggled_speculative_cursor_between_sources()
20 syn::parse_str::<BreakRules>("").unwrap(); in smuggled_speculative_cursor_between_sources()
38 syn::parse_str::<BreakRules>("()()").unwrap(); in smuggled_speculative_cursor_between_brackets()
54 syn::parse_str::<BreakRules>("()").unwrap(); in smuggled_speculative_cursor_into_brackets()
Dtest_stmt.rs10 let stmt = syn::parse_str::<Stmt>("let _ = &raw const x;").unwrap(); in test_raw_operator()
22 let stmt = syn::parse_str::<Stmt>("let _ = &raw;").unwrap(); in test_raw_variable()
45 assert!(syn::parse_str::<Stmt>("let _ = &raw x;").is_err()); in test_raw_invalid()
Dtest_lit.rs219 assert!(syn::parse_str::<LitFloat>("-1.0e99f64").is_ok()); in negative_overflow()
220 assert!(syn::parse_str::<LitFloat>("-1.0e999f64").is_err()); in negative_overflow()
226 let lit = syn::parse_str::<Lit>(token).unwrap(); in suffix()
266 let err = syn::parse_str::<LitStr>("...").unwrap_err(); in test_error()
269 let err = syn::parse_str::<LitStr>("5").unwrap_err(); in test_error()
Dtest_token_trees.rs28 let parsed: Lit = syn::parse_str(code).unwrap(); in test_literal_mangling()
Dtest_attribute.rs330 let attrs = Attribute::parse_outer.parse_str(input).unwrap(); in test()
Dtest_visibility.rs31 let parse: VisRest = syn::parse_str($input).unwrap();
/external/rust/crates/uuid/src/
Dlib.rs597 Uuid::parse_str(uuid_str) in from_str()
767 Uuid::parse_str("550e8400-e29b-41d4-a716-446655440000").unwrap(); in test_get_variant()
769 Uuid::parse_str("67e55044-10b1-426f-9247-bb680e5fe0c8").unwrap(); in test_get_variant()
771 Uuid::parse_str("936DA01F9ABD4d9dC0C702AF85C822A8").unwrap(); in test_get_variant()
773 Uuid::parse_str("F9168C5E-CEB2-4faa-D6BF-329BF39FA1E4").unwrap(); in test_get_variant()
775 Uuid::parse_str("f81d4fae-7dec-11d0-7765-00a0c91e6bf6").unwrap(); in test_get_variant()
863 let uuid_hs = Uuid::parse_str(&hs).unwrap(); in test_string_roundtrip()
867 let uuid_ss = Uuid::parse_str(&ss).unwrap(); in test_string_roundtrip()
Dserde_support.rs102 let u = Uuid::parse_str(uuid_str).unwrap(); in test_serialize_readable()
/external/rust/crates/uuid/benches/slog_support/
Dmod.rs1 pub mod parse_str; module
Dparse_str.rs7 uuid::Uuid::parse_str("F9168C5E-CEB2-4FAB-B6BF-329BF39FA1E4").unwrap(); in bench_log_discard_kv()
/external/strace/
Dstrace-graph114 sub parse_str { subroutine
139 ($tmp, $in) = parse_str($in);
/external/rust/crates/syn/src/
Dlib.rs931 pub fn parse_str<T: parse::Parse>(s: &str) -> Result<T> { in parse_str() function
932 parse::Parser::parse_str(T::parse, s) in parse_str()
995 let mut file: File = parse_str(content)?; in parse_file()
/external/rust/crates/syn/tests/common/
Dparse.rs41 match syn::parse_str(input) { in syn_expr()
/external/rust/crates/serde_json/src/
Dread.rs62 fn parse_str<'s>(&'s mut self, scratch: &'s mut Vec<u8>) -> Result<Reference<'de, 's, str>>; in parse_str() method
323 fn parse_str<'s>(&'s mut self, scratch: &'s mut Vec<u8>) -> Result<Reference<'de, 's, str>> { in parse_str() function
524 fn parse_str<'s>(&'s mut self, scratch: &'s mut Vec<u8>) -> Result<Reference<'a, 's, str>> { in parse_str() method
648 fn parse_str<'s>(&'s mut self, scratch: &'s mut Vec<u8>) -> Result<Reference<'a, 's, str>> { in parse_str() method
728 fn parse_str<'s>(&'s mut self, scratch: &'s mut Vec<u8>) -> Result<Reference<'de, 's, str>> { in parse_str() function
729 R::parse_str(self, scratch) in parse_str()
/external/rust/cxx/syntax/
Dnames.rs56 match syn::parse_str::<Ident>(text) { in parse()
/external/rust/crates/syn/tests/macros/
Dmod.rs67 syn::parse_str(self) in parse()
/external/rust/crates/serde_cbor/src/
Dde.rs341 fn parse_str<V>(&mut self, len: usize, visitor: V) -> Result<V::Value> in parse_str() function
656 0x60..=0x77 => self.parse_str(byte as usize - 0x60, visitor), in parse_value()
659 self.parse_str(len as usize, visitor) in parse_value()
663 self.parse_str(len as usize, visitor) in parse_value()
667 self.parse_str(len as usize, visitor) in parse_value()
674 self.parse_str(len as usize, visitor) in parse_value()
/external/rust/cxx/gen/src/
Dmod.rs108 let syntax: File = syn::parse_str(source)?; in generate_from_string()

12