Home
last modified time | relevance | path

Searched refs:matches (Results 1 – 25 of 592) sorted by relevance

12345678910>>...24

/freebsd/contrib/kyua/utils/text/
H A Dregex_test.cpp41 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 Dpci_user.c105 u_int32_t matches; /* struct pci_conf ptr */ member
159 pci_conf_match_native(struct pci_match_conf *matches, int num_matches, in pci_conf_match_native() argument
164 if ((matches == NULL) || (match_buf == NULL) || (num_matches <= 0)) in pci_conf_match_native()
171 if (matches[i].flags == PCI_GETCONF_NO_MATCH) in pci_conf_match_native()
179 if (((matches[i].flags & PCI_GETCONF_MATCH_DOMAIN) != 0) in pci_conf_match_native()
181 matches[i].pc_sel.pc_domain)) in pci_conf_match_native()
184 if (((matches[i].flags & PCI_GETCONF_MATCH_BUS) != 0) in pci_conf_match_native()
185 && (match_buf->pc_sel.pc_bus != matches[i].pc_sel.pc_bus)) in pci_conf_match_native()
188 if (((matches[i].flags & PCI_GETCONF_MATCH_DEV) != 0) in pci_conf_match_native()
189 && (match_buf->pc_sel.pc_dev != matches[i].pc_sel.pc_dev)) in pci_conf_match_native()
[all …]
/freebsd/contrib/libedit/
H A Dfilecomplete.c472 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/bin/sh/
H A Dhistedit.c594 **add_match(char **matches, size_t i, size_t *size, char *match_copy) in add_match() argument
598 matches[i] = match_copy; in add_match()
601 matches = reallocarray(matches, *size, sizeof(matches[0])); in add_match()
604 return (matches); in add_match()
618 char **matches = NULL, **rmatches; in sh_matches() local
629 if ((matches = malloc(size * sizeof(matches[0]))) == NULL) in sh_matches()
655 rmatches = add_match(matches, ++i, &size, in sh_matches()
661 matches = rmatches; in sh_matches()
668 rmatches = add_match(matches, ++i, &size, strndup(bp + 2, bp[0])); in sh_matches()
671 matches = rmatches; in sh_matches()
[all …]
/freebsd/contrib/smart/
H A Dsmart.c117 add_match(smart_matches_t **matches, char *attr) in add_match() argument
134 if (*matches == NULL) { in add_match()
135 *matches = calloc(1, sizeof(smart_matches_t) + sizeof(smart_match_t)); in add_match()
136 if (*matches == NULL) in add_match()
141 count = (*matches)->count; in add_match()
142 tmp = realloc(*matches, sizeof(smart_matches_t) + ((count + 1) * sizeof(smart_match_t))); in add_match()
145 *matches = tmp; in add_match()
148 (*matches)->m[count].page = page; in add_match()
149 (*matches)->m[count].id = id; in add_match()
150 (*matches)->count++; in add_match()
[all …]
/freebsd/sys/contrib/dev/broadcom/brcm80211/brcmfmac/
H A Ddmi.c69 .matches = {
80 .matches = {
91 .matches = {
100 .matches = {
110 .matches = {
121 .matches = {
138 .matches = {
148 .matches = {
158 .matches = {
168 .matches = {
[all …]
/freebsd/sys/contrib/dev/iwlwifi/fw/
H A Dregulatory.c51 .matches = {
56 .matches = {
61 .matches = {
66 .matches = {
71 .matches = {
76 .matches = {
82 .matches = {
88 .matches = {
94 .matches = {
99 .matches = {
[all …]
/freebsd/sys/compat/linuxkpi/common/src/
H A Dlinux_dmi.c81 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 DCoverageFilters.cpp20 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 DCoverageFilters.h34 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 Dmpt_cam.c78 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 DASTMatchers.h734 InnerMatcher.matches(*Initializer, Finder, Builder)); in AST_MATCHER_P()
757 InnerMatcher.matches(*Decl, Finder, Builder)); in AST_MATCHER_P()
896 return InnerMatcher.matches(*Node.IgnoreImplicit(), Finder, Builder); in AST_MATCHER_P()
926 return InnerMatcher.matches(*Node.IgnoreImpCasts(), Finder, Builder); in AST_MATCHER_P()
947 return InnerMatcher.matches(*Node.IgnoreParenCasts(), Finder, Builder); in AST_MATCHER_P()
973 return InnerMatcher.matches(*Node.IgnoreParenImpCasts(), Finder, Builder); in AST_MATCHER_P()
989 return InnerMatcher.matches(Node.IgnoreParens(), Finder, Builder);
1006 return InnerMatcher.matches(*E, Finder, Builder);
1080 return InnerMatcher.matches(List[N], Finder, Builder); in AST_POLYMORPHIC_MATCHER_P2()
1122 return InnerMatcher.matches(Node.getAsType(), Finder, Builder); in AST_MATCHER_P()
[all …]
/freebsd/contrib/llvm-project/lldb/source/Commands/
H A DCommandObjectHelp.cpp90 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 DCommandObjectMultiword.cpp43 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()
172 StringList matches; in Execute() local
[all …]
/freebsd/contrib/llvm-project/clang/lib/Driver/ToolChains/Arch/
H A DMips.cpp153 if (A->getOption().matches(options::OPT_msoft_float)) in getMipsFloatABI()
155 else if (A->getOption().matches(options::OPT_mhard_float)) in getMipsFloatABI()
234 (O.matches(options::OPT_fno_PIC) || O.matches(options::OPT_fno_pic) || in getMIPSTargetFeatures()
235 O.matches(options::OPT_fno_PIE) || O.matches(options::OPT_fno_pie)); in getMIPSTargetFeatures()
237 (O.matches(options::OPT_fPIC) || O.matches(options::OPT_fpic) || in getMIPSTargetFeatures()
238 O.matches(options::OPT_fPIE) || O.matches(options::OPT_fpie)); in getMIPSTargetFeatures()
246 !ABICallsArg || ABICallsArg->getOption().matches(options::OPT_mabicalls); in getMIPSTargetFeatures()
270 if (A->getOption().matches(options::OPT_mno_long_calls)) in getMIPSTargetFeatures()
279 if (A->getOption().matches(options::OPT_mxgot)) in getMIPSTargetFeatures()
354 if (A->getOption().matches(options::OPT_mstrict_align) || in getMIPSTargetFeatures()
[all …]
H A DSparc.cpp92 if (A->getOption().matches(options::OPT_msoft_float) || in getSparcFloatABI()
93 A->getOption().matches(options::OPT_mno_fpu)) in getSparcFloatABI()
95 else if (A->getOption().matches(options::OPT_mhard_float) || in getSparcFloatABI()
96 A->getOption().matches(options::OPT_mfpu)) in getSparcFloatABI()
150 if (A->getOption().matches(options::OPT_mfsmuld)) in getSparcTargetFeatures()
157 if (A->getOption().matches(options::OPT_mpopc)) in getSparcTargetFeatures()
173 if (A->getOption().matches(options::OPT_mvis)) in getSparcTargetFeatures()
182 if (A->getOption().matches(options::OPT_mvis2)) in getSparcTargetFeatures()
191 if (A->getOption().matches(options::OPT_mvis3)) in getSparcTargetFeatures()
199 if (A->getOption().matches(options::OPT_mhard_quad_float)) in getSparcTargetFeatures()
[all …]
/freebsd/sys/isa/
H A Disahint.c107 int line, matches, unit; in isa_hint_device_unit() local
129 matches = 0; in isa_hint_device_unit()
147 matches++; in isa_hint_device_unit()
154 matches++; in isa_hint_device_unit()
158 if (matches > 0) in isa_hint_device_unit()
162 matches++; in isa_hint_device_unit()
168 matches++; in isa_hint_device_unit()
174 if (matches > 0) { in isa_hint_device_unit()
/freebsd/crypto/openssl/test/
H A Digetest.c298 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 DSBModuleExtensions.i77 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 DSBValueListExtensions.i50 matches = []
54 matches.append(value)
55 return matches
60 matches = []
65 matches.append(value)
66 return matches
/freebsd/contrib/libarchive/tar/
H A Dsubst.c203 regmatch_t matches[10]; in apply_substitution() local
241 if (regexec(&rule->re, name, 10, matches, 0)) in apply_substitution()
246 realloc_strncat(result, name, matches[0].rm_so); in apply_substitution()
252 name + matches[0].rm_so, in apply_substitution()
253 matches[0].rm_eo - matches[0].rm_so); in apply_substitution()
284 …realloc_strncat(result, name + matches[c - '0'].rm_so, matches[c - '0'].rm_eo - matches[c - '0'].r… in apply_substitution()
295 if (matches[0].rm_eo > 0) { in apply_substitution()
296 name += matches[0].rm_eo; in apply_substitution()
/freebsd/contrib/one-true-awk/testdir/
H A Dt.re47 $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/googletest/docs/reference/
H A Dmatchers.md3 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`. |
45 … The distance between `argument` and `target` (computed by `abs(argument - target)`) matches `m`. |
46 …tance between `argument` and `target` (computed by `get_distance(argument, target)`) matches `m`. |
97 | `ContainsRegex(string)` | `argument` matches the given regular expression. |
101 | `MatchesRegex(string)` | `argument` matches the given regular expression with the match startin…
107 | `WhenBase64Unescaped(m)` | `argument` is a base-64 escaped string whose unescaped string matches
125 | `Contains(e)` | `argument` contains an element that matches `e`, which can be either a value or a…
126 …t match `e`, which can be either a value or a matcher, and the number of matches is `n`, which can…
127 | `Each(e)` | `argument` is a container where *every* element matches `e`, which can be either a va…
[all …]
/freebsd/lib/libdevstat/
H A Ddevstat.c553 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/usr.bin/iscsictl/
H A Dperiphs.c91 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()

12345678910>>...24