Home
last modified time | relevance | path

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

12345678910>>...76

/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/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, int show_error) 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, strle in compile_pattern2()
145 compile_pattern(char * pattern,int search_type,int show_error,PATTERN_TYPE * comp_pattern) compile_pattern() argument
166 uncompile_pattern(PATTERN_TYPE * pattern) uncompile_pattern() argument
230 is_null_pattern(PATTERN_TYPE pattern) is_null_pattern() argument
261 match(char * pattern,int pattern_len,char * buf,int buf_len,char *** sp,char *** ep,int nsubs) match() argument
297 match_pattern1(PATTERN_TYPE pattern,char * tpattern,char * line,int line_len,char ** sp,char ** ep,int nsp,int notbol,int search_type) match_pattern1() argument
445 match_pattern(PATTERN_TYPE pattern,char * tpattern,char * line,int line_len,char ** sp,char ** ep,int nsp,int notbol,int search_type) match_pattern() argument
[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/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/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/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/lib/libc/gen/
H A Dfnmatch.c42 * Compares a filename or pathname to a pattern.
75 fnmatch(const char *pattern, const char *string, int flags) in fnmatch() argument
79 return (fnmatch1(pattern, string, string, flags, initial, initial)); in fnmatch()
83 fnmatch1(const char *pattern, const char *string, const char *stringstart, in fnmatch1() argument
95 pclen = mbrtowc(&pc, pattern, MB_LEN_MAX, &patmbs); in fnmatch1()
98 pattern += pclen; in fnmatch1()
124 c = *pattern; in fnmatch1()
127 c = *++pattern; in fnmatch1()
134 /* Optimize for pattern with * at end or before /. */ in fnmatch1()
154 bt_pattern = pattern, bt_patmbs = patmbs; in fnmatch1()
[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/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/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/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/sys/contrib/device-tree/Bindings/thermal/
H A Dqcom-tsens.yaml127 - pattern: '^s[0-9]+_p1$'
128 - pattern: '^s[0-9]+_p2$'
129 - pattern: '^s[0-9]+_p1$'
130 - pattern: '^s[0-9]+_p2$'
131 - pattern: '^s[0-9]+_p1$'
132 - pattern: '^s[0-9]+_p2$'
133 - pattern: '^s[0-9]+_p1$'
134 - pattern: '^s[0-9]+_p2$'
135 - pattern: '^s[0-9]+_p1$'
136 - pattern: '^s[0-9]+_p2$'
[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 '\'
20 # 1. Pattern characters '*', '?' and '\'
26 # The pattern is anchored both at the beginning and at the end of the word.
27 # Since the pattern 'e' does not contain any pattern matching characters, it
33 # The pattern character '?' matches exactly 1 character, the pattern character
34 # '*' matches 0 or more characters. The whole pattern matches all words that
40 # A pattern without placeholders only matches itself.
45 # A pattern that does not start with '*' is anchored at the beginning.
50 # A pattern that does not end with '*' is anchored at the end.
[all …]
/freebsd/usr.bin/sed/
H A Dsed.1171 .Em "pattern space" ,
175 applies all of the commands with addresses that select that pattern space,
176 copies the pattern space to the standard output, appending a newline, and
177 deletes the pattern space.
181 to save all or part of the pattern space for subsequent retrieval.
210 A command line with no addresses selects every pattern space.
212 A command line with one address selects all of the pattern spaces
217 range starts with the first pattern space that matches the first
219 The end of the range is the next following pattern space
226 to specify the number of lines to match after the first pattern.
[all …]
/freebsd/usr.bin/grep/
H A Dgrep.138 .Nd file pattern searcher
46 .Op Fl e Ar pattern
55 .Op Ar pattern
63 By default, a pattern matches an input line if the regular expression
64 (RE) in the pattern matches the input line
88 allowing any of the pattern lines to match a portion of the input.
110 to output lines matching the specified pattern.
121 The offset in bytes of a matched pattern is
178 .Ar pattern
184 .It Fl e Ar pattern , Fl Fl regexp= Ns Ar pattern
[all …]

12345678910>>...76