Searched defs:re (Results 1 - 25 of 51) sorted by relevance

123

/osnet-11/usr/src/cmd/perl/5.8.4/distrib/ext/re/
H A Dre.pm1 package re; package
7 re - Perl pragma to alter regular expression behaviour
11 use re 'taint';
15 use re 'eval';
19 no re 'taint'; # the default
22 no re 'eval'; # the default
26 use re 'debug'; # NOT lexically scoped (as others are)
30 use re 'debugcolor'; # same as 'debug', but with colored output
37 When C<use re 'taint'> is in effect, and a tainted string is the target
43 When C<use re 'eva
[all...]
/osnet-11/usr/src/tools/onbld/Checks/
H A DKeywords.py34 import re, sys namespace
37 ident = re.compile(r'((\%Z\%(\%M\%)\s+\%I\%|\%W\%)\s+\%E\% SMI)')
44 anykword = re.compile(r'%[A-ILMP-UWYZ]%')
H A DMapfile.py41 import re, sys, CmtBlk namespace
54 CmtRE = re.compile(r'#.*$')
55 LeadingWSRE = re.compile(r'^\s+')
56 VersionRE = re.compile(r'^\$mapfile_version\s+2\s*$')
77 SymVerRE = re.compile(r'^\s*symbol_version\s+', re.IGNORECASE)
H A DCmtBlk.py32 import re, sys namespace
67 StartRE = re.compile(r'^[%s ]*%s' % (CmntChrs, StartText))
68 EndRE = re.compile(r'^[%s ]*%s' % (CmntChrs, EndText))
94 # Check for no comment block, warn if we're not being lenient
H A DComments.py35 import re, sys namespace
38 arcre = re.compile(r'^([A-Z][A-Z]*ARC[/ \t][12]\d{3}/\d{3}) (.*)$')
39 bugre = re.compile(r'^(\d{7}) (.*)$')
52 return re.sub(r'^([A-Z][A-Z]*ARC)[/ \t]', '\\1 ', caseid)
66 bugnospcre = re.compile(r'^(\d{7})([^ ].*)')
67 ignorere = re.compile(r'^(Portions contributed by |Contributed by |back[ -]?out )')
115 arc, case = re.split('[/ \t]', match.group(1), 1)
144 if not re.search(r'^' + re.escape(synopsis) +
166 # trailing (fix nit)-type comment, and re
[all...]
H A DCopyright.py36 import time, re, sys namespace
45 oldcopyright = re.compile(r'Copyright \(c\) .* Sun Microsystems, Inc\.')
48 oldcopyright1 = re.compile(r'Copyright .* by Sun Microsystems, Inc\.')
51 suncopyright = re.compile(r'Copyright ([\d, -]+) Sun Microsystems, Inc\.' +
58 goodcopyright = re.compile(r'Copyright \(c\) (\d\d\d\d, )?(\d\d\d\d)(,)? ' +
H A DHdrChk.py70 import re, os, sys namespace
109 if self.lenient and re.search(r'^\s*//', line):
113 if not re.search(r'^\s*/\*', line):
116 while not re.search(r'\*/', line):
123 if re.search(r'Copyright (?!\[yyyy\])', line):
127 if re.search(r'Copyright (?!\[yyyy\])', line):
152 IDENT = re.compile(r'(%s)' % '|'.join(idents))
186 match = re.search(r'^#ifndef\s([a-zA-Z0-9_]+)$', line)
205 if not re.search(r'^_.*%s[_]?$' % guardname, guard):
211 if not re
[all...]
H A DRti.py40 import re, os, sys namespace
43 opensolarisGateRe = re.compile(r'.*osol[0-9]+-sust$')
44 patchGateRe = re.compile(r'.*-patch.*')
45 updateGateRe = re.compile(r'.*update.*')
46 s11uxGateRe = re.compile(r'.*on11u.*')
47 oseGateRe = re.compile(r'.*onose[0-9]+-sust.*')
48 sruGateRe = re.compile(r'.*sru.*')
49 testGateRe = re.compile(r'.*-(stc2|test)$')
H A DDbLookups.py35 import re namespace
102 metaHtmlRe = re.compile(r'^<meta name="([^"]+)" content="([^"]*)">$')
223 # else we're off-swan and querying via boo, which we can
335 returnCodeRe = re.compile(r'.*RETURN_CODE=(\d+)')
/osnet-11/usr/src/lib/libast/common/comp/
H A Dre_comp.c37 regex_t re; member in struct:__anon1126
57 regfree(&state.re);
59 if (!(r = regcomp(&state.re, pattern, REG_LENIENT|REG_NOSUB|REG_NULL)))
65 regerror(r, &state.re, state.error, sizeof(state.error));
73 switch (regexec(&state.re, subject, 0, NiL, 0))
H A Dfnmatch.c57 regex_t re; local
65 if (!(reflags = regcomp(&re, pattern, reflags)))
67 reflags = regexec(&re, subject, 1, &match, 0);
68 regfree(&re);
73 else if (!(reflags = regcomp(&re, pattern, reflags|REG_RIGHT)))
75 reflags = regexec(&re, subject, 0, NiL, 0);
76 regfree(&re);
H A Dregexp.c36 regex_t re; member in struct:__anon1128
55 _re_comp(regexp_t* re, const char* pattern, char* handle, unsigned int size) argument
65 n = regcomp(&env->re, pattern, REG_LENIENT|REG_NULL);
89 re->re_nbra = env->re.re_nsub;
94 _re_exec(regexp_t* re, const char* subject, const char* handle, int anchor) argument
98 regmatch_t match[elementsof(re->re_braslist)+1];
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
[all...]
H A Dregcmp.c39 regex_t re; member in struct:__anon1127
51 register Regex_t* re = (Regex_t*)handle; local
53 if (data || (size = roundof(size, ALIGN_BOUND2)) > (re->buf + re->size - re->cur))
55 data = (void*)re->cur;
56 re->cur += size;
64 register Regex_t* re; local
154 re = 0;
158 if ((n += INC) > TOT || !(re
185 register Regex_t* re; local
[all...]
H A Dregexp.h79 _re_read(register regexp_t* re, const char* instring, char* ep, const char* endbuf, int seof) argument
89 re->re_nodelim = 0;
95 re->re_nodelim = 1;
97 if (!re->re_sed && !prev)
107 if (re->re_sed)
110 re->re_nodelim = 1;
121 if (c = _re_comp(re, _re_putc(0), ep, (char*)endbuf - ep))
/osnet-11/usr/src/lib/libast/common/string/
H A Dstrmatch.c80 register regex_t* re; local
124 if (!(re = regcache(p, reflags, NiL)))
132 if (regexec(re, b, n, matchstate.match, reflags & ~(REG_MINIMAL|REG_SHELL_GROUP|REG_LEFT|REG_RIGHT|REG_ICASE)))
136 i = re->re_nsub;
/osnet-11/usr/src/grub/grub2/util/
H A Dimport_unicode.py19 import re namespace
28 line = re.sub ("#.*$", "", line)
161 line = re.sub ("#.*$", "", line)
H A Dimport_gcry.py19 import re namespace
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):
144 if not re.search (";", line) is None:
152 if not re.search (" *};", line) is None:
156 s = re.search (" *\"([A-Z0-9_a-z]*)\"", line)
162 if not re
[all...]
/osnet-11/usr/src/lib/libast/common/regex/
H A Dregcache.c32 #define CACHE 8 /* default # cached re's */
40 regex_t re; member in struct:Cache_s
70 regfree(&matchstate.cache[i]->re);
75 * return regcomp() compiled re for pattern and reflags
167 regfree(&cp->re);
183 if (i = regcomp(&cp->re, pattern, reflags))
197 return &cp->re;
/osnet-11/usr/src/lib/libpp/common/
H A Dppexpr.c114 regex_t re; local
129 else if ((c = regcomp(&re, pp.token, REG_AUGMENTED|REG_LENIENT|REG_NULL)) || (c = regexec(&re, tmp, NiL, 0, 0)) && c != REG_NOMATCH)
130 regfatal(&re, 4, c);
134 regfree(&re);
H A Dppcontrol.c39 regex_t re; member in struct:edit
45 regex_t re; member in struct:map
156 * return symbol pointer for next token macro (re)definition
527 if (!(i1 = regexec(&map->re, p, elementsof(match), match, 0)))
536 regfatal(&map->re, 4, i1);
551 if (!(i0 = regexec(&edit->re, p, elementsof(match), match, 0)))
554 if (i0 = regsubexec(&edit->re, p, elementsof(match), match))
555 regfatal(&edit->re, 4, i0);
556 p = edit->re.re_sub->re_buf;
557 if (edit->re
[all...]
/osnet-11/usr/src/lib/pybootmgmt/common/bootmgmt/backend/loader/
H A Dmenulst.py33 import re namespace
84 argv = [v[0] for v in re.compile(pattern).findall(args)]
263 # We're guaranteed to always have a character
279 for semantic correctness. They're just stored for later
298 If an entry is active (if we're parsing after a title command),
347 argv = [v[0] for v in re.compile(pattern).findall(nextline)]
/osnet-11/usr/src/cmd/hal/hald/solaris/
H A Ddevinfo.c422 get_devlink(di_devlink_handle_t devlink_hdl, char *re, char *path) argument
426 (void) di_devlink_walk(devlink_hdl, re, path,
/osnet-11/usr/src/lib/libast/common/disc/
H A Dsfkeyprintf.c50 regex_t* re[2]; member in struct:__anon1132
289 if (fp->re[x])
290 regfree(fp->re[x]);
292 fp->re[x] = &fp->red[x];
293 if (regcomp(fp->re[x], f.next, REG_DELIMITED|REG_NULL))
295 f.next += fp->re[x]->re_npat;
296 if (regsubcomp(fp->re[x], f.next, NiL, 0, 0))
298 f.next += fp->re[x]->re_npat;
299 if (!regexec(fp->re[x], s, elementsof(match), match, 0) && !regsubexec(fp->re[
[all...]
/osnet-11/usr/src/lib/libast/common/misc/
H A Dfindlib.h66 regex_t re; member in struct:__anon1154
/osnet-11/usr/src/lib/libcmd/common/
H A Dexpr.c300 regex_t re; local
312 if (n = regcomp(&re, rp.str, REG_LEFT|REG_LENIENT))
313 regfatal(&re, ERROR_exit(2), n);
314 if (!(n = regexec(&re, cp, elementsof(match), match, 0)))
316 if (re.re_nsub > 0)
334 regfatal(&re, ERROR_exit(2), n);
335 else if (re.re_nsub)
340 regfree(&re);

Completed in 105 milliseconds

123