/osnet-11/usr/src/lib/libast/common/regex/ |
H A D | regexec.c | 36 regexec(const regex_t* p, const char* s, size_t nmatch, regmatch_t* match, regflags_t flags) argument 41 int m = match->rm_so; 44 if (!(r = regnexec(p, s + m, match->rm_eo - m, nmatch, match, flags)) && m > 0) 45 for (e = match + nmatch; match < e; match++) 46 if (match->rm_so >= 0) 48 match->rm_so += m; 49 match [all...] |
H A D | regsub.c | 35 subold(register Sfio_t* dp, const char* op, register const char* sp, size_t nmatch, register regmatch_t* match, register regflags_t flags, int sre) argument 210 s = (char*)op + match[c].rm_so; 211 e = (char*)op + match[c].rm_eo; 242 regsub(const regex_t* p, Sfio_t* dp, const char* op, const char* sp, size_t nmatch, regmatch_t* match, regflags_t flags) argument 256 sfwrite(dp, op, match->rm_eo); 259 sfwrite(dp, op, match->rm_so); 260 if (r = subold(dp, op, sp, nmatch, match, flags, sre)) 263 op += match->rm_eo; 264 } while ((m > 0 || (flags & REG_SUB_ALL)) && !(r = regexec(p, op, nmatch, match, p->env->flags|(match [all...] |
H A D | regsubexec.c | 71 sub(const regex_t* p, register regsub_t* b, const char* ss, register regsubop_t* op, size_t nmatch, register regmatch_t* match) argument 86 if ((c = match[op->off].rm_so) < 0) 89 if ((c = match[op->off].rm_eo) < 0) 148 regsubexec(const regex_t* p, const char* s, size_t nmatch, regmatch_t* match) argument 165 PUTS(p, b, s, match->rm_eo, return fatal(p->env->disc, c, NiL)); 168 PUTS(p, b, s, match->rm_so, return fatal(p->env->disc, c, NiL)); 169 if (!c && (c = sub(p, b, s, b->re_ops, nmatch, match))) 172 s += match->rm_eo; 175 if (c = regnexec(p, s, e - s, nmatch, match, p->env->flags|(match [all...] |
/osnet-11/usr/src/lib/libast/common/path/ |
H A D | pathrepl.c | 27 * in place replace of first occurrence of /match/ with /replace/ in path 36 pathrepl(char* path, const char* match, const char* replace) argument 38 return pathrepl_20100601(path, PATH_MAX, match, replace); 46 pathrepl_20100601(register char* path, size_t size, const char* match, register const char* replace) argument 48 register const char* m = match; 52 if (!match) 53 match = ""; 56 if (streq(match, replace)) 89 m = match;
|
H A D | pathgetlink.c | 60 int match = 0; local 72 if (match) 82 if (!match && t < &tmp[sizeof(tmp) - univ_size + 1]) for (n = 0; n < UNIV_MAX; n++) 89 match = 1;
|
/osnet-11/usr/src/tools/onbld/Checks/ |
H A D | Comments.py | 42 return arcre.match(comment) 45 return bugre.match(comment) 92 match = bugre.search(com) 93 if match: 94 if match.group(1) not in bugs: 95 bugs[match.group(1)] = [] 96 bugs[match.group(1)].append(match.group(2)) 104 match = bugnospcre.search(com) 105 if match [all...] |
H A D | Keywords.py | 67 match = anykword.findall(line) 68 if match: 71 (filename, lineno, ', '.join(match)))
|
H A D | Copyright.py | 106 match = goodcopyright.search(line) 107 if match: 109 # following a copyright match 114 if match.group(2) != year: 117 (match.group(2), year), filename, lineno) 120 if match.group(3) != ',': 125 if match.group(4) != ' ':
|
H A D | Mapfile.py | 64 if not VersionRE.match(line): 86 if SymVerRE.match(line):
|
/osnet-11/usr/src/lib/libast/common/string/ |
H A D | strmatch.c | 29 * match shell file patterns 63 regmatch_t* match; member in struct:State_s 68 * subgroup match 69 * 0 returned if no match 71 * match group begin offsets are even elements of sub 72 * match group end offsets are odd elements of sub 128 if (!(matchstate.match = newof(matchstate.match, regmatch_t, n, 0))) 132 if (regexec(re, b, n, matchstate.match, reflags & ~(REG_MINIMAL|REG_SHELL_GROUP|REG_LEFT|REG_RIGHT|REG_ICASE))) 140 *sub++ = matchstate.match[ 168 int match[2]; local [all...] |
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/lib/ |
H A D | complete.pl | 47 local($prompt, @cmp_list, $return, @match, $l, $test, $cmp, $r); 63 @match = grep(/^$return/, @cmp_lst); 64 $l = length($test = shift(@match)); 65 unless ($#match < 0) { 66 foreach $cmp (@match) {
|
/osnet-11/usr/src/lib/libast/common/comp/ |
H A D | regexp.c | 98 regmatch_t match[elementsof(re->re_braslist)+1]; local 100 if (regexec(&env->re, subject, elementsof(match), match, 0) || anchor && match[0].rm_so) 102 re->re_loc1 = (char*)subject + match[0].rm_so; 103 re->re_loc2 = (char*)subject + match[0].rm_eo; 106 re->re_braslist[n-1] = (char*)subject + match[n].rm_so; 107 re->re_braelist[n-1] = (char*)subject + match[n].rm_eo;
|
H A D | fnmatch.c | 58 regmatch_t match; local 67 reflags = regexec(&re, subject, 1, &match, 0); 69 if (!reflags && (reflags = subject[match.rm_eo]))
|
/osnet-11/usr/src/lib/libslp/javalib/com/sun/slp/ |
H A D | AttributePattern.java | 133 // returning true if they match. 135 public boolean match(AttributeString str) { method in class:AttributePattern 139 boolean match = true; 160 match = false; 171 // have a match. 176 // a pure wildcard, then we *do* have a match. 188 match = false; 199 // The pattern string must match the beginning part of the 207 match = false; 224 return match; [all...] |
/osnet-11/usr/src/lib/sun_fc/common/ |
H A D | HandleNPIVPort.h | 55 bool match(uint64_t portWWN); 56 bool match(int index);
|
H A D | HandlePort.h | 58 bool match(uint64_t portWWN); 59 bool match(int index);
|
/osnet-11/usr/src/grub/grub2/grub-core/normal/ |
H A D | completion.c | 35 static char *match; variable 65 match = grub_strdup (completion); 66 if (! match) 73 print_func (match, type, 0); 79 char *s = match; 91 s = match + grub_getend (match, s); 297 match = grub_strdup ("/"); 298 if (! match) 401 match [all...] |
/osnet-11/usr/src/lib/libzfs_jni/common/ |
H A D | libzfs_jni_diskmgt.c | 230 nvpair_t *match = zjni_nvlist_walk_nvpair( local 233 if (match == NULL || nvpair_value_uint32(match, &status)) { 452 nvpair_t *match = zjni_nvlist_walk_nvpair( local 454 if (match == NULL || nvpair_value_uint64(match, size)) { 457 match = zjni_nvlist_walk_nvpair( 459 if (match == NULL || nvpair_value_uint64(match, size)) { 467 match 498 nvpair_t *match; local 557 nvpair_t *match = zjni_nvlist_walk_nvpair( local [all...] |
/osnet-11/usr/src/lib/pam_modules/user_policy/ |
H A D | user_policy.c | 52 char *match; 54 if ((match = kva_match(kva, (char *)ctxt)) != NULL) { 55 if (*match != '/') { 58 if ((strstr(match, "/") != NULL) || 59 (strlen(match) >= MAXNAMELEN) || 60 (*match == '\0')) { 63 "invalid path supplied: '%s'", match); 67 match); 70 *(char **)result = strdup(match);
|
/osnet-11/usr/src/grub/grub2/util/ |
H A D | import_gcry.py | 94 if re.match ("(Manifest|Makefile\.am|ac\.c|cipher\.c|hash-common\.c|hmac-tests\.c|md\.c|pubkey\.c)$", cipher_file): 98 if re.match ("Makefile\.in$", cipher_file): 101 if re.match (".*\.[ch]$", cipher_file): 102 isc = re.match (".*\.c$", cipher_file) 137 if re.match (".*-glue$", modname): 179 m = re.match ("(static byte|static unsigned char) (weak_keys_chksum)\[[0-9]*\] =", line) 193 if not re.match ("(run_selftests|selftest|_gcry_aes_c.._..c|_gcry_[a-z0-9]*_hash_buffer|tripledes_set2keys|do_tripledes_set_extra_info|_gcry_rmd160_mixblock|serpent_test)", line) is None: 195 if not re.match ("serpent_test", line) is None: 197 fname = re.match ("[a-zA-Z0-9_]*", line).group () 207 m = re.match ("# *includ [all...] |
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/t/op/ |
H A D | regexp.t | 13 # y expect a match 14 # n expect no match 24 # interpolating that string after the match, or start of error message. 76 eval "$study; \$match = (\$subject =~ m$pat) while \$c--; \$got = \"$repl\";"; 90 if ($match) { print "not ok $. ($study) $input => false positive\n"; next TEST } 93 if (!$match || $got ne $expect) { 94 print "not ok $. ($study) $input => `$got', match=$match\n";
|
/osnet-11/usr/src/cmd/ntfsprogs/ |
H A D | ntfscluster.h | 53 struct match { struct
|
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/krb5/keytab/ |
H A D | kt_findrealm.c | 29 * the components of a principal (princ) but match on any realm. When a 40 krb5_boolean match; local 55 match = krb5_principal_compare(context, ent.principal, princ); 60 if (match) {
|
/osnet-11/usr/src/lib/libc/port/gen/ |
H A D | getopt.c | 134 int match; /* nonzero if opt is matching part of optstring */ local 146 match = 1; 148 match = (*ip++ == *op++ && match); 149 if (match && *ip == ')' &&
|
H A D | getopt_long.c | 295 * The following macros are used to indicate the various match error 305 * Returns -1 if short_too is set and the option does not match long_options. 317 int match = GL_MATCH_NONE; local 336 continue; /* no match */ 345 /* exact match */ 346 match = i; 351 * a partial match of a single character. 357 * Control reaches here if there is a partial match. 358 * If it is the first partial match, then set "match" [all...] |