Searched refs:pattern (Results 1 - 25 of 243) sorted by relevance

12345678910

/freebsd-13-stable/usr.bin/primes/
H A Dpattern.c35 static char sccsid[] = "@(#)pattern.c 8.1 (Berkeley) 5/31/93";
42 * pattern - the Eratosthenes sieve on odd numbers for 3,5,7,11 and 13
57 const char pattern[] = { variable
444 const size_t pattern_size = (sizeof(pattern)/sizeof(pattern[0]));
H A DMakefile5 SRCS= pattern.c pr_tbl.c primes.c spsp.c
H A Dprimes.h70 extern const char pattern[];
71 extern const size_t pattern_size; /* length of pattern array */
/freebsd-13-stable/cddl/contrib/opensolaris/lib/libdtrace/common/
H A Dmkerrno.sh37 pattern='^#define[ ]\(E[A-Z0-9]*\)[ ]*\([A-Z0-9]*\).*$'
40 sed -n "s/$pattern/$replace/p" | tr '@' '\n'
H A Dmkerrtags.sh40 pattern='^ \(D_[A-Z0-9_]*\),*'
43 sed -n "s/$pattern/$replace/p" || exit 1
H A Dmksignal.sh37 pattern='^#define[ ]*_*\(SIG[A-Z0-9]*\)[ ]\{1,\}\([A-Z0-9]*\).*$'
40 sed -n "s/$pattern/$replace/p;/SIGRTMAX/q" | tr '@' '\n'
/freebsd-13-stable/contrib/apr/strings/
H A Dapr_fnmatch.c22 * Filename pattern matches defined in section 2.13, "Pattern Matching Notation"
30 * number of consecutive slashes within pattern and string will NOT match;
49 * state of pattern and string (rewinding pattern and string repeatedly).
71 * Both pattern and string are **char to support pointer increment of arbitrary
74 static APR_INLINE int fnmatch_ch(const char **pattern, const char **string, int flags) argument
76 const char * const mismatch = *pattern;
84 if (**pattern == '[')
86 ++*pattern;
89 negate = ((**pattern
194 apr_fnmatch(const char *pattern, const char *string, int flags) argument
405 apr_fnmatch_test(const char *pattern) argument
[all...]
/freebsd-13-stable/contrib/apr-util/include/
H A Dapr_strmatch.h41 * Precompiled search pattern
47 const char *pattern; /**< Current pattern */ member in struct:apr_strmatch_pattern
54 * Search for a precompiled pattern within a string
55 * @param pattern The pattern
56 * @param s The string in which to search for the pattern
58 * @return A pointer to the first instance of the pattern in s, or
61 APU_DECLARE(const char *) apr_strmatch(const apr_strmatch_pattern *pattern,
64 #define apr_strmatch(pattern,
[all...]
/freebsd-13-stable/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) argument
68 switch (c = *pattern++) {
83 c = *pattern;
86 c = *++pattern;
93 /* Optimize for pattern with * at end or before /. */
108 if (!rk_fnmatch(pattern, string, flags & ~FNM_PERIOD))
120 if ((pattern =
121 rangematch(pattern, *string, flags)) == NULL)
127 if ((c = *pattern
142 rangematch(const char *pattern, int test, int flags) argument
[all...]
/freebsd-13-stable/contrib/less/
H A Dpattern.c11 * Routines to do pattern matching.
20 * Compile a search pattern, for future use by match_pattern.
23 compile_pattern2(pattern, search_type, comp_pattern, show_error)
24 char *pattern;
36 if (re_compile_pattern(pattern, strlen(pattern), comp))
40 error("Invalid pattern", NULL_PARG);
52 if (regcomp(comp, pattern, REGCOMP_FLAG))
56 error("Invalid pattern", NULL_PARG);
70 pcre *comp = pcre_compile(pattern,
[all...]
/freebsd-13-stable/contrib/apr-util/strmatch/
H A Dapr_strmatch.c41 const char *p_start = this_pattern->pattern;
65 const char *p_start = this_pattern->pattern;
86 apr_strmatch_pattern *pattern; local
90 pattern = apr_palloc(p, sizeof(*pattern));
91 pattern->pattern = s;
92 pattern->length = strlen(s);
93 if (pattern->length == 0) {
94 pattern
[all...]
/freebsd-13-stable/sys/libkern/
H A Dfnmatch.c40 * Compares a filename or pathname to a pattern.
56 fnmatch(const char *pattern, const char *string, int flags) argument
63 switch (c = *pattern++) {
80 c = *pattern;
83 c = *++pattern;
90 /* Optimize for pattern with * at end or before /. */
106 if (!fnmatch(pattern, string, flags & ~FNM_PERIOD))
123 switch (rangematch(pattern, *string, flags, &newp)) {
127 pattern = newp;
136 if ((c = *pattern
159 rangematch(const char *pattern, char test, int flags, char **newp) argument
[all...]
/freebsd-13-stable/contrib/subversion/subversion/include/private/
H A Dsvn_cert.h40 /* Return TRUE iff @a pattern matches @a hostname as defined
42 * 6125 the pattern is the domain name portion of the presented
61 svn_cert__match_dns_identity(svn_string_t *pattern, svn_string_t *hostname);
/freebsd-13-stable/lib/libc/gen/
H A Dfnmatch.c46 * Compares a filename or pathname to a pattern.
79 fnmatch(const char *pattern, const char *string, int flags) argument
83 return (fnmatch1(pattern, string, string, flags, initial, initial));
87 fnmatch1(const char *pattern, const char *string, const char *stringstart, argument
99 pclen = mbrtowc(&pc, pattern, MB_LEN_MAX, &patmbs);
102 pattern += pclen;
128 c = *pattern;
131 c = *++pattern;
138 /* Optimize for pattern with * at end or before /. */
158 bt_pattern = pattern, bt_patmb
235 rangematch(const char *pattern, wchar_t test, int flags, char **newp, mbstate_t *patmbs) argument
[all...]
/freebsd-13-stable/contrib/libevent/sample/
H A Dhostcheck.c155 * Match a hostname against a wildcard pattern.
163 static int hostmatch(const char *hostname, const char *pattern) argument
168 pattern_wildcard = strchr(pattern, '*');
170 return Curl_raw_equal(pattern, hostname) ?
173 /* We require at least 2 dots in pattern to avoid too wide wildcard
176 pattern_label_end = strchr(pattern, '.');
179 Curl_raw_nequal(pattern, "xn--", 4)) {
183 return Curl_raw_equal(pattern, hostname) ?
193 of the pattern. */
194 if(hostname_label_end - hostname < pattern_label_end - pattern)
[all...]
/freebsd-13-stable/contrib/apr/include/
H A Dapr_fnmatch.h66 * Try to match the string to the given pattern, return APR_SUCCESS if
68 * an illegal pattern.
70 * With all flags unset, a pattern is interpreted as such:
86 * PATTERN: Any character other than \?*[ or a \ at the end of the pattern<br/>
99 * beginning. The pattern matches a single character if it
107 * just find a substring matching the pattern.
109 * @param pattern The pattern to match to
120 APR_DECLARE(apr_status_t) apr_fnmatch(const char *pattern,
124 * Determine if the given pattern i
[all...]
/freebsd-13-stable/contrib/diff/lib/
H A Dexclude.c73 /* An exclude pattern-options pair. The options are fnmatch options
78 char const *pattern; member in struct:patopts
82 /* An exclude list, of pattern-options pairs. */
112 fnmatch_no_wildcards (char const *pattern, char const *f, int options) argument
116 ? strcasecmp (pattern, f)
117 : strcmp (pattern, f));
120 size_t patlen = strlen (pattern);
122 ? strncasecmp (pattern, f, patlen)
123 : strncmp (pattern, f, patlen));
156 char const *pattern local
183 add_exclude(struct exclude *ex, char const *pattern, int options) argument
210 char const *pattern; local
[all...]
/freebsd-13-stable/contrib/netbsd-tests/lib/libc/string/
H A Dt_bm.c48 const char *pattern; member in struct:__anon5153
77 bm_pat *pattern; local
80 ATF_CHECK(pattern = bm_comp((const u_char *)testcases[ts].pattern,
81 strlen(testcases[ts].pattern), (const u_char *)testcases[ts].freq));
84 off = bm_exec(pattern, (u_char *)text, strlen(text));
92 bm_free(pattern);
/freebsd-13-stable/crypto/openssh/
H A Dmatch.c6 * Simple pattern matching, with '*' and '?' as wildcards.
52 * Returns true if the given string matches the pattern (which may contain ?
57 match_pattern(const char *s, const char *pattern) argument
60 /* If at end of pattern, accept if also at end of string. */
61 if (!*pattern)
64 if (*pattern == '*') {
66 pattern++;
68 /* If at end of pattern, accept immediately. */
69 if (!*pattern)
72 /* If next character in pattern i
121 match_pattern_list(const char *string, const char *pattern, int dolower) argument
180 match_hostname(const char *host, const char *pattern) argument
222 match_user(const char *user, const char *host, const char *ipaddr, const char *pattern) argument
[all...]
/freebsd-13-stable/contrib/apr-util/test/
H A Dteststrmatch.c32 const apr_strmatch_pattern *pattern; local
38 const char *input2 = "string that contains a pattern...";
39 const char *input3 = "pattern at the start of a string";
40 const char *input4 = "string that ends with a pattern";
42 const char *input6 = "patter\200n, negative chars, contains pattern...";
44 pattern = apr_strmatch_precompile(pool, "pattern", 1);
45 ABTS_PTR_NOTNULL(tc, pattern);
47 pattern_nocase = apr_strmatch_precompile(pool, "pattern", 0);
56 match = apr_strmatch(pattern, input
[all...]
/freebsd-13-stable/contrib/one-true-awk/
H A Dawkgram.y65 %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: label
220 var ASGNOP pattern { $$ = op2($2, $1, $3); }
221 | pattern '?' pattern '
[all...]
/freebsd-13-stable/sys/contrib/zstd/programs/
H A Dzstdgrep56 pattern="$2"
87 # pattern to grep for
93 # if no -e option was found, take next argument as grep-pattern
96 pattern="$1"
99 pattern="-"
101 printf '%s: missing pattern\n' "${prog}" >&2
112 "${zcat}" - | "${grep}" ${grep_args} -- "${pattern}" -
126 "${zcat}" -- "$1" | "${grep}" --label="${1}" ${grep_args} -- "${pattern}" -
/freebsd-13-stable/lib/libc/tests/gen/
H A Dtest-fnmatch.c60 if (strchr(t->pattern, '\'') != NULL ||
63 if (t->flags == 0 && strcmp(t->pattern, "\\") == 0)
68 t->pattern, t->string);
70 (t->flags == 0 && strchr(t->pattern, '\\') == NULL)))
73 t->pattern, t->string);
/freebsd-13-stable/contrib/llvm-project/openmp/runtime/src/
H A Dkmp_utility.cpp315 void __kmp_expand_file_name(char *result, size_t rlen, char *pattern) { argument
329 if (pattern != NULL) {
330 while (*pattern != '\0' && pos < end) {
331 if (*pattern != '%') {
332 *pos++ = *pattern++;
334 char *old_pattern = pattern;
338 ++pattern;
340 if (*pattern >= '0' && *pattern <= '9') {
343 width = (width * 10) + *pattern
[all...]
/freebsd-13-stable/usr.bin/grep/
H A Dzgrep.sh89 pattern="${1#--regexp=}"
112 pattern="$2"
139 # pattern to grep for
145 # if no -e option was found, take next argument as grep-pattern
149 pattern="$1"
152 pattern="-"
154 echo "${prg}: missing pattern" >&2
165 ${cattool} ${catargs} - | ${grep} ${grep_args} -- "${pattern}" -
180 ${grep} --label="${file}" ${grep_args} -- "${pattern}" -

Completed in 479 milliseconds

12345678910