/third_party/rust/crates/clap/tests/builder/ |
D | action.rs | 13 let matches = cmd.clone().try_get_matches_from(["test"]).unwrap(); in set() localVariable 14 assert_eq!(matches.get_one::<String>("mammal"), None); in set() 15 assert_eq!(matches.contains_id("mammal"), false); in set() 16 assert_eq!(matches.index_of("mammal"), None); in set() 18 let matches = cmd in set() localVariable 22 assert_eq!(matches.get_one::<String>("mammal").unwrap(), "dog"); in set() 23 assert_eq!(matches.contains_id("mammal"), true); in set() 24 assert_eq!(matches.index_of("mammal"), Some(2)); in set() 32 let matches = cmd in set() localVariable 37 assert_eq!(matches.get_one::<String>("mammal").unwrap(), "cat"); in set() [all …]
|
D | tests.rs | 91 let matches = utils::complex_app() in check_complex_output() localVariable 94 match matches.get_one::<u8>("flag").unwrap() { in check_complex_output() 103 if matches.contains_id("option") { in check_complex_output() 104 if let Some(v) = matches.get_one::<String>("option").map(|v| v.as_str()) { in check_complex_output() 107 if let Some(ov) = matches.get_many::<String>("option") { in check_complex_output() 116 if let Some(p) = matches.get_one::<String>("positional").map(|v| v.as_str()) { in check_complex_output() 122 if *matches.get_one::<bool>("flag2").expect("defaulted by clap") { in check_complex_output() 127 matches in check_complex_output() 136 matches in check_complex_output() 147 matches in check_complex_output() [all …]
|
D | flag_subcommands.rs | 7 let matches = Command::new("test") in flag_subcommand_normal() localVariable 19 assert_eq!(matches.subcommand_name().unwrap(), "some"); in flag_subcommand_normal() 20 let sub_matches = matches.subcommand_matches("some").unwrap(); in flag_subcommand_normal() 28 let matches = Command::new("test") in flag_subcommand_normal_with_alias() localVariable 44 assert_eq!(matches.subcommand_name().unwrap(), "some"); in flag_subcommand_normal_with_alias() 45 let sub_matches = matches.subcommand_matches("some").unwrap(); in flag_subcommand_normal_with_alias() 53 let matches = Command::new("test") in flag_subcommand_short() localVariable 65 assert_eq!(matches.subcommand_name().unwrap(), "some"); in flag_subcommand_short() 66 let sub_matches = matches.subcommand_matches("some").unwrap(); in flag_subcommand_short() 74 let matches = Command::new("test") in flag_subcommand_short_with_args() localVariable [all …]
|
/third_party/node/deps/brotli/c/enc/ |
D | static_dict.c | 27 uint32_t* matches) { in AddMatch() argument 29 matches[len] = BROTLI_MIN(uint32_t, matches[len], match); in AddMatch() 79 size_t min_length, size_t max_length, uint32_t* matches) { in BrotliFindAllStaticDictionaryMatches() argument 100 AddMatch(id, l, l, matches); in BrotliFindAllStaticDictionaryMatches() 106 AddMatch(id + 12 * n, l - 1, l, matches); in BrotliFindAllStaticDictionaryMatches() 110 AddMatch(id + 49 * n, l + 3, l, matches); in BrotliFindAllStaticDictionaryMatches() 122 AddMatch(id + transform_id * n, len, l, matches); in BrotliFindAllStaticDictionaryMatches() 131 AddMatch(id + n, l + 1, l, matches); in BrotliFindAllStaticDictionaryMatches() 134 AddMatch(id + 28 * n, l + 3, l, matches); in BrotliFindAllStaticDictionaryMatches() 136 if (s[3] == ' ') AddMatch(id + 46 * n, l + 4, l, matches); in BrotliFindAllStaticDictionaryMatches() [all …]
|
/third_party/skia/third_party/externals/brotli/c/enc/ |
D | static_dict.c | 27 uint32_t* matches) { in AddMatch() argument 29 matches[len] = BROTLI_MIN(uint32_t, matches[len], match); in AddMatch() 79 size_t min_length, size_t max_length, uint32_t* matches) { in BrotliFindAllStaticDictionaryMatches() argument 100 AddMatch(id, l, l, matches); in BrotliFindAllStaticDictionaryMatches() 106 AddMatch(id + 12 * n, l - 1, l, matches); in BrotliFindAllStaticDictionaryMatches() 110 AddMatch(id + 49 * n, l + 3, l, matches); in BrotliFindAllStaticDictionaryMatches() 122 AddMatch(id + transform_id * n, len, l, matches); in BrotliFindAllStaticDictionaryMatches() 131 AddMatch(id + n, l + 1, l, matches); in BrotliFindAllStaticDictionaryMatches() 134 AddMatch(id + 28 * n, l + 3, l, matches); in BrotliFindAllStaticDictionaryMatches() 136 if (s[3] == ' ') AddMatch(id + 46 * n, l + 4, l, matches); in BrotliFindAllStaticDictionaryMatches() [all …]
|
/third_party/rust/crates/clap/src/ |
D | derive.rs | 82 let mut matches = <Self as CommandFactory>::command().get_matches(); in parse() localVariable 83 let res = <Self as FromArgMatches>::from_arg_matches_mut(&mut matches) in parse() 97 let mut matches = ok!(<Self as CommandFactory>::command().try_get_matches()); in try_parse() localVariable 98 <Self as FromArgMatches>::from_arg_matches_mut(&mut matches).map_err(format_error::<Self>) in try_parse() 107 let mut matches = <Self as CommandFactory>::command().get_matches_from(itr); in parse_from() localVariable 108 let res = <Self as FromArgMatches>::from_arg_matches_mut(&mut matches) in parse_from() 126 let mut matches = ok!(<Self as CommandFactory>::command().try_get_matches_from(itr)); in try_parse_from() localVariable 127 <Self as FromArgMatches>::from_arg_matches_mut(&mut matches).map_err(format_error::<Self>) in try_parse_from() 136 let mut matches = <Self as CommandFactory>::command_for_update().get_matches_from(itr); in update_from() localVariable 137 let res = <Self as FromArgMatches>::update_from_arg_matches_mut(self, &mut matches) in update_from() [all …]
|
/third_party/rust/crates/clap/examples/derive_ref/ |
D | flatten_hand_args.rs | 12 fn from_arg_matches(matches: &ArgMatches) -> Result<Self, Error> { in from_arg_matches() 13 let mut matches = matches.clone(); in from_arg_matches() localVariable 14 Self::from_arg_matches_mut(&mut matches) in from_arg_matches() 16 fn from_arg_matches_mut(matches: &mut ArgMatches) -> Result<Self, Error> { in from_arg_matches_mut() 18 foo: matches.get_flag("foo"), in from_arg_matches_mut() 19 bar: matches.get_flag("bar"), in from_arg_matches_mut() 20 quuz: matches.remove_one::<String>("quuz"), in from_arg_matches_mut() 23 fn update_from_arg_matches(&mut self, matches: &ArgMatches) -> Result<(), Error> { in update_from_arg_matches() 24 let mut matches = matches.clone(); in update_from_arg_matches() localVariable 25 self.update_from_arg_matches_mut(&mut matches) in update_from_arg_matches() [all …]
|
/third_party/mesa3d/src/gallium/drivers/r300/compiler/tests/ |
D | rc_test_helpers.c | 76 static int match_length(regmatch_t * matches, int index) in match_length() argument 78 return matches[index].rm_eo - matches[index].rm_so; in match_length() 84 regmatch_t * matches, in regex_helper() argument 99 err_code = regexec(®ex, search_str, num_matches, matches, 0); in regex_helper() 103 (size_t)matches[i].rm_so, in regex_helper() 104 (size_t)matches[i].rm_eo); in regex_helper() 141 regmatch_t matches[REGEX_SRC_MATCHES]; in init_rc_normal_src() local 147 if (!regex_helper(regex_str, src_str, matches, REGEX_SRC_MATCHES)) { in init_rc_normal_src() 153 tokens.Negate.String = src_str + matches[1].rm_so; in init_rc_normal_src() 154 tokens.Negate.Length = match_length(matches, 1); in init_rc_normal_src() [all …]
|
/third_party/skia/third_party/externals/tint/src/reader/wgsl/ |
D | lexer.cc | 135 bool Lexer::matches(size_t pos, const std::string& substr) { in matches() function in tint::reader::wgsl::Lexer 145 if (matches(pos_, "\n")) { in skip_whitespace_and_comments() 174 if (matches(pos_, "//")) { in skip_comment() 177 while (!is_eof() && !matches(pos_, "\n")) { in skip_comment() 184 if (matches(pos_, "/*")) { in skip_comment() 196 if (matches(pos_, "/*")) { in skip_comment() 201 } else if (matches(pos_, "*/")) { in skip_comment() 206 } else if (matches(pos_, "\n")) { in skip_comment() 231 if (matches(end, "-")) { in try_float() 240 if (end < len_ && matches(end, ".")) { in try_float() [all …]
|
/third_party/rust/crates/glob/src/ |
D | lib.rs | 692 pub fn matches(&self, str: &str) -> bool { in matches() method 700 path.to_str().map_or(false, |s| self.matches(s)) in matches_path() 1029 assert!("a*b".parse::<Pattern>().unwrap().matches("a_b")); in test_pattern_from_str() 1122 assert!(Pattern::new("a*b").unwrap().matches("a_b")); in test_wildcards() 1123 assert!(Pattern::new("a*b*c").unwrap().matches("abc")); in test_wildcards() 1124 assert!(!Pattern::new("a*b*c").unwrap().matches("abcd")); in test_wildcards() 1125 assert!(Pattern::new("a*b*c").unwrap().matches("a_b_c")); in test_wildcards() 1126 assert!(Pattern::new("a*b*c").unwrap().matches("a___b___c")); in test_wildcards() 1129 .matches("abcabcabcabcabcabcabc")); in test_wildcards() 1132 .matches("abcabcabcabcabcabcabca")); in test_wildcards() [all …]
|
/third_party/rust/crates/clap/examples/tutorial_builder/ |
D | 04_04_custom.rs | 24 let matches = cmd.get_matches_mut(); in main() localVariable 32 let version = if let Some(ver) = matches.get_one::<String>("set-ver") { in main() 33 if matches.get_flag("major") || matches.get_flag("minor") || matches.get_flag("patch") { in main() 44 matches.get_flag("major"), in main() 45 matches.get_flag("minor"), in main() 46 matches.get_flag("patch"), in main() 66 if matches.contains_id("config") { in main() 67 let input = matches in main() 69 .or_else(|| matches.get_one::<PathBuf>("spec-in")) in main() 81 matches.get_one::<PathBuf>("config").unwrap().display() in main()
|
D | 04_03_relations.rs | 7 let matches = command!() // requires `cargo` feature in main() localVariable 46 let version = if let Some(ver) = matches.get_one::<String>("set-ver") { in main() 51 matches.get_flag("major"), in main() 52 matches.get_flag("minor"), in main() 53 matches.get_flag("patch"), in main() 67 if matches.contains_id("config") { in main() 68 let input = matches in main() 70 .unwrap_or_else(|| matches.get_one::<PathBuf>("spec-in").unwrap()) in main() 75 matches.get_one::<PathBuf>("config").unwrap().display() in main()
|
D | 01_quick.rs | 6 let matches = command!() // requires `cargo` feature in main() localVariable 27 if let Some(name) = matches.get_one::<String>("name") { in main() 31 if let Some(config_path) = matches.get_one::<PathBuf>("config") { in main() 37 match matches in main() 49 if let Some(matches) = matches.subcommand_matches("test") { in main() 51 if matches.get_flag("list") { in main()
|
/third_party/python/Lib/ |
D | rlcompleter.py | 90 self.matches = self.attr_matches(text) 92 self.matches = self.global_matches(text) 94 return self.matches[state] 117 matches = [] 129 matches.append(word) 134 matches.append(self._callable_postfix(val, word)) 135 return matches 166 matches = [] 187 matches.append(match) 190 matches.append(self._callable_postfix(value, match)) [all …]
|
/third_party/rust/crates/clap/src/parser/ |
D | mod.rs | 5 mod matches; module 13 pub(crate) use self::matches::AnyValue; 14 pub(crate) use self::matches::AnyValueId; 15 pub(crate) use self::matches::{MatchedArg, SubCommand}; 22 pub use self::matches::IdsRef; 23 pub use self::matches::RawValues; 24 pub use self::matches::Values; 25 pub use self::matches::ValuesRef; 26 pub use self::matches::{ArgMatches, Indices, ValueSource};
|
D | arg_matcher.rs | 18 matches: ArgMatches, field 25 matches: ArgMatches { in new() 44 self.matches in into_inner() 82 if let Some(ref mut sc) = self.matches.subcommand { in fill_in_global_values() 84 matches: mem::take(&mut sc.matches), in fill_in_global_values() 88 mem::swap(&mut am.matches, &mut sc.matches); in fill_in_global_values() 92 self.matches.args.insert(name.clone(), matched_arg.clone()); in fill_in_global_values() 97 self.matches.args.get(arg) in get() 101 self.matches.args.get_mut(arg) in get_mut() 105 self.matches.args.remove(arg).is_some() in remove() [all …]
|
/third_party/rust/crates/clap/examples/ |
D | find.rs | 6 let matches = cli().get_matches(); in main() localVariable 7 let values = Value::from_matches(&matches); in main() 34 pub fn from_matches(matches: &ArgMatches) -> Vec<(clap::Id, Self)> { in from_matches() 36 for id in matches.ids() { in from_matches() 37 if matches.try_get_many::<clap::Id>(id.as_str()).is_ok() { in from_matches() 41 let value_source = matches in from_matches() 48 if Self::extract::<String>(matches, id, &mut values) { in from_matches() 51 if Self::extract::<bool>(matches, id, &mut values) { in from_matches() 54 unimplemented!("unknown type for {}: {:?}", id, matches); in from_matches() 60 matches: &ArgMatches, in extract() [all …]
|
/third_party/typescript/tests/baselines/reference/ |
D | identityRelationNeverTypes.types | 18 matches<TSV extends string>(stateValue: TSV): this is State<TContext> & { value: TSV }; 19 >matches : <TSV extends string>(stateValue: TSV) => this is State<TContext> & { value: TSV; } 29 if (state.matches('a') && state.matches('a.b')) { 30 >state.matches('a') && state.matches('a.b') : boolean 31 >state.matches('a') : boolean 32 >state.matches : <TSV extends string>(stateValue: TSV) => this is State<{ foo: number; }> & { value… 34 >matches : <TSV extends string>(stateValue: TSV) => this is State<{ foo: number; }> & { value: TSV;… 36 >state.matches('a.b') : boolean 37 >state.matches : <TSV extends string>(stateValue: TSV) => this is State<{ foo: number; }> & { value… 39 >matches : <TSV extends string>(stateValue: TSV) => this is State<{ foo: number; }> & { value: TSV;…
|
D | identityRelationNeverTypes.symbols | 26 matches<TSV extends string>(stateValue: TSV): this is State<TContext> & { value: TSV }; 27 >matches : Symbol(State.matches, Decl(identityRelationNeverTypes.ts, 6, 19)) 43 if (state.matches('a') && state.matches('a.b')) { 44 >state.matches : Symbol(State.matches, Decl(identityRelationNeverTypes.ts, 6, 19)) 46 >matches : Symbol(State.matches, Decl(identityRelationNeverTypes.ts, 6, 19)) 47 >state.matches : Symbol(State.matches, Decl(identityRelationNeverTypes.ts, 6, 19)) 49 >matches : Symbol(State.matches, Decl(identityRelationNeverTypes.ts, 6, 19))
|
/third_party/node/test/fixtures/wpt/url/ |
D | urlsearchparams-getall.any.js | 17 var matches = params.getAll('a'); 18 assert_true(matches && matches.length == 4, 'Search params object has values for name "a"'); 19 …assert_array_equals(matches, ['1', '2', '3', ''], 'Search params object has expected name "a" valu… 22 var matches = params.getAll('a'); 23 assert_true(matches && matches.length == 1, 'Search params object has values for name "a"'); 24 assert_array_equals(matches, ['one'], 'Search params object has expected name "a" values');
|
/third_party/node/deps/npm/node_modules/read-cmd-shim/lib/ |
D | index.js | 17 const matches = cmdshimContents.match(/"[$]basedir[/]([^"]+?)"\s+[$]args/) constant 18 return matches && matches[1] 22 const matches = cmdshimContents.match(/"%(?:~dp0|dp0%)\\([^"]+?)"\s+%[*]/) constant 23 return matches && matches[1] 27 const matches = cmdshimContents.match(/"[$]basedir[/]([^"]+?)"\s+"[$]@"/) constant 28 return matches && matches[1]
|
/third_party/vixl/tools/ |
D | verify_assembler_traces.py | 143 def DtUntypedToLLVM(matches): argument 145 if matches[1] == "untyped8": 147 elif matches[1] == "untyped16": 149 elif matches[1] == "untyped32": 154 return "{}.{} {}, {}, {}".format(matches[0], dt, matches[2], matches[3], matches[4]) 259 def ConvertMovRdImm(matches): argument 267 imm = int(matches[1], 16) 271 return "mov.w {}, #{}".format(*matches) 273 return "mov {}, #{}".format(*matches)
|
/third_party/rust/crates/clap/tests/ |
D | macros.rs | 46 assert!(matches!(arg.get_action(), clap::ArgAction::SetTrue)); in short() 54 assert!(matches!(arg.get_action(), clap::ArgAction::SetTrue)); in short() 62 assert!(matches!(arg.get_action(), clap::ArgAction::Count)); in short() 70 assert!(matches!(arg.get_action(), clap::ArgAction::SetTrue)); in short() 85 assert!(matches!(arg.get_action(), clap::ArgAction::SetTrue)); in short_and_long() 94 assert!(matches!(arg.get_action(), clap::ArgAction::SetTrue)); in short_and_long() 103 assert!(matches!(arg.get_action(), clap::ArgAction::Count)); in short_and_long() 112 assert!(matches!(arg.get_action(), clap::ArgAction::SetTrue)); in short_and_long() 124 assert!(matches!(arg.get_action(), clap::ArgAction::SetTrue)); in short_help() 134 assert!(matches!(arg.get_action(), clap::ArgAction::Help)); in short_help() [all …]
|
/third_party/rust/crates/regex/src/ |
D | re_set.rs | 219 pub fn matches(&self, text: $text_ty) -> SetMatches { 220 let mut matches = vec![false; self.0.regex_strings().len()]; localVariable 221 let any = self.read_matches_at(&mut matches, text, 0); 224 matches: matches, 243 matches: &mut [bool], 247 self.0.searcher().many_matches_at(matches, $as_bytes(text), start) 296 matches: Vec<bool>, 314 self.matches[regex_index] 319 self.matches.len() 328 SetMatchesIter((&*self.matches).into_iter().enumerate()) [all …]
|
/third_party/jsframework/runtime/main/extend/mediaquery/ |
D | pluginMediaQuery.ts | 24 matches: boolean; property 39 get matches() { method in MediaQueryList 43 set matches(matches: boolean) { method in MediaQueryList 44 this._matches = matches; 97 mediaQueryList.matches = result; 98 const matchData: MatchData = { matches: false }; 99 matchData.matches = result;
|