| /trueos/contrib/apr/strings/ |
| HD | apr_fnmatch.c | 74 static APR_INLINE int fnmatch_ch(const char **pattern, const char **string, int flags) in fnmatch_ch() argument 76 const char * const mismatch = *pattern; in fnmatch_ch() 84 if (**pattern == '[') in fnmatch_ch() 86 ++*pattern; in fnmatch_ch() 89 negate = ((**pattern == '!') || (**pattern == '^')); in fnmatch_ch() 91 ++*pattern; in fnmatch_ch() 94 if (**pattern == ']') in fnmatch_ch() 97 while (**pattern) in fnmatch_ch() 99 if (**pattern == ']') { in fnmatch_ch() 100 ++*pattern; in fnmatch_ch() [all …]
|
| /trueos/lib/libc/gen/ |
| HD | fnmatch.c | 79 fnmatch(pattern, string, flags) in fnmatch() argument 80 const char *pattern, *string; in fnmatch() 85 return (fnmatch1(pattern, string, string, flags, initial, initial)); 89 fnmatch1(pattern, string, stringstart, flags, patmbs, strmbs) in fnmatch1() argument 90 const char *pattern, *string, *stringstart; in fnmatch1() 100 pclen = mbrtowc(&pc, pattern, MB_LEN_MAX, &patmbs); 103 pattern += pclen; 127 c = *pattern; 130 c = *++pattern; 153 if (!fnmatch1(pattern, string, stringstart, [all …]
|
| /trueos/contrib/less/ |
| HD | pattern.c | 23 compile_pattern2(pattern, search_type, comp_pattern) in compile_pattern2() argument 24 char *pattern; in compile_pattern2() 37 if (re_compile_pattern(pattern, strlen(pattern), comp)) 50 if (regcomp(comp, pattern, REGCOMP_FLAG)) 66 comp = pcre_compile(pattern, 0, 79 if ((parg.p_string = re_comp(pattern)) != NULL) 89 if ((comp = regcmp(pattern, 0)) == NULL) 101 if ((comp = regcomp(pattern)) == NULL) 121 compile_pattern(pattern, search_type, comp_pattern) in compile_pattern() argument 122 char *pattern; in compile_pattern() [all …]
|
| /trueos/crypto/openssh/ |
| HD | match.c | 55 match_pattern(const char *s, const char *pattern) in match_pattern() argument 59 if (!*pattern) in match_pattern() 62 if (*pattern == '*') { in match_pattern() 64 pattern++; in match_pattern() 67 if (!*pattern) in match_pattern() 71 if (*pattern != '?' && *pattern != '*') { in match_pattern() 78 if (*s == *pattern && in match_pattern() 79 match_pattern(s + 1, pattern + 1)) in match_pattern() 89 if (match_pattern(s, pattern)) in match_pattern() 102 if (*pattern != '?' && *pattern != *s) in match_pattern() [all …]
|
| /trueos/contrib/llvm/lib/Target/XCore/ |
| HD | XCoreInstrFormats.td | 13 class InstXCore<int sz, dag outs, dag ins, string asmstr, list<dag> pattern> 21 let Pattern = pattern; 27 class PseudoInstXCore<dag outs, dag ins, string asmstr, list<dag> pattern> 28 : InstXCore<0, outs, ins, asmstr, pattern> { 36 class _F3R<bits<5> opc, dag outs, dag ins, string asmstr, list<dag> pattern> 37 : InstXCore<2, outs, ins, asmstr, pattern> { 45 class _F3RImm<bits<5> opc, dag outs, dag ins, string asmstr, list<dag> pattern> 46 : _F3R<opc, outs, ins, asmstr, pattern> { 50 class _FL3R<bits<9> opc, dag outs, dag ins, string asmstr, list<dag> pattern> 51 : InstXCore<4, outs, ins, asmstr, pattern> { [all …]
|
| /trueos/contrib/bmake/ |
| HD | str.c | 333 Str_Match(const char *string, const char *pattern) in Str_Match() argument 343 if (*pattern == 0) in Str_Match() 345 if (*string == 0 && *pattern != '*') in Str_Match() 353 if (*pattern == '*') { in Str_Match() 354 pattern += 1; in Str_Match() 355 if (*pattern == 0) in Str_Match() 358 if (Str_Match(string, pattern)) in Str_Match() 368 if (*pattern == '?') in Str_Match() 375 if (*pattern == '[') { in Str_Match() 376 ++pattern; in Str_Match() [all …]
|
| HD | var.c | 1338 void *pattern) in VarMatch() argument 1341 fprintf(debug_file, "VarMatch [%s] [%s]\n", word, (char *)pattern); in VarMatch() 1342 if (Str_Match(word, (char *)pattern)) { in VarMatch() 1429 void *pattern) in VarNoMatch() argument 1431 if (!Str_Match(word, (char *)pattern)) { in VarNoMatch() 1470 VarPattern *pattern = (VarPattern *)patternp; in VarSubstitute() local 1473 if ((pattern->flags & (VAR_SUB_ONE|VAR_SUB_MATCHED)) != in VarSubstitute() 1479 if ((pattern->flags & VAR_MATCH_START) && in VarSubstitute() 1480 (strncmp(word, pattern->lhs, pattern->leftLen) == 0)) { in VarSubstitute() 1484 if ((pattern->flags & VAR_MATCH_END) && in VarSubstitute() [all …]
|
| /trueos/contrib/apr-util/strmatch/ |
| HD | apr_strmatch.c | 41 const char *p_start = this_pattern->pattern; in match_boyer_moore_horspool() 65 const char *p_start = this_pattern->pattern; in match_boyer_moore_horspool_nocase() 86 apr_strmatch_pattern *pattern; in apr_strmatch_precompile() local 90 pattern = apr_palloc(p, sizeof(*pattern)); in apr_strmatch_precompile() 91 pattern->pattern = s; in apr_strmatch_precompile() 92 pattern->length = strlen(s); in apr_strmatch_precompile() 93 if (pattern->length == 0) { in apr_strmatch_precompile() 94 pattern->compare = match_no_op; in apr_strmatch_precompile() 95 pattern->context = NULL; in apr_strmatch_precompile() 96 return pattern; in apr_strmatch_precompile() [all …]
|
| /trueos/contrib/one-true-awk/ |
| HD | awkgram.y | 65 %type <p> pas pattern ppattern plist pplist patlist prarg term re 124 FOR '(' opt_simple_stmt ';' opt_nl pattern ';' opt_nl opt_simple_stmt rparen {inloop++;} stmt 138 IF '(' pattern rparen { $$ = notnull($3); } 171 pattern { $$ = notnull($1); } 194 pattern 195 | patlist comma pattern { $$ = linkum($1, $3); } 219 pattern: 220 var ASGNOP pattern { $$ = op2($2, $1, $3); } 221 | pattern '?' pattern ':' pattern %prec '?' 223 | pattern bor pattern %prec BOR [all …]
|
| /trueos/crypto/heimdal/lib/roken/ |
| HD | fnmatch.c | 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() 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() 129 --pattern; in rk_fnmatch() 142 rangematch(const char *pattern, int test, int flags) in rangematch() argument [all …]
|
| /trueos/contrib/llvm/lib/Target/MSP430/ |
| HD | MSP430InstrFormats.td | 78 dag outs, dag ins, string asmstr, list<dag> pattern> 80 let Pattern = pattern; 93 dag outs, dag ins, string asmstr, list<dag> pattern> 94 : IForm<opcode, dest, 1, src, sz, outs, ins, asmstr, pattern>; 97 dag outs, dag ins, string asmstr, list<dag> pattern> 98 : IForm8<opcode, DstReg, SrcReg, Size2Bytes, outs, ins, asmstr, pattern>; 101 dag outs, dag ins, string asmstr, list<dag> pattern> 102 : IForm8<opcode, DstReg, SrcImm, Size4Bytes, outs, ins, asmstr, pattern>; 105 dag outs, dag ins, string asmstr, list<dag> pattern> 106 : IForm8<opcode, DstReg, SrcMem, Size4Bytes, outs, ins, asmstr, pattern>; [all …]
|
| /trueos/sys/libkern/ |
| HD | fnmatch.c | 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() 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() 136 --pattern; in fnmatch() 157 rangematch(const char *pattern, char test, int flags, char **newp) in rangematch() argument [all …]
|
| /trueos/usr.bin/csup/ |
| HD | fnmatch.c | 58 fnmatch(const char *pattern, const char *string, int flags) in fnmatch() argument 64 switch (c = *pattern++) { in fnmatch() 81 c = *pattern; in fnmatch() 84 c = *++pattern; in fnmatch() 107 if (!fnmatch(pattern, string, flags & ~FNM_PERIOD)) in fnmatch() 119 if ((pattern = in fnmatch() 120 rangematch(pattern, *string, flags)) == NULL) in fnmatch() 126 if ((c = *pattern++) == EOS) { in fnmatch() 128 --pattern; in fnmatch() 152 rangematch(const char *pattern, char test, int flags) in rangematch() argument [all …]
|
| /trueos/usr.bin/make/ |
| HD | str.c | 388 Str_Match(const char *string, const char *pattern) in Str_Match() argument 398 if (*pattern == 0) in Str_Match() 400 if (*string == 0 && *pattern != '*') in Str_Match() 408 if (*pattern == '*') { in Str_Match() 409 pattern += 1; in Str_Match() 410 if (*pattern == 0) in Str_Match() 413 if (Str_Match(string, pattern)) in Str_Match() 423 if (*pattern == '?') in Str_Match() 430 if (*pattern == '[') { in Str_Match() 431 ++pattern; in Str_Match() [all …]
|
| /trueos/contrib/llvm/lib/Target/X86/ |
| HD | X86InstrFormats.td | 250 class PseudoI<dag oops, dag iops, list<dag> pattern> 252 let Pattern = pattern; 256 list<dag> pattern, InstrItinClass itin = NoItinerary, 259 let Pattern = pattern; 263 list<dag> pattern, InstrItinClass itin = NoItinerary, 266 let Pattern = pattern; 270 list<dag> pattern, InstrItinClass itin = NoItinerary> 272 let Pattern = pattern; 276 list<dag> pattern, InstrItinClass itin = NoItinerary> 278 let Pattern = pattern; [all …]
|
| /trueos/contrib/llvm/lib/Target/Hexagon/ |
| HD | HexagonInstrFormats.td | 85 class InstHexagon<dag outs, dag ins, string asmstr, list<dag> pattern, 93 let Pattern = pattern; 181 class LDInst<dag outs, dag ins, string asmstr, list<dag> pattern = [], 183 : InstHexagon<outs, ins, asmstr, pattern, cstr, LD, TypeLD>; 186 class LDInst2<dag outs, dag ins, string asmstr, list<dag> pattern = [], 188 : LDInst<outs, ins, asmstr, pattern, cstr>; 190 class CONSTLDInst<dag outs, dag ins, string asmstr, list<dag> pattern = [], 192 : LDInst<outs, ins, asmstr, pattern, cstr>; 196 class LDInstPost<dag outs, dag ins, string asmstr, list<dag> pattern = [], 198 : LDInst<outs, ins, asmstr, pattern, cstr>; [all …]
|
| HD | HexagonInstrFormatsV4.td | 31 class NVInst<dag outs, dag ins, string asmstr, list<dag> pattern = [], 33 : InstHexagon<outs, ins, asmstr, pattern, cstr, NV_V4, TypeNV>; 35 class NVInst_V4<dag outs, dag ins, string asmstr, list<dag> pattern = [], 37 : NVInst<outs, ins, asmstr, pattern, cstr>; 40 class NVInstPost_V4<dag outs, dag ins, string asmstr, list<dag> pattern = [], 42 : NVInst<outs, ins, asmstr, pattern, cstr>; 46 class NVInstPI_V4<dag outs, dag ins, string asmstr, list<dag> pattern = [], 48 : NVInst<outs, ins, asmstr, pattern, cstr>; 51 class NCJInst<dag outs, dag ins, string asmstr, list<dag> pattern = [], 53 : NVInst<outs, ins, asmstr, pattern, cstr>; [all …]
|
| /trueos/contrib/diff/lib/ |
| HD | exclude.c | 78 char const *pattern; member 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() 123 : strncmp (pattern, f, patlen)); in fnmatch_no_wildcards() 156 char const *pattern = exclude[i].pattern; in excluded_filename() local 164 bool matched = ((*matcher) (pattern, f, options) == 0); in excluded_filename() 170 matched = ((*matcher) (pattern, p + 1, options) == 0); in excluded_filename() [all …]
|
| /trueos/contrib/llvm/lib/Target/Sparc/ |
| HD | SparcInstrFormats.td | 10 class InstSP<dag outs, dag ins, string asmstr, list<dag> pattern> 23 let Pattern = pattern; 34 class F2<dag outs, dag ins, string asmstr, list<dag> pattern> 35 : InstSP<outs, ins, asmstr, pattern> { 45 class F2_1<bits<3> op2Val, dag outs, dag ins, string asmstr, list<dag> pattern> 46 : F2<outs, ins, asmstr, pattern> { 55 list<dag> pattern> : F2<outs, ins, asmstr, pattern> { 66 list<dag> pattern> 67 : InstSP<outs, ins, asmstr, pattern> { 90 class F3<dag outs, dag ins, string asmstr, list<dag> pattern> [all …]
|
| /trueos/contrib/binutils/bfd/ |
| HD | mep-relocs.pl | 58 ($pattern, $sign, $attrs) = $rest =~ m@(.*) ([US]) (.*)\*/@; 59 $pattern =~ s/ //g; 60 push(@pattern, $pattern); 64 printf "%4d $rel p=`$pattern' s=`$sign' a=`$attrs'\n", $#pattern; 127 $mask = $pattern[$i]; 150 if (length($pattern[$i]) == 8) { 152 } elsif ($pattern[$i] =~ /-/ || length($pattern[$i]) == 16) { 157 print NEW " case R_MEP_$relocs[$i]: /* $pattern[$i] */\n"; 174 for ($b=0; $b<length($pattern[$i]); $b += 8) { 175 $mask = substr($pattern[$i], $b, 8); [all …]
|
| /trueos/contrib/llvm/lib/Target/PowerPC/ |
| HD | PPCInstrFormats.td | 100 InstrItinClass itin, list<dag> pattern> 102 let Pattern = pattern; 165 list<dag> pattern> 169 let Pattern = pattern; 177 InstrItinClass itin, list<dag> pattern> 183 let Pattern = pattern; 191 InstrItinClass itin, list<dag> pattern> 196 let Pattern = pattern; 204 InstrItinClass itin, list<dag> pattern> 210 let Pattern = pattern; [all …]
|
| /trueos/contrib/llvm/lib/Target/Mips/ |
| HD | Mips16InstrFormats.td | 36 class MipsInst16_Base<dag outs, dag ins, string asmstr, list<dag> pattern, 46 let Pattern = pattern; 55 class MipsInst16<dag outs, dag ins, string asmstr, list<dag> pattern, 57 MipsInst16_Base<outs, ins, asmstr, pattern, itin> 72 class MipsInst16_32<dag outs, dag ins, string asmstr, list<dag> pattern, 74 MipsInst16_Base<outs, ins, asmstr, pattern, itin> 82 class MipsInst16_EXTEND<dag outs, dag ins, string asmstr, list<dag> pattern, 84 MipsInst16_32<outs, ins, asmstr, pattern, itin> 92 class MipsPseudo16<dag outs, dag ins, string asmstr, list<dag> pattern>: 93 MipsInst16<outs, ins, asmstr, pattern, IIPseudo> { [all …]
|
| /trueos/contrib/llvm/lib/Target/ARM/ |
| HD | ARMInstrFormats.td | 355 class PseudoInst<dag oops, dag iops, InstrItinClass itin, list<dag> pattern> 360 let Pattern = pattern; 367 list<dag> pattern> 368 : PseudoInst<oops, iops, itin, pattern> { 375 list<dag> pattern> 376 : PseudoInst<oops, iops, itin, pattern> { 383 list<dag> pattern> 384 : PseudoInst<oops, iops, itin, pattern> { 390 InstrItinClass itin, list<dag> pattern, 392 : ARMPseudoInst<oops, iops, sz, itin, pattern>, [all …]
|
| /trueos/tools/regression/lib/libc/gen/ |
| HD | test-fnmatch.c | 38 const char *pattern; member 238 if (strchr(t->pattern, '\'') != NULL || in write_sh_tests() 241 if (t->flags == 0 && strcmp(t->pattern, "\\") == 0) in write_sh_tests() 246 t->pattern, t->string); in write_sh_tests() 248 (t->flags == 0 && strchr(t->pattern, '\\') == NULL))) in write_sh_tests() 251 t->pattern, t->string); in write_sh_tests() 282 result = fnmatch(t->pattern, t->string, flags); in main() 285 if (strchr(t->pattern, '\\') == NULL && in main() 288 result = fnmatch(t->pattern, t->string, flags); in main() 294 if (strchr(t->pattern, '\\') != NULL && in main() [all …]
|
| /trueos/contrib/llvm/lib/Target/R600/ |
| HD | SIInstrFormats.td | 14 class InstSI <dag outs, dag ins, string asm, list<dag> pattern> : 15 AMDGPUInst<outs, ins, asm, pattern> { 40 class Enc32 <dag outs, dag ins, string asm, list<dag> pattern> : 41 InstSI <outs, ins, asm, pattern> { 47 class Enc64 <dag outs, dag ins, string asm, list<dag> pattern> : 48 InstSI <outs, ins, asm, pattern> { 58 class SOP1 <bits<8> op, dag outs, dag ins, string asm, list<dag> pattern> : 59 Enc32<outs, ins, asm, pattern> { 75 class SOP2 <bits<7> op, dag outs, dag ins, string asm, list<dag> pattern> : 76 Enc32 <outs, ins, asm, pattern> { [all …]
|