/third_party/rust/crates/clap/tests/builder/ |
H A D | action.rs | 13 let matches = cmd.clone().try_get_matches_from(["test"]).unwrap(); in set() 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() 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() 37 assert_eq!(matches in set() [all...] |
H A D | tests.rs | 91 let matches = utils::complex_app() in check_complex_output() 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...] |
H A D | flag_subcommands.rs | 7 let matches = Command::new("test") in flag_subcommand_normal() 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() 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() 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 in flag_subcommand_short_with_args() [all...] |
/third_party/node/deps/brotli/c/enc/ |
H A D | static_dict.c | 27 uint32_t* matches) { in AddMatch() 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() 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() 26 AddMatch(size_t distance, size_t len, size_t len_code, uint32_t* matches) AddMatch() argument 77 BrotliFindAllStaticDictionaryMatches( const BrotliEncoderDictionary* dictionary, const uint8_t* data, size_t min_length, size_t max_length, uint32_t* matches) BrotliFindAllStaticDictionaryMatches() argument [all...] |
/third_party/skia/third_party/externals/brotli/c/enc/ |
H A D | static_dict.c | 27 uint32_t* matches) { in AddMatch() 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() 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() 26 AddMatch(size_t distance, size_t len, size_t len_code, uint32_t* matches) AddMatch() argument 77 BrotliFindAllStaticDictionaryMatches( const BrotliEncoderDictionary* dictionary, const uint8_t* data, size_t min_length, size_t max_length, uint32_t* matches) BrotliFindAllStaticDictionaryMatches() argument [all...] |
/third_party/rust/crates/clap/examples/derive_ref/ |
H A 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() variables 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 in update_from_arg_matches() variables [all...] |
/third_party/rust/crates/glob/src/ |
H A D | lib.rs | 89 /// arise during iteration. If a directory matches but is unreadable, 90 /// thereby preventing its contents from being checked for matches, a 468 /// - `?` matches any single character. 470 /// - `*` matches any (possibly empty) sequence of characters. 472 /// - `**` matches the current directory and arbitrary subdirectories. This 477 /// - `[...]` matches any character inside the brackets. Character sequences 482 /// - `[!...]` is the negation of `[...]`, i.e. it matches any characters 574 // invalid matches are treated literally in new() 680 /// Return if the given `str` matches this `Pattern` using the default 688 /// assert!(Pattern::new("c?t").unwrap().matches("ca 692 pub fn matches(&self, str: &str) -> bool { matches() functions [all...] |
/third_party/mesa3d/src/gallium/drivers/r300/compiler/tests/ |
H A 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() 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[ in init_rc_normal_src() 81 regex_helper( const char * regex_str, const char * search_str, regmatch_t * matches, int num_matches) regex_helper() argument 270 regmatch_t matches[REGEX_DST_MATCHES]; init_rc_normal_dst() local 376 regmatch_t matches[REGEX_INST_MATCHES]; parse_rc_normal_instruction() local [all...] |
/third_party/rust/crates/clap/src/ |
H A D | derive.rs | 82 let mut matches = <Self as CommandFactory>::command().get_matches(); in parse() variables 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() variables 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() variables 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() variables 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() variables 137 let res = <Self as FromArgMatches>::update_from_arg_matches_mut(self, &mut matches) in update_from() 152 let mut matches = try_update_from() variables [all...] |
/third_party/rust/crates/clap/examples/tutorial_builder/ |
H A D | 04_04_custom.rs | 24 let matches = cmd.get_matches_mut(); in main() 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() [all...] |
H A D | 04_03_relations.rs | 7 let matches = command!() // requires `cargo` feature in main() 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()
|
H A D | 01_quick.rs | 6 let matches = command!() // requires `cargo` feature in main() 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() 48 // matches just as you would the top level cmd 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/ |
H A D | rlcompleter.py | 92 self.matches = self.attr_matches(text) 94 self.matches = self.global_matches(text) 96 return self.matches[state] 112 """Compute matches when text is a simple name. 118 matches = [] 130 matches.append(word) 135 matches.append(self._callable_postfix(val, word)) 136 return matches 139 """Compute matches when text contains a dot. 166 matches [all...] |
/third_party/rust/crates/clap/src/parser/ |
H A D | mod.rs | 5 mod matches; modules 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};
|
H A D | arg_matcher.rs | 18 matches: ArgMatches, 25 matches: ArgMatches { 44 self.matches 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 [all...] |
/third_party/skia/third_party/externals/tint/src/reader/wgsl/ |
H A 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(en in try_float() [all...] |
/third_party/rust/crates/clap/examples/ |
H A D | find.rs | 6 let matches = cli().get_matches(); in main() 7 let values = Value::from_matches(&matches); in main() 17 arg!(--name <NAME> "Base of file name (the path with the leading directories removed) matches shell pattern pattern").group("tests"), in cli() 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() 43 .expect("id came from matches"); in from_matches() 48 if Self::extract::<String>(matches, id, &mut values) { in from_matches() 51 if Self::extract::<bool>(matches, i in from_matches() [all...] |
H A D | cargo-example.rs | 11 let matches = cmd.get_matches(); in main() 12 let matches = match matches.subcommand() { in main() 13 Some(("example", matches)) => matches, in main() 16 let manifest_path = matches.get_one::<std::path::PathBuf>("manifest-path"); in main()
|
/third_party/vixl/tools/ |
H A D | verify_assembler_traces.py | 143 def DtUntypedToLLVM(matches): 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]) 182 # look like. Empty curly braces are replaced by matches, in order. 259 def ConvertMovRdImm(matches) [all...] |
/third_party/vk-gl-cts/external/vulkan-docs/src/scripts/Retired/ |
H A D | findBalance.py | 63 matches = beginPat.search(str) 64 if matches != None: 69 matches = ifdefPat.search(str) 70 if matches != None: 71 condition = matches.group('condition') 72 text = matches.group('text') 87 matches = endifPat.search(str) 88 if matches != None: 89 condition = matches.group('condition')
|
/third_party/rust/crates/clap/tests/ |
H A 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!(ar in short_help() [all...] |
/third_party/rust/crates/regex/src/ |
H A D | re_set.rs | 19 /// constituent regular expressions matches. A regex set as its formulated here 88 /// let matches: Vec<&str> = set.matches(text).into_iter() 99 /// assert_eq!(vec!["foo", "bar"], matches); 144 /// Returns true if and only if one of the regexes in this set matches 151 /// find all matches. 160 /// Tests whether a set matches some text: 186 /// matches in the given text. The index is in correspondence with the 211 /// let matches: Vec<_> = set.matches("fooba 219 pub fn matches(&self, text: $text_ty) -> SetMatches { matches() functions 220 let mut matches = vec![false; self.0.regex_strings().len()]; matches() variables [all...] |
/third_party/typescript/tests/baselines/reference/ |
H A D | identityRelationNeverTypes.js | 9 matches<TSV extends string>(stateValue: TSV): this is State<TContext> & { value: TSV }; 13 if (state.matches('a') && state.matches('a.b')) { 25 if (state.matches('a') && state.matches('a.b')) {
36 matches<TSV extends string>(stateValue: TSV): this is State<TContext> & {
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
H A D | BidiTransform.java | 283 if (scheme.matches(inLevel, inOrder, outLevel, outOrder)) { in findMatchingScheme() 380 boolean matches(byte inLevel, Order inOrder, byte outLevel, Order outOrder) { 393 boolean matches(byte inLevel, Order inOrder, byte outLevel, Order outOrder) { 406 boolean matches(byte inLevel, Order inOrder, byte outLevel, Order outOrder) { 420 boolean matches(byte inLevel, Order inOrder, byte outLevel, Order outOrder) { 434 boolean matches(byte inLevel, Order inOrder, byte outLevel, Order outOrder) { 447 boolean matches(byte inLevel, Order inOrder, byte outLevel, Order outOrder) { 461 boolean matches(byte inLevel, Order inOrder, byte outLevel, Order outOrder) { 474 boolean matches(byte inLevel, Order inOrder, byte outLevel, Order outOrder) { 488 boolean matches(byt 611 abstract boolean matches(byte inLevel, Order inOrder, byte outLevel, Order outOrder); matches() method in BidiTransform.ReorderingScheme [all...] |
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/ |
H A D | BidiTransform.java | 273 if (scheme.matches(inLevel, inOrder, outLevel, outOrder)) { in findMatchingScheme() 370 boolean matches(byte inLevel, Order inOrder, byte outLevel, Order outOrder) { 383 boolean matches(byte inLevel, Order inOrder, byte outLevel, Order outOrder) { 396 boolean matches(byte inLevel, Order inOrder, byte outLevel, Order outOrder) { 410 boolean matches(byte inLevel, Order inOrder, byte outLevel, Order outOrder) { 424 boolean matches(byte inLevel, Order inOrder, byte outLevel, Order outOrder) { 437 boolean matches(byte inLevel, Order inOrder, byte outLevel, Order outOrder) { 451 boolean matches(byte inLevel, Order inOrder, byte outLevel, Order outOrder) { 464 boolean matches(byte inLevel, Order inOrder, byte outLevel, Order outOrder) { 478 boolean matches(byt 601 abstract boolean matches(byte inLevel, Order inOrder, byte outLevel, Order outOrder); matches() method in BidiTransform.ReorderingScheme [all...] |