/freebsd/contrib/kyua/utils/text/ |
H A D | regex_test.cpp | 41 const text::regex_matches matches = text::match_regex( in ATF_TEST_CASE_BODY() local 43 ATF_REQUIRE(!matches); in ATF_TEST_CASE_BODY() 44 ATF_REQUIRE_EQ(0, matches.count()); in ATF_TEST_CASE_BODY() 51 const text::regex_matches matches = text::match_regex( in ATF_TEST_CASE_BODY() local 53 ATF_REQUIRE(matches); in ATF_TEST_CASE_BODY() 54 ATF_REQUIRE_EQ(1, matches.count()); in ATF_TEST_CASE_BODY() 55 ATF_REQUIRE_EQ("foo and bar", matches.get(0)); in ATF_TEST_CASE_BODY() 62 const text::regex_matches matches = text::match_regex( in ATF_TEST_CASE_BODY() local 64 ATF_REQUIRE(matches); in ATF_TEST_CASE_BODY() 65 ATF_REQUIRE_EQ(2, matches.count()); in ATF_TEST_CASE_BODY() [all …]
|
/freebsd/sys/dev/pci/ |
H A D | pci_user.c | 100 u_int32_t matches; /* struct pci_conf ptr */ member 154 pci_conf_match_native(struct pci_match_conf *matches, int num_matches, in pci_conf_match_native() argument 159 if ((matches == NULL) || (match_buf == NULL) || (num_matches <= 0)) in pci_conf_match_native() 166 if (matches[i].flags == PCI_GETCONF_NO_MATCH) in pci_conf_match_native() 174 if (((matches[i].flags & PCI_GETCONF_MATCH_DOMAIN) != 0) in pci_conf_match_native() 176 matches[i].pc_sel.pc_domain)) in pci_conf_match_native() 179 if (((matches[i].flags & PCI_GETCONF_MATCH_BUS) != 0) in pci_conf_match_native() 180 && (match_buf->pc_sel.pc_bus != matches[i].pc_sel.pc_bus)) in pci_conf_match_native() 183 if (((matches[i].flags & PCI_GETCONF_MATCH_DEV) != 0) in pci_conf_match_native() 184 && (match_buf->pc_sel.pc_dev != matches[i].pc_sel.pc_dev)) in pci_conf_match_native() [all …]
|
/freebsd/bin/sh/ |
H A D | histedit.c | 592 **add_match(char **matches, size_t i, size_t *size, char *match_copy) in add_match() argument 596 matches[i] = match_copy; in add_match() 599 matches = reallocarray(matches, *size, sizeof(matches[0])); in add_match() 602 return (matches); in add_match() 616 char **matches = NULL, **rmatches; in sh_matches() local 627 if ((matches = malloc(size * sizeof(matches[0]))) == NULL) in sh_matches() 653 rmatches = add_match(matches, ++i, &size, in sh_matches() 659 matches = rmatches; in sh_matches() 666 rmatches = add_match(matches, ++i, &size, strndup(bp + 2, bp[0])); in sh_matches() 669 matches = rmatches; in sh_matches() [all …]
|
/freebsd/contrib/libedit/ |
H A D | filecomplete.c | 472 size_t matches; in completion_matches() local 474 matches = 0; in completion_matches() 476 while ((retstr = (*genfunc) (text, (int)matches)) != NULL) { in completion_matches() 478 if (matches + 3 >= match_list_len) { in completion_matches() 480 while (matches + 3 >= match_list_len) in completion_matches() 491 match_list[++matches] = retstr; in completion_matches() 501 for (; which <= matches; which++) { in completion_matches() 517 match_list[matches + 1] = NULL; in completion_matches() 543 fn_display_match_list(EditLine * el, char **matches, size_t num, size_t width, in fn_display_match_list() argument 552 matches++; in fn_display_match_list() [all …]
|
/freebsd/sys/compat/linuxkpi/common/src/ |
H A D | linux_dmi.c | 81 for (i = 0; i < nitems(dsi->matches); i++) { in linux_dmi_matches() 82 slot = dsi->matches[i].slot; in linux_dmi_matches() 88 if (dsi->matches[i].exact_match) { in linux_dmi_matches() 89 if (dmi_match(slot, dsi->matches[i].substr)) in linux_dmi_matches() 92 dsi->matches[i].substr) != NULL) { in linux_dmi_matches() 119 for (dsi = list; dsi->matches[0].slot != 0; dsi++) { in linux_dmi_first_match() 136 int matches = 0; in linux_dmi_check_system() local 138 for (dsi = sysid; dsi->matches[0].slot != 0; dsi++) { in linux_dmi_check_system() 140 matches++; in linux_dmi_check_system() 146 return (matches); in linux_dmi_check_system()
|
/freebsd/contrib/llvm-project/llvm/tools/llvm-cov/ |
H A D | CoverageFilters.cpp | 20 bool NameCoverageFilter::matches( in matches() function in NameCoverageFilter 27 bool NameRegexCoverageFilter::matches( in matches() function in NameRegexCoverageFilter 37 bool NameAllowlistCoverageFilter::matches( in matches() function in NameAllowlistCoverageFilter 43 bool RegionCoverageFilter::matches( in matches() function in RegionCoverageFilter 50 bool LineCoverageFilter::matches( in matches() function in LineCoverageFilter 61 bool CoverageFilters::matches(const coverage::CoverageMapping &CM, in matches() function in CoverageFilters 64 if (Filter->matches(CM, Function)) in matches() 78 bool CoverageFiltersMatchAll::matches( in matches() function in CoverageFiltersMatchAll 82 if (!Filter->matches(CM, Function)) in matches()
|
H A D | CoverageFilters.h | 34 virtual bool matches(const coverage::CoverageMapping &CM, in matches() function 52 bool matches(const coverage::CoverageMapping &CM, 63 bool matches(const coverage::CoverageMapping &CM, 78 bool matches(const coverage::CoverageMapping &CM, 115 bool matches(const coverage::CoverageMapping &CM, 127 bool matches(const coverage::CoverageMapping &CM, 144 bool matches(const coverage::CoverageMapping &CM, 155 bool matches(const coverage::CoverageMapping &CM,
|
/freebsd/usr.sbin/mptutil/ |
H A D | mpt_cam.c | 78 ccb.cdm.matches = calloc(1, bufsize); in fetch_path_id() 95 free(ccb.cdm.matches); in fetch_path_id() 105 free(ccb.cdm.matches); in fetch_path_id() 111 ccb.cdm.matches[0].type != DEV_MATCH_BUS) { in fetch_path_id() 112 free(ccb.cdm.matches); in fetch_path_id() 115 *path_id = ccb.cdm.matches[0].result.bus_result.path_id; in fetch_path_id() 116 free(ccb.cdm.matches); in fetch_path_id() 152 ccb.cdm.matches = calloc(1, bufsize); in mpt_query_disk() 169 free(ccb.cdm.matches); in mpt_query_disk() 179 free(ccb.cdm.matches); in mpt_query_disk() [all …]
|
/freebsd/contrib/llvm-project/clang/include/clang/ASTMatchers/ |
H A D | ASTMatchers.h | 733 InnerMatcher.matches(*Initializer, Finder, Builder)); in AST_MATCHER_P() 756 InnerMatcher.matches(*Decl, Finder, Builder)); in AST_MATCHER_P() 895 return InnerMatcher.matches(*Node.IgnoreImplicit(), Finder, Builder); in AST_MATCHER_P() 925 return InnerMatcher.matches(*Node.IgnoreImpCasts(), Finder, Builder); in AST_MATCHER_P() 946 return InnerMatcher.matches(*Node.IgnoreParenCasts(), Finder, Builder); in AST_MATCHER_P() 972 return InnerMatcher.matches(*Node.IgnoreParenImpCasts(), Finder, Builder); in AST_MATCHER_P() 988 return InnerMatcher.matches(Node.IgnoreParens(), Finder, Builder); 1005 return InnerMatcher.matches(*E, Finder, Builder); 1079 return InnerMatcher.matches(List[N], Finder, Builder); in AST_POLYMORPHIC_MATCHER_P2() 1114 return InnerMatcher.matches(Node.getAsType(), Finder, Builder); in AST_MATCHER_P() [all …]
|
H A D | ASTMatchersMacros.h | 100 bool matches(const Type &Node, \ 110 inline bool internal::matcher_##DefineMatcher##Matcher::matches( \ 140 bool matches(const Type &Node, \ 156 inline bool internal::matcher_##DefineMatcher##OverloadId##Matcher::matches( \ 189 bool matches(const Type &Node, \ 208 inline bool internal::matcher_##DefineMatcher##OverloadId##Matcher::matches( \ 236 bool matches(const NodeType &Node, \ 249 bool internal::matcher_##DefineMatcher##Matcher<NodeType>::matches( \ 278 bool matches(const NodeType &Node, \ 300 matcher_##DefineMatcher##OverloadId##Matcher<NodeType, ParamT>::matches( \ [all …]
|
/freebsd/contrib/llvm-project/lldb/source/Commands/ |
H A D | CommandObjectHelp.cpp | 90 StringList matches; in DoExecute() local 92 cmd_obj = m_interpreter.GetCommandObject(command_name, &matches); in DoExecute() 95 StringList matches; in DoExecute() local 103 matches.Clear(); in DoExecute() 113 sub_cmd_obj->GetSubcommandObject(sub_command.c_str(), &matches); in DoExecute() 114 if (found_cmd == nullptr || matches.GetSize() > 1) { in DoExecute() 125 if (matches.GetSize() >= 2) { in DoExecute() 128 size_t num_matches = matches.GetSize(); in DoExecute() 130 s.Printf("\n\t%s", matches.GetStringAtIndex(match_idx)); in DoExecute() 163 } else if (matches.GetSize() > 0) { in DoExecute() [all …]
|
H A D | CommandObjectMultiword.cpp | 43 StringList *matches) { in GetSubcommandSP() argument 49 if (matches) in GetSubcommandSP() 50 matches->AppendString(sub_cmd); in GetSubcommandSP() 57 if (matches == nullptr) in GetSubcommandSP() 58 matches = &local_matches; in GetSubcommandSP() 60 AddNamesMatchingPartialString(m_subcommand_dict, sub_cmd, *matches); in GetSubcommandSP() 66 sub_cmd = matches->GetStringAtIndex(0); in GetSubcommandSP() 77 StringList *matches) { in GetSubcommandObject() argument 78 return GetSubcommandSP(sub_cmd, matches).get(); in GetSubcommandObject() 183 StringList matches; in Execute() local 369 GetSubcommandSP(llvm::StringRef sub_cmd,StringList * matches) GetSubcommandSP() argument 377 GetSubcommandObject(llvm::StringRef sub_cmd,StringList * matches) GetSubcommandObject() argument [all...] |
/freebsd/sys/isa/ |
H A D | isahint.c | 106 int line, matches, unit; in isa_hint_device_unit() local 128 matches = 0; in isa_hint_device_unit() 146 matches++; in isa_hint_device_unit() 153 matches++; in isa_hint_device_unit() 157 if (matches > 0) in isa_hint_device_unit() 161 matches++; in isa_hint_device_unit() 167 matches++; in isa_hint_device_unit() 173 if (matches > 0) { in isa_hint_device_unit()
|
/freebsd/contrib/llvm-project/clang/lib/Driver/ToolChains/Arch/ |
H A D | Mips.cpp | 152 if (A->getOption().matches(options::OPT_msoft_float)) in getMipsFloatABI() 154 else if (A->getOption().matches(options::OPT_mhard_float)) in getMipsFloatABI() 233 (O.matches(options::OPT_fno_PIC) || O.matches(options::OPT_fno_pic) || in getMIPSTargetFeatures() 234 O.matches(options::OPT_fno_PIE) || O.matches(options::OPT_fno_pie)); in getMIPSTargetFeatures() 236 (O.matches(options::OPT_fPIC) || O.matches(options::OPT_fpic) || in getMIPSTargetFeatures() 237 O.matches(options::OPT_fPIE) || O.matches(options::OPT_fpie)); in getMIPSTargetFeatures() 245 !ABICallsArg || ABICallsArg->getOption().matches(options::OPT_mabicalls); in getMIPSTargetFeatures() 263 if (A->getOption().matches(options::OPT_mno_long_calls)) in getMIPSTargetFeatures() 272 if (A->getOption().matches(options::OPT_mxgot)) in getMIPSTargetFeatures() 347 if (A->getOption().matches(options::OPT_mstrict_align) || in getMIPSTargetFeatures() [all …]
|
/freebsd/crypto/openssl/test/ |
H A D | igetest.c | 298 size_t matches; in test_ige_garble_forwards() local 312 matches = 0; in test_ige_garble_forwards() 315 ++matches; in test_ige_garble_forwards() 318 if (!TEST_size_t_le(matches, ctsize / 2 + ctsize / 100)) in test_ige_garble_forwards() 322 if (!TEST_size_t_gt(matches, ctsize / 2)) in test_ige_garble_forwards() 355 size_t matches; in test_bi_ige_garble1() local 370 matches = 0; in test_bi_ige_garble1() 373 ++matches; in test_bi_ige_garble1() 376 return TEST_size_t_le(matches, sizeof(checktext) / 100); in test_bi_ige_garble1() 386 size_t matches; in test_bi_ige_garble2() local [all …]
|
/freebsd/contrib/llvm-project/lldb/bindings/interface/ |
H A D | SBModuleExtensions.i | 77 matches = [] 82 matches.append(symbol) 83 return matches 85 matches = [] 93 matches.append(symbol) 100 matches.append(symbol) 101 return matches 144 matches = [] 151 matches.append(section) 152 return matches [all...] |
H A D | SBValueListExtensions.i | 50 matches = [] 54 matches.append(value) 55 return matches 60 matches = [] 65 matches.append(value) 66 return matches
|
/freebsd/contrib/one-true-awk/testdir/ |
H A D | t.re4 | 7 $0 ~ r1 { print $0 " matches " r1 } 8 $0 ~ r2 { print $0 " matches " r2 } 9 $0 ~ r3 { print $0 " matches " r3 } 10 $0 ~ r4 { print $0 " matches " r4 }
|
/freebsd/contrib/libarchive/tar/ |
H A D | subst.c | 203 regmatch_t matches[10]; in apply_substitution() local 238 if (regexec(&rule->re, name, 10, matches, 0)) in apply_substitution() 243 realloc_strncat(result, name, matches[0].rm_so); in apply_substitution() 249 name + matches[0].rm_so, in apply_substitution() 250 matches[0].rm_eo - matches[0].rm_so); in apply_substitution() 281 …realloc_strncat(result, name + matches[c - '0'].rm_so, matches[c - '0'].rm_eo - matches[c - '0'].r… in apply_substitution() 293 name += matches[0].rm_eo; in apply_substitution()
|
/freebsd/contrib/googletest/docs/reference/ |
H A D | matchers.md | 3 A **matcher** matches a *single* argument. You can use it inside `ON_CALL()` or 8 | `EXPECT_THAT(actual_value, matcher)` | Asserts that `actual_value` matches `matcher`. | 95 | `ContainsRegex(string)` | `argument` matches the given regular expression. | 99 | `MatchesRegex(string)` | `argument` matches the given regular expression with the match startin… 105 | `WhenBase64Unescaped(m)` | `argument` is a base-64 escaped string whose unescaped string matches … 123 | `Contains(e)` | `argument` contains an element that matches `e`, which can be either a value or a… 124 …t match `e`, which can be either a value or a matcher, and the number of matches is `n`, which can… 125 | `Each(e)` | `argument` is a container where *every* element matches `e`, which can be either a va… 126 …1, ..., en)` | `argument` has `n + 1` elements, where the *i*-th element matches `ei`, which can b… 129 …, end)`, `IsSubsetOf(array)`, or `IsSubsetOf(array, count)` | `argument` matches `UnorderedElement… [all …]
|
/freebsd/lib/libdevstat/ |
H A D | devstat.c | 553 int numdevs, struct devstat_match *matches, int num_matches, in devstat_selectdevs() argument 737 if ((matches[i].match_fields == DEVSTAT_MATCH_NONE) in devstat_selectdevs() 738 || (matches[i].num_match_categories <= 0)) in devstat_selectdevs() 744 num_match_categories = matches[i].num_match_categories; in devstat_selectdevs() 759 if ((((matches[i].match_fields & DEVSTAT_MATCH_TYPE)!=0) in devstat_selectdevs() 761 (matches[i].device_type & DEVSTAT_TYPE_MASK)) in devstat_selectdevs() 762 &&(((matches[i].match_fields & DEVSTAT_MATCH_PASS)!=0) in devstat_selectdevs() 763 || (((matches[i].match_fields & in devstat_selectdevs() 768 || (((matches[i].match_fields & DEVSTAT_MATCH_IF) != 0) in devstat_selectdevs() 770 (matches[i].device_type & DEVSTAT_TYPE_IF_MASK)) in devstat_selectdevs() [all …]
|
/freebsd/contrib/llvm-project/lldb/source/Target/ |
H A D | VerboseTrapFrameRecognizer.cpp | 67 SmallVector<llvm::StringRef, 3> matches; in RecognizeFrame() local 69 if (!trap_regex.match(func_name, &matches, ®ex_err_msg)) { in RecognizeFrame() 81 if (matches.size() != 3) { in RecognizeFrame() 90 auto category = matches[1]; in RecognizeFrame() 91 auto message = matches[2]; in RecognizeFrame()
|
/freebsd/contrib/netbsd-tests/lib/libc/regex/ |
H A D | t_regex_att.c | 357 checkmatches(const char *matches, size_t nm, const regmatch_t *pm, in checkmatches() argument 364 size_t len = strlen(matches) + 1, off = 0; in checkmatches() 366 ATF_REQUIRE((res = strdup(matches)) != NULL); in checkmatches() 378 ATF_CHECK_STREQ_MSG(res, matches, " at line %zu", lineno); in checkmatches() 400 char *name, *pattern, *input, *matches, *comment; in att_test() local 452 ATF_REQUIRE_MSG((matches = strtok(NULL, sep)) != NULL, in att_test() 485 if (*matches != '(') { in att_test() 486 geterror(matches, &comp, &exec); in att_test() 491 nm = getmatches(matches); in att_test() 523 checkmatches(matches, nm, pm, lineno); in att_test()
|
/freebsd/usr.bin/iscsictl/ |
H A D | periphs.c | 91 ccb.cdm.matches = (struct dev_match_result *)malloc(bufsize); in print_periphs() 92 if (ccb.cdm.matches == NULL) { in print_periphs() 132 switch (ccb.cdm.matches[i].type) { in print_periphs() 136 bus_result = &ccb.cdm.matches[i].result.bus_result; in print_periphs() 164 &ccb.cdm.matches[i].result.periph_result; in print_periphs()
|
/freebsd/contrib/googletest/googlemock/src/ |
H A D | gmock-matchers.cc | 438 ElementMatcherPairs matches = FindMaxBipartiteMatching(matrix); in FindPairing() local 440 size_t max_flow = matches.size(); in FindPairing() 448 LogElementMatcherPairVec(matches, listener->stream()); in FindPairing() 459 LogElementMatcherPairVec(matches, listener->stream()); in FindPairing() 464 if (matches.size() > 1) { in FindPairing() 467 for (size_t mi = 0; mi < matches.size(); ++mi) { in FindPairing() 468 *listener << sep << " - element #" << matches[mi].first in FindPairing() 469 << " is matched by matcher #" << matches[mi].second; in FindPairing()
|