/third_party/rust/crates/regex/tests/ |
D | fowler.rs | 5 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 …]
|
D | unicode.rs | 1 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 …]
|
D | bytes.rs | 14 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 …]
|
D | crazy.rs | 1 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 …]
|
D | regression.rs | 30 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/ |
D | lib.rs | 112 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/ |
D | comp.txt | 3 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/unicode-width/src/ |
D | tests.rs | 75 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/memchr/src/memmem/ |
D | mod.rs | 360 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/clap/clap_derive/src/ |
D | attr.rs | 80 "rename_all" => Some(MagicAttrName::RenameAll), in parse() 81 "rename_all_env" => Some(MagicAttrName::RenameAllEnv), in parse() 82 "skip" => Some(MagicAttrName::Skip), in parse() 83 "next_display_order" => Some(MagicAttrName::NextDisplayOrder), in parse() 84 "next_help_heading" => Some(MagicAttrName::NextHelpHeading), in parse() 85 "default_value_t" => Some(MagicAttrName::DefaultValueT), in parse() 86 "default_values_t" => Some(MagicAttrName::DefaultValuesT), in parse() 87 "default_value_os_t" => Some(MagicAttrName::DefaultValueOsT), in parse() 88 "default_values_os_t" => Some(MagicAttrName::DefaultValuesOsT), in parse() 89 "long" => Some(MagicAttrName::Long), in parse() [all …]
|
/third_party/rust/crates/cxx/syntax/ |
D | check.rs | 126 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 …]
|
D | error.rs | 33 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 …]
|
D | atom.rs | 33 "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/shlex/src/ |
D | lib.rs | 66 '\\' => 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/rustix/src/backend/linux_raw/process/ |
D | types.rs | 167 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/rustix/src/backend/libc/process/ |
D | types.rs | 297 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/ |
D | format.rs | 34 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 …]
|
D | context.rs | 46 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 …]
|
D | kind.rs | 319 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/ |
D | options.rs | 107 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/lazycell/src/ |
D | lib.rs | 80 *slot = Some(value); in fill() 96 mem::replace(unsafe { &mut *self.inner.get() }, Some(value)) in replace() 132 if let Some(value) = self.borrow() { in borrow_with() 170 if let Some(value) = self.borrow() { in try_borrow_with() 261 unsafe { *self.inner.get() = Some(t) }; in fill() 285 mem::replace(unsafe { &mut *self.inner.get() }, Some(value)) in replace() 338 inner: UnsafeCell::new(Some(v.clone())), in clone() 373 assert_eq!(value, Some(&1)); in test_fill_and_borrow() 376 assert_eq!(value, Some(1)); in test_fill_and_borrow() 385 assert_eq!(lazycell.borrow_mut(), Some(&mut 1)); in test_borrow_mut() [all …]
|
/third_party/rust/crates/clap/clap_mangen/src/ |
D | render.rs | 6 Some(title) => title, in subcommand_heading() 13 Some(about) => format!("{} - {}", cmd.get_name(), about), in about() 20 if let Some(about) = cmd.get_long_about().or_else(|| cmd.get_about()) { in description() 37 (Some(short), Some(long)) => { in synopsis() 44 (Some(short), None) => { in synopsis() 49 (None, Some(long)) => { in synopsis() 66 if let Some(value) = arg.get_value_names() { in synopsis() 94 (Some(short), Some(long)) => { in options() 97 (Some(short), None) => vec![short_option(short)], in options() 98 (None, Some(long)) => vec![long_option(long)], in options() [all …]
|
/third_party/rust/crates/memchr/src/memchr/x86/ |
D | sse2.rs | 118 return Some(sub(ptr, start_ptr)); in memchr() 125 if let Some(i) = forward_search1(start_ptr, end_ptr, ptr, vn1) { in memchr() 126 return Some(i); in memchr() 149 return Some(at + forward_pos(mask)); in memchr() 155 return Some(at + forward_pos(mask)); in memchr() 161 return Some(at + forward_pos(mask)); in memchr() 167 return Some(at + forward_pos(mask)); in memchr() 174 if let Some(i) = forward_search1(start_ptr, end_ptr, ptr, vn1) { in memchr() 175 return Some(i); in memchr() 202 return Some(sub(ptr, start_ptr)); in memchr2() [all …]
|
/third_party/rust/crates/regex/src/ |
D | re_trait.rs | 25 (Some(&Some(s)), Some(&Some(e))) => Some((s, e)), in pos() 71 None => Some(None), in next() 72 Some((s, e)) => Some(Some((s, e))), in next() 80 (len, Some(len)) in size_hint() 205 Some((s, e)) => (s, e), in next() 214 if Some(e) == self.last_match { in next() 220 self.last_match = Some(e); in next() 221 Some((s, e)) in next() 274 Some((s, e)) => (s, e), in next() 278 if Some(e) == self.0.last_match { in next() [all …]
|
/third_party/rust/crates/proc-macro2/src/ |
D | parse.rs | 159 Some(ch) if is_ident_continue(ch) => Err(Reject), in word_break() 160 Some(_) | None => Ok(input), in word_break() 184 Some(first) => first, in token_stream() 188 Some((lo, _frame)) => { in token_stream() 194 Some(_frame) => return Err(LexError { span: Span {} }), in token_stream() 198 if let Some(open_delimiter) = match first { in token_stream() 199 b'(' if !input.starts_with(ERROR) => Some(Delimiter::Parenthesis), in token_stream() 200 b'[' => Some(Delimiter::Bracket), in token_stream() 201 b'{' => Some(Delimiter::Brace), in token_stream() 210 } else if let Some(close_delimiter) = match first { in token_stream() [all …]
|