Home
last modified time | relevance | path

Searched refs:Some (Results 1 – 25 of 2867) sorted by relevance

12345678910>>...115

/third_party/rust/crates/regex/tests/
Dfowler.rs5 mat!(match_basic_3, r"abracadabra$", r"abracadabracadabra", Some((7, 18)));
6 mat!(match_basic_4, r"a...b", r"abababbb", Some((2, 7)));
7 mat!(match_basic_5, r"XXXXXX", r"..XXXXXX", Some((2, 8)));
8 mat!(match_basic_6, r"\)", r"()", Some((1, 2)));
9 mat!(match_basic_7, r"a]", r"a]a", Some((0, 2)));
10 mat!(match_basic_9, r"\}", r"}", Some((0, 1)));
11 mat!(match_basic_10, r"\]", r"]", Some((0, 1)));
12 mat!(match_basic_12, r"]", r"]", Some((0, 1)));
13 mat!(match_basic_15, r"^a", r"ax", Some((0, 1)));
14 mat!(match_basic_16, r"\^a", r"a^a", Some((1, 3)));
[all …]
Dunicode.rs1 mat!(uni_literal, r"☃", "☃", Some((0, 3)));
2 mat!(uni_literal_plus, r"☃+", "☃", Some((0, 3)));
3 mat!(uni_literal_casei_plus, r"(?i)☃+", "☃", Some((0, 3)));
4 mat!(uni_class_plus, r"[☃Ⅰ]+", "☃", Some((0, 3)));
5 mat!(uni_one, r"\pN", "Ⅰ", Some((0, 3)));
6 mat!(uni_mixed, r"\pN+", "Ⅰ1Ⅱ2", Some((0, 8)));
7 mat!(uni_not, r"\PN+", "abⅠ", Some((0, 2)));
8 mat!(uni_not_class, r"[\PN]+", "abⅠ", Some((0, 2)));
9 mat!(uni_not_class_neg, r"[^\PN]+", "abⅠ", Some((2, 5)));
10 mat!(uni_case, r"(?i)Δ", "δ", Some((0, 2)));
[all …]
Dbytes.rs14 mat!(word_boundary_unicode, r" \b", " δ", Some((0, 1)));
15 mat!(word_not_boundary, r"(?-u) \B", " δ", Some((0, 1)));
19 mat!(perl_w_ascii, r"(?-u)\w+", "aδ", Some((0, 1)));
21 mat!(perl_w_unicode, r"\w+", "aδ", Some((0, 3)));
22 mat!(perl_d_ascii, r"(?-u)\d+", "1२३9", Some((0, 1)));
24 mat!(perl_d_unicode, r"\d+", "1२३9", Some((0, 8)));
25 mat!(perl_s_ascii, r"(?-u)\s+", " \u{1680}", Some((0, 1)));
27 mat!(perl_s_unicode, r"\s+", " \u{1680}", Some((0, 4)));
36 Some((0, 5)),
37 Some((0, 4)),
[all …]
Dcrazy.rs1 mat!(ascii_literal, r"a", "a", Some((0, 1)));
8 Some((5, 8))
16 mat!(match_float1, r"[-+]?[0-9]*\.?[0-9]+", "0.1", Some((0, 3)));
17 mat!(match_float2, r"[-+]?[0-9]*\.?[0-9]+", "0.1.2", Some((0, 3)));
18 mat!(match_float3, r"[-+]?[0-9]*\.?[0-9]+", "a1.2", Some((1, 4)));
24 Some((8, 26))
36 Some((8, 26))
42 Some((0, 10))
86 mat!(negclass_letters, r"[^ac]", "acx", Some((2, 3)));
87 mat!(negclass_letter_comma, r"[^a,]", "a,x", Some((2, 3)));
[all …]
Dregression.rs30 mat!(regression_unsorted_binary_search_1, r"(?i-u)[a_]+", "A_", Some((0, 2)));
31 mat!(regression_unsorted_binary_search_2, r"(?i-u)[A_]+", "a_", Some((0, 2)));
40 mat!(regression_ascii_word_underscore, r"[[:word:]]", "_", Some((0, 1)));
51 mat!(regression_alt_in_alt1, r"ab?|$", "az", Some((0, 1)));
52 mat!(regression_alt_in_alt2, r"^(.*?)(\n|\r\n?|$)", "ab\rcd", Some((0, 3)));
55 mat!(regression_leftmost_first_prefix, r"z*azb", "azb", Some((0, 3)));
59 mat!(uni_case_lower_nocase_flag, r"(?i)\p{Ll}+", "ΛΘΓΔα", Some((0, 10)));
62 mat!(many_alternates, r"1|2|3|4|5|6|7|8|9|10|int", "int", Some((0, 3)));
106 mat!(lits_unambiguous1, r"(ABC|CDA|BC)X", "CDAX", Some((0, 4)));
113 Some((0, 8)),
[all …]
/third_party/rust/crates/version_check/src/
Dlib.rs112 Some("rustc") => { in version_and_date_from_rustc_verbose_version()
117 Some("release:") => version = split(line), in version_and_date_from_rustc_verbose_version()
118 Some("commit-date:") if line.ends_with("unknown") => date = None, in version_and_date_from_rustc_verbose_version()
119 Some("commit-date:") => date = split(line), in version_and_date_from_rustc_verbose_version()
145 Some((Some(version), Some(date))) => (version, date), in triple()
151 Some(version) => match Channel::parse(&version_str) { in triple()
152 Some(channel) => match Date::parse(&date_str) { in triple()
153 Some(date) => Some((version, channel, date)), in triple()
173 (Some(rustc_date), Some(min_date)) => Some(rustc_date >= min_date), in is_min_date()
189 (Some(rustc_date), Some(max_date)) => Some(rustc_date <= max_date), in is_max_date()
[all …]
/third_party/openssl/demos/cms/
Dcomp.txt3 Some Text To be Compressed
4 Some Text To be Compressed
5 Some Text To be Compressed
6 Some Text To be Compressed
7 Some Text To be Compressed
8 Some Text To be Compressed
9 Some Text To be Compressed
10 Some Text To be Compressed
11 Some Text To be Compressed
12 Some Text To be Compressed
[all …]
/third_party/rust/crates/clap/clap_derive/src/
Dattr.rs32 Some(Sp::new(AttrKind::Clap, attr.path.span())) in parse_all()
34 Some(Sp::new(AttrKind::StructOpt, attr.path.span())) in parse_all()
36 Some(Sp::new(AttrKind::Command, attr.path.span())) in parse_all()
38 Some(Sp::new(AttrKind::Group, attr.path.span())) in parse_all()
40 Some(Sp::new(AttrKind::Arg, attr.path.span())) in parse_all()
42 Some(Sp::new(AttrKind::Value, attr.path.span())) in parse_all()
87 "rename_all" => Some(MagicAttrName::RenameAll), in parse()
88 "rename_all_env" => Some(MagicAttrName::RenameAllEnv), in parse()
89 "skip" => Some(MagicAttrName::Skip), in parse()
90 "next_display_order" => Some(MagicAttrName::NextDisplayOrder), in parse()
[all …]
/third_party/rust/crates/tracing/tracing-subscriber/tests/
Doption.rs26 assert_eq!(subscriber.max_level_hint(), Some(LevelFilter::INFO)); in just_layer()
33 .with(Some(LevelFilter::DEBUG)); in subscriber_and_option_some_layer()
34 assert_eq!(subscriber.max_level_hint(), Some(LevelFilter::DEBUG)); in subscriber_and_option_some_layer()
43 assert_eq!(subscriber.max_level_hint(), Some(LevelFilter::ERROR)); in subscriber_and_option_none_layer()
50 assert_eq!(subscriber.max_level_hint(), Some(LevelFilter::OFF)); in just_option_some_layer()
56 let subscriber = tracing_subscriber::registry().with(Some(LevelFilter::ERROR)); in just_option_none_layer()
57 assert_eq!(subscriber.max_level_hint(), Some(LevelFilter::ERROR)); in just_option_none_layer()
77 .with(Some(LevelFilter::ERROR)); in none_outside_doesnt_override_max_level()
80 Some(LevelFilter::ERROR), in none_outside_doesnt_override_max_level()
87 .with(BasicLayer(Some(LevelFilter::DEBUG))) in none_outside_doesnt_override_max_level()
[all …]
/third_party/rust/crates/unicode-width/src/
Dtests.rs75 Some(1) in simple_width_if()
77 Some(0) in simple_width_if()
90 cu if cu == 0 => Some(0), in simple_width_match()
92 cu if cu < 0x7f => Some(1), in simple_width_match()
141 use core::option::Option::{Some, None}; in test_char()
143 assert_eq!(UnicodeWidthChar::width('h'), Some(2)); in test_char()
144 assert_eq!('h'.width_cjk(), Some(2)); in test_char()
145 assert_eq!(UnicodeWidthChar::width('\x00'), Some(0)); in test_char()
146 assert_eq!('\x00'.width_cjk(), Some(0)); in test_char()
149 assert_eq!(UnicodeWidthChar::width('\u{2081}'), Some(1)); in test_char()
[all …]
/third_party/rust/crates/rust-std-candidates/zip_longest/
Dlib.rs42 (Some(a), None) => Some(EitherOrBoth::Left(a)), in next()
43 (None, Some(b)) => Some(EitherOrBoth::Right(b)), in next()
44 (Some(a), Some(b)) => Some(EitherOrBoth::Both(a, b)), in next()
56 (Some(x), Some(y)) => Some(cmp::max(x,y)), in size_hint()
72 (Some(a), Some(b)) => Some(EitherOrBoth::Both(a, b)), in next_back()
74 (Some(a), None) => Some(EitherOrBoth::Left(a)), in next_back()
75 (None, Some(b)) => Some(EitherOrBoth::Right(b)), in next_back()
114 assert_eq!(vi.zip_longest(v2.iter()).size_hint(), (10, Some(10))); in test_iterator_size_hint()
124 assert_eq!(it.next(), Some(EitherOrBoth::Both(1, 1))); in test_double_ended()
125 assert_eq!(it.next(), Some(EitherOrBoth::Both(2, 2))); in test_double_ended()
[all …]
/third_party/rust/crates/shlex/src/
Dlib.rs66 '\\' => if let Some(ch2) = self.next_char() { in parse_word()
75 if let Some(ch2) = self.next_char() { ch = ch2; } else { break; } in parse_word()
77 unsafe { Some(String::from_utf8_unchecked(result)) } in parse_word()
82 if let Some(ch2) = self.next_char() { in parse_double()
85 if let Some(ch3) = self.next_char() { in parse_double()
109 if let Some(ch2) = self.next_char() { in parse_single()
122 if res == Some('\n' as u8) { self.line_no += 1; } in next_char()
130 if let Some(mut ch) = self.next_char() { in next()
136 while let Some(ch2) = self.next_char() { in next()
142 if let Some(ch2) = self.next_char() { ch = ch2; } else { return None; } in next()
[all …]
/third_party/rust/crates/memchr/src/memmem/
Dmod.rs360 Some(i) => { in next()
363 Some(pos) in next()
390 let pos = Some(haystack.len()); in new()
418 Some(pos) => pos, in next()
423 Some(i) => { in next()
427 self.pos = Some(i); in next()
429 Some(i) in next()
840 if let Some(fwd) = x86::avx::Forward::new(&ninfo, needle) { in new()
842 } else if let Some(fwd) = x86::sse::Forward::new(&ninfo, needle) { in new()
848 if let Some(fwd) = wasm::Forward::new(&ninfo, needle) { in new()
[all …]
/third_party/rust/crates/rustix/src/backend/linux_raw/process/
Dtypes.rs167 linux_raw_sys::general::SIGHUP => Some(Self::Hup), in from_raw()
168 linux_raw_sys::general::SIGINT => Some(Self::Int), in from_raw()
169 linux_raw_sys::general::SIGQUIT => Some(Self::Quit), in from_raw()
170 linux_raw_sys::general::SIGILL => Some(Self::Ill), in from_raw()
171 linux_raw_sys::general::SIGTRAP => Some(Self::Trap), in from_raw()
172 linux_raw_sys::general::SIGABRT => Some(Self::Abort), in from_raw()
173 linux_raw_sys::general::SIGBUS => Some(Self::Bus), in from_raw()
174 linux_raw_sys::general::SIGFPE => Some(Self::Fpe), in from_raw()
175 linux_raw_sys::general::SIGKILL => Some(Self::Kill), in from_raw()
176 linux_raw_sys::general::SIGUSR1 => Some(Self::Usr1), in from_raw()
[all …]
/third_party/rust/crates/cxx/syntax/
Dcheck.rs126 None | Some(Bool) | Some(Char) | Some(U8) | Some(U16) | Some(U32) | Some(U64) in check_type_rust_vec()
127 | Some(Usize) | Some(I8) | Some(I16) | Some(I32) | Some(I64) | Some(Isize) in check_type_rust_vec()
128 | Some(F32) | Some(F64) | Some(RustString) => return, in check_type_rust_vec()
129 Some(CxxString) => {} in check_type_rust_vec()
147 None | Some(CxxString) => return, in check_type_unique_ptr()
165 None | Some(Bool) | Some(U8) | Some(U16) | Some(U32) | Some(U64) | Some(Usize) in check_type_shared_ptr()
166 | Some(I8) | Some(I16) | Some(I32) | Some(I64) | Some(Isize) | Some(F32) in check_type_shared_ptr()
167 | Some(F64) | Some(CxxString) => return, in check_type_shared_ptr()
168 Some(Char) | Some(RustString) => {} in check_type_shared_ptr()
186 None | Some(Bool) | Some(U8) | Some(U16) | Some(U32) | Some(U64) | Some(Usize) in check_type_weak_ptr()
[all …]
Derror.rs33 note: Some("hint: use UniquePtr<> or SharedPtr<>"),
38 label: Some("reserved identifier"),
39 note: Some("identifiers starting with cxxbridge are reserved"),
45 note: Some("hint: wrap it in a UniquePtr<>"),
51 note: Some("hint: wrap it in a UniquePtr<> or SharedPtr<>"),
56 label: Some("discriminant overflow"),
57 note: Some("note: explicitly set `= 0` if that is desired outcome"),
62 label: Some("#include relative to `.` or `..` is not supported in Cargo builds"),
63 note: Some("note: use a path starting with the crate name"),
68 label: Some("reserved identifier"),
[all …]
Datom.rs33 "bool" => Some(Bool), in from_str()
34 "c_char" => Some(Char), in from_str()
35 "u8" => Some(U8), in from_str()
36 "u16" => Some(U16), in from_str()
37 "u32" => Some(U32), in from_str()
38 "u64" => Some(U64), in from_str()
39 "usize" => Some(Usize), in from_str()
40 "i8" => Some(I8), in from_str()
41 "i16" => Some(I16), in from_str()
42 "i32" => Some(I32), in from_str()
[all …]
/third_party/rust/crates/proc-macro2/src/
Dparse.rs148 Some(ch) if is_ident_continue(ch) => Err(Reject), in word_break()
149 Some(_) | None => Ok(input), in word_break()
169 Some(first) => first, in token_stream()
173 Some((lo, _frame)) => { in token_stream()
179 Some(_frame) => return Err(LexError { span: Span {} }), in token_stream()
183 if let Some(open_delimiter) = match first { in token_stream()
184 b'(' => Some(Delimiter::Parenthesis), in token_stream()
185 b'[' => Some(Delimiter::Bracket), in token_stream()
186 b'{' => Some(Delimiter::Brace), in token_stream()
195 } else if let Some(close_delimiter) = match first { in token_stream()
[all …]
/third_party/rust/crates/tracing/tracing-subscriber/src/filter/env/
Ddirective.rs56 Some(StaticDirective::new( in to_static()
81 if let Some(field) = fieldset.field(name) { in field_matcher()
83 Some(Ok((field, value))) in field_matcher()
85 Some(Err(())) in field_matcher()
91 Some(field::CallsiteMatch { in field_matcher()
114 Some(field::ValueMatch::Pat(pat)) => { in deregexify()
115 Some(field::ValueMatch::Debug(pat.into_debug_match())) in deregexify()
159 if let Some(level) = caps in parse()
174 Some(s.to_owned()) in parse()
193 Some((span, fields)) in parse()
[all …]
/third_party/rust/crates/rustix/src/backend/libc/process/
Dtypes.rs297 c::SIGHUP => Some(Self::Hup), in from_raw()
298 c::SIGINT => Some(Self::Int), in from_raw()
299 c::SIGQUIT => Some(Self::Quit), in from_raw()
300 c::SIGILL => Some(Self::Ill), in from_raw()
301 c::SIGTRAP => Some(Self::Trap), in from_raw()
302 c::SIGABRT => Some(Self::Abort), in from_raw()
303 c::SIGBUS => Some(Self::Bus), in from_raw()
304 c::SIGFPE => Some(Self::Fpe), in from_raw()
305 c::SIGKILL => Some(Self::Kill), in from_raw()
306 c::SIGUSR1 => Some(Self::Usr1), in from_raw()
[all …]
/third_party/rust/crates/clap/src/error/
Dcontext.rs46 Self::InvalidSubcommand => Some("Invalid Subcommand"), in as_str()
47 Self::InvalidArg => Some("Invalid Argument"), in as_str()
48 Self::PriorArg => Some("Prior Argument"), in as_str()
49 Self::ValidSubcommand => Some("Valid Subcommand"), in as_str()
50 Self::ValidValue => Some("Valid Value"), in as_str()
51 Self::InvalidValue => Some("Invalid Value"), in as_str()
52 Self::ActualNumValues => Some("Actual Number of Values"), in as_str()
53 Self::ExpectedNumValues => Some("Expected Number of Values"), in as_str()
54 Self::MinValues => Some("Minimum Number of Values"), in as_str()
55 Self::SuggestedCommand => Some("Suggested Command"), in as_str()
[all …]
Dformat.rs34 if let Some(msg) = error.kind().as_str() { in format_error()
36 } else if let Some(source) = error.inner.source.as_ref() { in format_error()
60 if let Some(msg) = error.kind().as_str() { in format_error()
62 } else if let Some(source) = error.inner.source.as_ref() { in format_error()
70 if let Some(valid) = error.get(ContextKind::SuggestedSubcommand) { in format_error()
78 if let Some(valid) = error.get(ContextKind::SuggestedArg) { in format_error()
86 if let Some(valid) = error.get(ContextKind::SuggestedValue) { in format_error()
95 if let Some(ContextValue::StyledStrs(suggestions)) = suggestions { in format_error()
108 if let Some(ContextValue::StyledStr(usage)) = usage { in format_error()
130 if let (Some(ContextValue::String(invalid_arg)), Some(prior_arg)) = in write_dynamic_context()
[all …]
Dkind.rs319 Self::InvalidValue => Some("one of the values isn't valid for an argument"), in as_str()
320 Self::UnknownArgument => Some("unexpected argument found"), in as_str()
321 Self::InvalidSubcommand => Some("unrecognized subcommand"), in as_str()
322 Self::NoEquals => Some("equal is needed when assigning values to one of the arguments"), in as_str()
323 Self::ValueValidation => Some("invalid value for one of the arguments"), in as_str()
324 Self::TooManyValues => Some("unexpected value for an argument found"), in as_str()
325 Self::TooFewValues => Some("more values required for an argument"), in as_str()
326 Self::WrongNumberOfValues => Some("too many or too few values for an argument"), in as_str()
328 Some("an argument cannot be used with one or more of the other specified arguments") in as_str()
331 Some("one or more required arguments were not provided") in as_str()
[all …]
/third_party/rust/crates/clap/tests/derive/
Doptions.rs107 Opt { a: Some(A) }, in option_from_str()
163 Opt { a: Some(vec![A]) }, in option_vec_from_str()
177 Opt { arg: Some(42) }, in option_type_is_optional()
181 Opt { arg: Some(42) }, in option_type_is_optional()
210 req_str: Some(("arg").into()), in required_with_option_type()
219 cmd: Some(SubCommands::ExSub { verbose: 1 }), in required_with_option_type()
230 Ok(Some(s.to_string())) in ignore_qualified_option_type()
242 arg: Some("success".into()) in ignore_qualified_option_type()
259 arg: Some(Some(42)) in option_option_type_is_optional_value()
264 Opt { arg: Some(None) }, in option_option_type_is_optional_value()
[all …]
/third_party/rust/crates/syn/tests/
Dtest_receiver.rs9 Some(FnArg::Typed(_)) => (), in test_by_value()
20 Some(FnArg::Typed(_)) => (), in test_by_mut_value()
31 Some(FnArg::Typed(_)) => (), in test_by_ref()
42 Some(FnArg::Typed(_)) => (), in test_by_box()
53 Some(FnArg::Typed(_)) => (), in test_by_pin()
64 Some(FnArg::Typed(_)) => (), in test_explicit_type()
75 Some(FnArg::Receiver(Receiver { in test_value_shorthand()
90 Some(FnArg::Receiver(Receiver { in test_mut_value_shorthand()
92 mutability: Some(_), in test_mut_value_shorthand()
105 Some(FnArg::Receiver(Receiver { in test_ref_shorthand()
[all …]

12345678910>>...115