HomeSort by: relevance | last modified time | path
    Searched defs:pattern (Results 1 - 25 of 68) sorted by relevancy

1 2 3

  /src/games/primes/
pattern.c 1 /* $NetBSD: pattern.c,v 1.8 2021/05/02 12:50:46 rillig Exp $ */
39 static char sccsid[] = "@(#)pattern.c 8.1 (Berkeley) 5/31/93";
41 __RCSID("$NetBSD: pattern.c,v 1.8 2021/05/02 12:50:46 rillig Exp $");
46 * pattern - the Eratosthenes sieve on odd numbers for 3,5,7,11 and 13
55 const char pattern[] = { variable in typeref:typename:const char[]
442 const size_t pattern_size = (sizeof(pattern)/sizeof(pattern[0]));
pattern.c 1 /* $NetBSD: pattern.c,v 1.8 2021/05/02 12:50:46 rillig Exp $ */
39 static char sccsid[] = "@(#)pattern.c 8.1 (Berkeley) 5/31/93";
41 __RCSID("$NetBSD: pattern.c,v 1.8 2021/05/02 12:50:46 rillig Exp $");
46 * pattern - the Eratosthenes sieve on odd numbers for 3,5,7,11 and 13
55 const char pattern[] = { variable in typeref:typename:const char[]
442 const size_t pattern_size = (sizeof(pattern)/sizeof(pattern[0]));
  /src/usr.bin/make/unit-tests/
varmod-match-escape.mk 9 # are unescaped, and in the pattern matching these have the same meaning as
10 # their plain variants '{', '}' and ':'. In the pattern matching from
34 # Therefore the escaped ':' is kept as-is, and the final pattern becomes
57 # the ':' at the end of the modifier, which results in the pattern '\$'.
58 # No unescaping takes place since the pattern neither contained '\:' nor
60 # is silently discarded. The resulting expanded pattern is thus '\', that
62 # expect+1: Unfinished backslash at the end in pattern "\" of modifier ":M"
70 # expect+1: Unfinished backslash at the end in pattern "\" of modifier ":M"
75 # The control flow of the pattern parser depends on the actual string that
109 .for pattern in [A-] [A-]] [A-]]] [^A-] [^A-]] [^A-]]
    [all...]
varmod-match-escape.mk 9 # are unescaped, and in the pattern matching these have the same meaning as
10 # their plain variants '{', '}' and ':'. In the pattern matching from
34 # Therefore the escaped ':' is kept as-is, and the final pattern becomes
57 # the ':' at the end of the modifier, which results in the pattern '\$'.
58 # No unescaping takes place since the pattern neither contained '\:' nor
60 # is silently discarded. The resulting expanded pattern is thus '\', that
62 # expect+1: Unfinished backslash at the end in pattern "\" of modifier ":M"
70 # expect+1: Unfinished backslash at the end in pattern "\" of modifier ":M"
75 # The control flow of the pattern parser depends on the actual string that
109 .for pattern in [A-] [A-]] [A-]]] [^A-] [^A-]] [^A-]]
    [all...]
  /src/tests/lib/libc/string/
t_bm.c 48 const char *pattern; member in struct:__anon2bd77cd70108
77 bm_pat *pattern; local in function:ATF_TC_BODY
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);
t_bm.c 48 const char *pattern; member in struct:__anon2bd77cd70108
77 bm_pat *pattern; local in function:ATF_TC_BODY
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);
  /src/sys/arch/ews4800mips/ews4800mips/
sbd.c 170 uint32_t pattern[4] = local in function:sbd_memcluster_check
173 *m = pattern[j];
174 if (*m != pattern[j])
sbd.c 170 uint32_t pattern[4] = local in function:sbd_memcluster_check
173 *m = pattern[j];
174 if (*m != pattern[j])
  /src/sys/external/bsd/drm2/dist/drm/i915/gem/selftests/
i915_gem_dmabuf.c 90 u32 pattern[] = { 0, 0xaa, 0xcc, 0x55, 0xff }; local in function:igt_dmabuf_import
133 for (i = 0; i < ARRAY_SIZE(pattern); i++) {
134 memset(dma_map, pattern[i], PAGE_SIZE);
135 if (memchr_inv(obj_map, pattern[i], PAGE_SIZE)) {
137 pr_err("imported vmap not all set to %x!\n", pattern[i]);
143 for (i = 0; i < ARRAY_SIZE(pattern); i++) {
144 memset(obj_map, pattern[i], PAGE_SIZE);
145 if (memchr_inv(dma_map, pattern[i], PAGE_SIZE)) {
147 pr_err("exported vmap not all set to %x!\n", pattern[i]);
i915_gem_dmabuf.c 90 u32 pattern[] = { 0, 0xaa, 0xcc, 0x55, 0xff }; local in function:igt_dmabuf_import
133 for (i = 0; i < ARRAY_SIZE(pattern); i++) {
134 memset(dma_map, pattern[i], PAGE_SIZE);
135 if (memchr_inv(obj_map, pattern[i], PAGE_SIZE)) {
137 pr_err("imported vmap not all set to %x!\n", pattern[i]);
143 for (i = 0; i < ARRAY_SIZE(pattern); i++) {
144 memset(obj_map, pattern[i], PAGE_SIZE);
145 if (memchr_inv(dma_map, pattern[i], PAGE_SIZE)) {
147 pr_err("exported vmap not all set to %x!\n", pattern[i]);
  /src/sys/external/bsd/sljit/dist/regex_src/
regexMain.c 52 void verbose_test(regex_char_t *pattern, regex_char_t *string)
60 ptr = pattern;
64 printf("Start test '%s' matches to '%s'\n", pattern, string);
65 machine = regex_compile(pattern, ptr - pattern, REGEX_MATCH_VERBOSE | REGEX_NEWLINE, &error);
103 const regex_char_t *pattern; /* NULL : use the previous pattern. */ member in struct:test_case
121 printf("test: '%s' '%s': ", test->pattern ? test->pattern : "[[REUSE]]", test->string);
124 if (test->pattern) {
    [all...]
regexMain.c 52 void verbose_test(regex_char_t *pattern, regex_char_t *string)
60 ptr = pattern;
64 printf("Start test '%s' matches to '%s'\n", pattern, string);
65 machine = regex_compile(pattern, ptr - pattern, REGEX_MATCH_VERBOSE | REGEX_NEWLINE, &error);
103 const regex_char_t *pattern; /* NULL : use the previous pattern. */ member in struct:test_case
121 printf("test: '%s' '%s': ", test->pattern ? test->pattern : "[[REUSE]]", test->string);
124 if (test->pattern) {
    [all...]
  /src/tests/lib/libc/regex/
t_exhaust.c 196 char *(*pattern)(size_t); member in struct:__anond924d30e0108
217 patterns[i] = (*tests[i].pattern)(REGEX_MAXSIZE);
229 "regcomp returned %d (%s) for pattern %zu [%s]", e,
t_exhaust.c 196 char *(*pattern)(size_t); member in struct:__anond924d30e0108
217 patterns[i] = (*tests[i].pattern)(REGEX_MAXSIZE);
229 "regcomp returned %d (%s) for pattern %zu [%s]", e,
t_regex_att.c 58 fail(const char *pattern, const char *input, size_t lineno) {
60 "skipping failed test at line %zu (pattern=%s, input=%s)\n",
61 lineno, pattern, input);
65 bug(const char *pattern, const char *input, size_t lineno) {
172 if (strcmp(pattern, b[i].p) == 0 &&
174 fail(pattern, input, lineno);
405 char *name, *pattern, *input, *matches, *comment; local in function:att_test
435 ATF_REQUIRE_MSG((pattern = strtok(NULL, sep)) != NULL,
436 "Missing pattern at line %zu", lineno);
441 ATF_REQUIRE(strunvis(pattern, pattern) != -1)
    [all...]
t_regex_att.c 58 fail(const char *pattern, const char *input, size_t lineno) {
60 "skipping failed test at line %zu (pattern=%s, input=%s)\n",
61 lineno, pattern, input);
65 bug(const char *pattern, const char *input, size_t lineno) {
172 if (strcmp(pattern, b[i].p) == 0 &&
174 fail(pattern, input, lineno);
405 char *name, *pattern, *input, *matches, *comment; local in function:att_test
435 ATF_REQUIRE_MSG((pattern = strtok(NULL, sep)) != NULL,
436 "Missing pattern at line %zu", lineno);
441 ATF_REQUIRE(strunvis(pattern, pattern) != -1)
    [all...]
  /src/lib/libedit/
search.c 112 * Return if string matches pattern
159 * return True if the pattern matches the prefix
174 * Set the history seatch pattern
294 /* No can do if globbing characters in pattern */
481 * Use the old pattern, but wild-card it.
527 * Look for a pattern inside a line
533 wchar_t *pattern = el->el_search.patbuf; local in function:ce_search_line
536 ocp = &pattern[1];
540 ocp = pattern;
search.c 112 * Return if string matches pattern
159 * return True if the pattern matches the prefix
174 * Set the history seatch pattern
294 /* No can do if globbing characters in pattern */
481 * Use the old pattern, but wild-card it.
527 * Look for a pattern inside a line
533 wchar_t *pattern = el->el_search.patbuf; local in function:ce_search_line
536 ocp = &pattern[1];
540 ocp = pattern;
  /src/sys/arch/arm/arm/
disassem.c 125 u_int pattern; member in struct:arm32_insn
459 if ((insn & i_ptr->mask) == i_ptr->pattern) {
disassem.c 125 u_int pattern; member in struct:arm32_insn
459 if ((insn & i_ptr->mask) == i_ptr->pattern) {
  /src/usr.bin/grep/
grep.h 104 unsigned char *pattern; member in struct:__anon99a81e7e0108
130 extern char **pattern;
grep.h 104 unsigned char *pattern; member in struct:__anon99a81e7e0108
130 extern char **pattern;
  /src/usr.bin/ctags/
ctags.c 174 char pattern[140]; local in function:main
182 if ((sz = shquote(cmd, pattern,
183 sizeof pattern)) >= sizeof pattern)
187 "quoting pattern", cmd);
202 tname, pattern, tname) == -1)
ctags.c 174 char pattern[140]; local in function:main
182 if ((sz = shquote(cmd, pattern,
183 sizeof pattern)) >= sizeof pattern)
187 "quoting pattern", cmd);
202 tname, pattern, tname) == -1)
  /src/lib/libmenu/
menu.h 111 char *pattern; /* the pattern buffer */ member in struct:__menu
112 int plen; /* pattern buffer length */
113 int match_len; /* length of pattern matched */

Completed in 76 milliseconds

1 2 3