Home
last modified time | relevance | path

Searched full:pattern (Results 1 – 25 of 2030) sorted by relevance

12345678910>>...82

/freebsd/crypto/openssh/openbsd-compat/
H A Dfnmatch.c51 * Filename pattern matches defined in section 2.13, "Pattern Matching Notation"
59 * number of consecutive slashes within pattern and string will NOT match;
71 * Supports BSD extensions FNM_LEADING_DIR to match pattern to the end of one
81 * state of pattern and string (rewinding pattern and string repeatedly).
104 classmatch(const char *pattern, char test, int foldcase, const char **ep) in classmatch() argument
106 const char * const mismatch = pattern; in classmatch()
112 if (pattern[0] != '[' || pattern[1] != ':') { in classmatch()
116 pattern += 2; in classmatch()
118 if ((colon = strchr(pattern, ':')) == NULL || colon[1] != ']') { in classmatch()
123 len = (size_t)(colon - pattern); in classmatch()
[all …]
H A Dbsd-cygwin_util.c124 * Returns true if the given string matches the pattern (which may contain ?
132 __match_pattern (const wchar_t *s, const wchar_t *pattern) in __match_pattern() argument
135 /* If at end of pattern, accept if also at end of string. */ in __match_pattern()
136 if (!*pattern) in __match_pattern()
139 if (*pattern == '*') { in __match_pattern()
141 pattern++; in __match_pattern()
143 /* If at end of pattern, accept immediately. */ in __match_pattern()
144 if (!*pattern) in __match_pattern()
147 /* If next character in pattern is known, optimize. */ in __match_pattern()
148 if (*pattern != '?' && *pattern != '*') { in __match_pattern()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/MSP430/
H A DMSP430InstrFormats.td47 dag outs, dag ins, string asmstr, list<dag> pattern>
49 let Pattern = pattern;
64 dag outs, dag ins, string asmstr, list<dag> pattern>
65 : IForm<opcode, dest, 1, src, size, outs, ins, asmstr, pattern>;
68 dag outs, dag ins, string asmstr, list<dag> pattern>
69 : IForm8<opcode, DstReg, SrcReg, 2, outs, ins, asmstr, pattern> {
74 dag outs, dag ins, string asmstr, list<dag> pattern>
75 : IForm8<opcode, DstReg, SrcImm, 4, outs, ins, asmstr, pattern> {
83 dag outs, dag ins, string asmstr, list<dag> pattern>
86 let Pattern = pattern;
[all …]
/freebsd/contrib/less/
H A Dpattern.c11 * Routines to do pattern matching.
21 * Compile a search pattern, for future use by match_pattern.
23 static int compile_pattern2(constant char *pattern, int search_type, PATTERN_TYPE *comp_pattern, in… in compile_pattern2() argument
32 if (re_compile_pattern(pattern, strlen(pattern), comp)) in compile_pattern2()
36 error("Invalid pattern", NULL_PARG); in compile_pattern2()
48 if (regcomp(comp, pattern, REGCOMP_FLAG | (is_caseless ? REG_ICASE : 0))) in compile_pattern2()
52 error("Invalid pattern", NULL_PARG); in compile_pattern2()
66 pcre *comp = pcre_compile(pattern, in compile_pattern2()
83 pcre2_code *comp = pcre2_compile((PCRE2_SPTR)pattern, strlen(pattern), in compile_pattern2()
102 if ((parg.p_string = re_comp(pattern)) != NULL) in compile_pattern2()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCInstrFormats.td130 InstrItinClass itin, list<dag> pattern>
132 let Pattern = pattern;
225 list<dag> pattern>
229 let Pattern = pattern;
238 InstrItinClass itin, list<dag> pattern>
244 let Pattern = pattern;
252 InstrItinClass itin, list<dag> pattern>
[all...]
/freebsd/contrib/llvm-project/llvm/lib/Target/XCore/
H A DXCoreInstrFormats.td12 class InstXCore<int sz, dag outs, dag ins, string asmstr, list<dag> pattern>
20 let Pattern = pattern;
26 class PseudoInstXCore<dag outs, dag ins, string asmstr, list<dag> pattern>
27 : InstXCore<0, outs, ins, asmstr, pattern> {
35 class _F3R<bits<5> opc, dag outs, dag ins, string asmstr, list<dag> pattern>
36 : InstXCore<2, outs, ins, asmstr, pattern> {
44 class _F3RImm<bits<5> opc, dag outs, dag ins, string asmstr, list<dag> pattern>
45 : _F3R<opc, outs, ins, asmstr, pattern> {
49 class _FL3R<bits<9> opc, dag outs, dag ins, string asmstr, list<dag> pattern>
50 : InstXCore<4, outs, ins, asmstr, pattern> {
[all …]
/freebsd/sys/contrib/device-tree/Bindings/eeprom/
H A Dat24.yaml22 - pattern: "^atmel,(24(c|cs|mac)[0-9]+|spd)$"
29 pattern: "^eeprom@[0-9a-f]{1,2}$"
42 … - pattern: "^(atmel|catalyst|microchip|nxp|ramtron|renesas|rohm|st),(24(c|cs|lc|mac)[0-9]+|spd)$"
43 - pattern: "^atmel,(24(c|cs|mac)[0-9]+|spd)$"
46 pattern: c00$
48 pattern: c01$
50 pattern: cs01$
52 pattern: c02$
54 pattern: cs02$
56 pattern: mac402$
[all …]
/freebsd/lib/libc/gen/
H A Dfnmatch.c42 * Compares a filename or pathname to a pattern.
76 fnmatch(const char *pattern, const char *string, int flags) in fnmatch() argument
80 return (fnmatch1(pattern, string, string, flags, initial, initial)); in fnmatch()
84 fnmatch1(const char *pattern, const char *string, const char *stringstart, in fnmatch1() argument
96 pclen = mbrtowc(&pc, pattern, MB_LEN_MAX, &patmbs); in fnmatch1()
99 pattern += pclen; in fnmatch1()
125 c = *pattern; in fnmatch1()
128 c = *++pattern; in fnmatch1()
135 /* Optimize for pattern with * at end or before /. */ in fnmatch1()
155 bt_pattern = pattern; in fnmatch1()
[all …]
/freebsd/tools/build/
H A Dfreebsd-yeet.pl41 my $pattern;
50 $pattern = $_[1];
68 $file =~ s=$pattern=$repl=gm;
82 …system("git commit -a -m'sys: Remove \$FreeBSD\$: $pretty\n\nRemove /$pattern/\n\nSimilar commit i…
88 …system("git commit -a -m'Remove \$FreeBSD\$: $pretty\n\nRemove /$pattern/\n\nSimilar commit in mai…
93 # 9524e274b548 Remove $FreeBSD$: one-line xdr pattern
103 # b2c76c41be32 Remove $FreeBSD$: one-line nroff pattern
104 # fa9896e082a1 Remove $FreeBSD$: two-line nroff pattern
105 # 9e7892125655 sys: Remove $FreeBSD$: two-line nroff pattern
106 # d0b2dbfa0ecf Remove $FreeBSD$: one-line sh pattern
[all …]
/freebsd/crypto/openssh/
H A Dmatch.c6 * Simple pattern matching, with '*' and '?' as wildcards.
53 * Returns true if the given string matches the pattern (which may contain ?
57 match_pattern(const char *s, const char *pattern) in match_pattern() argument
60 /* If at end of pattern, accept if also at end of string. */ in match_pattern()
61 if (!*pattern) in match_pattern()
64 if (*pattern == '*') { in match_pattern()
66 while (*pattern == '*') in match_pattern()
67 pattern++; in match_pattern()
69 /* If at end of pattern, accept immediately. */ in match_pattern()
70 if (!*pattern) in match_pattern()
[all …]
/freebsd/contrib/one-true-awk/
H A Dawkgram.y65 %type <p> pas pattern ppattern plist pplist patlist prarg term re
125 FOR '(' opt_simple_stmt ';' opt_nl pattern ';' opt_nl opt_simple_stmt rparen {inloop++;} stmt
139 IF '(' pattern rparen { $$ = notnull($3); }
172 pattern { $$ = notnull($1); }
195 pattern
196 | patlist comma pattern { $$ = linkum($1, $3); }
221 pattern:
222 var ASGNOP pattern { $$ = op2($2, $1, $3); }
223 | pattern '?' pattern ':' pattern %prec '?'
225 | pattern bor pattern %prec BOR
[all …]
/freebsd/sys/contrib/device-tree/Bindings/mailbox/
H A Dnvidia,tegra186-hsp.yaml87 - pattern: "^shared([0-9]|1[0-5])$"
88 - pattern: "^shared([0-9]|1[0-5])$"
89 - pattern: "^shared([0-9]|1[0-5])$"
90 - pattern: "^shared([0-9]|1[0-5])$"
91 - pattern: "^shared([0-9]|1[0-5])$"
92 - pattern: "^shared([0-9]|1[0-5])$"
93 - pattern: "^shared([0-9]|1[0-5])$"
94 - pattern: "^shared([0-9]|1[0-5])$"
95 - pattern: "^shared([0-9]|1[0-5])$"
96 - pattern: "^shared([0-9]|1[0-5])$"
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMInstrFormats.td487 let Pattern = [];
508 class PseudoInst<dag oops, dag iops, InstrItinClass itin, list<dag> pattern>
513 let Pattern = pattern;
520 list<dag> pattern>
521 : PseudoInst<oops, iops, itin, pattern> {
528 list<dag> pattern>
529 : PseudoInst<oops, iops, itin, pattern> {
536 list<dag> pattern>
537 : PseudoInst<oops, iops, itin, pattern> {
544 list<dag> pattern>
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/
H A DLoongArchInstrFormats.td20 list<dag> pattern = []>
34 let Pattern = pattern;
38 class Pseudo<dag outs, dag ins, list<dag> pattern = [], string opcstr = "",
40 : LAInst<outs, ins, opcstr, opnstr, pattern> {
52 list<dag> pattern = []>
53 : LAInst<outs, ins, deriveInsnMnemonic<NAME>.ret, opnstr, pattern> {
65 list<dag> pattern = []>
66 : LAInst<outs, ins, deriveInsnMnemonic<NAME>.ret, opnstr, pattern> {
80 list<dag> pattern = []>
81 : LAInst<outs, ins, deriveInsnMnemonic<NAME>.ret, opnstr, pattern> {
[all …]
H A DLoongArchLSXInstrFormats.td22 list<dag> pattern = []>
23 : LAInst<outs, ins, deriveInsnMnemonic<NAME>.ret, opnstr, pattern> {
35 list<dag> pattern = []>
36 : LAInst<outs, ins, deriveInsnMnemonic<NAME>.ret, opnstr, pattern> {
47 list<dag> pattern = []>
48 : LAInst<outs, ins, deriveInsnMnemonic<NAME>.ret, opnstr, pattern> {
59 list<dag> pattern = []>
60 : LAInst<outs, ins, deriveInsnMnemonic<NAME>.ret, opnstr, pattern> {
72 list<dag> pattern = []>
73 : LAInst<outs, ins, deriveInsnMnemonic<NAME>.ret, opnstr, pattern> {
[all …]
H A DLoongArchLASXInstrFormats.td22 list<dag> pattern = []>
23 : LAInst<outs, ins, deriveInsnMnemonic<NAME>.ret, opnstr, pattern> {
35 list<dag> pattern = []>
36 : LAInst<outs, ins, deriveInsnMnemonic<NAME>.ret, opnstr, pattern> {
47 list<dag> pattern = []>
48 : LAInst<outs, ins, deriveInsnMnemonic<NAME>.ret, opnstr, pattern> {
59 list<dag> pattern = []>
60 : LAInst<outs, ins, deriveInsnMnemonic<NAME>.ret, opnstr, pattern> {
72 list<dag> pattern = []>
73 : LAInst<outs, ins, deriveInsnMnemonic<NAME>.ret, opnstr, pattern> {
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/Sparc/
H A DSparcInstrFormats.td9 class InstSP<dag outs, dag ins, string asmstr, list<dag> pattern,
23 let Pattern = pattern;
36 class F2<dag outs, dag ins, string asmstr, list<dag> pattern,
38 : InstSP<outs, ins, asmstr, pattern, itin> {
48 class F2_1<bits<3> op2Val, dag outs, dag ins, string asmstr, list<dag> pattern,
50 : F2<outs, ins, asmstr, pattern, itin> {
59 list<dag> pattern, InstrItinClass itin = NoItinerary>
60 : F2<outs, ins, asmstr, pattern, itin> {
69 dag outs, dag ins, string asmstr, list<dag> pattern,
[all...]
/freebsd/sys/contrib/device-tree/Bindings/thermal/
H A Dqcom-tsens.yaml134 - pattern: '^s[0-9]+_p1$'
135 - pattern: '^s[0-9]+_p2$'
136 - pattern: '^s[0-9]+_p1$'
137 - pattern: '^s[0-9]+_p2$'
138 - pattern: '^s[0-9]+_p1$'
139 - pattern: '^s[0-9]+_p2$'
140 - pattern: '^s[0-9]+_p1$'
141 - pattern: '^s[0-9]+_p2$'
142 - pattern: '^s[0-9]+_p1$'
143 - pattern: '^s[0-9]+_p2$'
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/Xtensa/
H A DXtensaInstrFormats.td12 class XtensaInst<int size, dag outs, dag ins, string asmstr, list<dag> pattern,
23 let Pattern = pattern;
29 class XtensaInst24<dag outs, dag ins, string asmstr, list<dag> pattern,
31 : XtensaInst<3, outs, ins, asmstr, pattern, itin> {
37 class XtensaInst16<dag outs, dag ins, string asmstr, list<dag> pattern,
39 : XtensaInst<2, outs, ins, asmstr, pattern, itin> {
46 string asmstr, list<dag> pattern, InstrItinClass itin = NoItinerary>
47 : XtensaInst24<outs, ins, asmstr, pattern, itin> {
61 string asmstr, list<dag> pattern, InstrItinClass itin = NoItinerary>
62 : XtensaInst24<outs, ins, asmstr, pattern, itin> {
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86InstrUtils.td170 /// immediate of this kind in a pattern (e.g. imm, or i64immSExt32).
181 /// sign extended immediate of this kind in a pattern (e.g. imm16immSExt8).
388 class PseudoI<dag oops, dag iops, list<dag> pattern>
390 let Pattern = pattern;
394 list<dag> pattern, Domain d = GenericDomain>
396 let Pattern = pattern;
399 list<dag> pattern, Domain d = GenericDomain>
401 let Pattern = pattern;
404 list<dag> pattern, Domain d = GenericDomain>
406 let Pattern = pattern;
[all …]
/freebsd/crypto/krb5/src/util/support/
H A Dfnmatch.c45 * Compares a filename or pathname to a pattern.
68 rangematch(const char *pattern, int test, int flags) in rangematch() argument
73 _DIAGASSERT(pattern != NULL); in rangematch()
82 if ((negate = (*pattern == '!' || *pattern == '^')) != 0) in rangematch()
83 ++pattern; in rangematch()
85 for (ok = 0; (c = FOLDCASE(*pattern++, flags)) != ']';) { in rangematch()
87 c = FOLDCASE(*pattern++, flags); in rangematch()
90 if (*pattern == '-' in rangematch()
91 && (c2 = FOLDCASE(*(pattern + 1), flags)) != EOS && in rangematch()
93 pattern += 2; in rangematch()
[all …]
/freebsd/contrib/diff/lib/
H A Dexclude.c73 /* An exclude pattern-options pair. The options are fnmatch options
78 char const *pattern; member
82 /* An exclude list, of pattern-options pairs. */
108 /* Return zero if PATTERN matches F, obeying OPTIONS, except that
109 (unlike fnmatch) wildcards are disabled in PATTERN. */
112 fnmatch_no_wildcards (char const *pattern, char const *f, int options) in fnmatch_no_wildcards() argument
116 ? strcasecmp (pattern, f) in fnmatch_no_wildcards()
117 : strcmp (pattern, f)); in fnmatch_no_wildcards()
120 size_t patlen = strlen (pattern); in fnmatch_no_wildcards()
122 ? strncasecmp (pattern, f, patlen) in fnmatch_no_wildcards()
[all …]
/freebsd/crypto/heimdal/lib/roken/
H A Dfnmatch.c45 * Compares a filename or pathname to a pattern.
62 rk_fnmatch(const char *pattern, const char *string, int flags) in rk_fnmatch() argument
68 switch (c = *pattern++) { in rk_fnmatch()
83 c = *pattern; in rk_fnmatch()
86 c = *++pattern; in rk_fnmatch()
93 /* Optimize for pattern with * at end or before /. */ in rk_fnmatch()
108 if (!rk_fnmatch(pattern, string, flags & ~FNM_PERIOD)) in rk_fnmatch()
120 if ((pattern = in rk_fnmatch()
121 rangematch(pattern, *string, flags)) == NULL) in rk_fnmatch()
127 if ((c = *pattern++) == EOS) { in rk_fnmatch()
[all …]
/freebsd/sys/libkern/
H A Dfnmatch.c38 * Compares a filename or pathname to a pattern.
54 fnmatch(const char *pattern, const char *string, int flags) in fnmatch() argument
61 switch (c = *pattern++) { in fnmatch()
78 c = *pattern; in fnmatch()
81 c = *++pattern; in fnmatch()
88 /* Optimize for pattern with * at end or before /. */ in fnmatch()
104 if (!fnmatch(pattern, string, flags & ~FNM_PERIOD)) in fnmatch()
121 switch (rangematch(pattern, *string, flags, &newp)) { in fnmatch()
125 pattern = newp; in fnmatch()
134 if ((c = *pattern++) == EOS) { in fnmatch()
[all …]
/freebsd/contrib/bmake/unit-tests/
H A Dvarmod-match.mk4 # given pattern.
8 # 1. Pattern characters '*', '?' and '\'
24 # 1. Pattern characters '*', '?' and '\'
30 # The pattern is anchored both at the beginning and at the end of the word.
31 # Since the pattern 'e' does not contain any pattern matching characters, it
37 # The pattern character '?' matches exactly 1 character, the pattern character
38 # '*' matches 0 or more characters. The whole pattern matches all words that
44 # A pattern without placeholders only matches itself.
49 # A pattern that does not start with '*' is anchored at the beginning.
54 # A pattern that does not end with '*' is anchored at the end.
[all …]

12345678910>>...82