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

1234

/illumos-gate/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.py42 import re, sys namespace
56 CmtRE = re.compile(r'#.*$')
57 LeadingWSRE = re.compile(r'^\s+')
58 VersionRE = re.compile(r'^\$mapfile_version\s+2\s*$')
78 SymVerRE = re.compile(r'^\s*symbol_version\s+', re.IGNORECASE)
H A DCopyright.py31 import time, re, sys namespace
37 return re.search(r'Copyright (?!\[yyyy\])', line)
40 return re.search(r'Copyright.*\b%s\b' % time.strftime('%Y'), line)
H A DWsCheck.py23 import time, re, sys namespace
38 if re.search(r' \t', line):
41 if re.search(r'[ \t]$', line):
H A DCmtBlk.py33 import re, sys namespace
68 StartRE = re.compile(r'^[%s ]*%s' % (CmntChrs, StartText))
69 EndRE = re.compile(r'^[%s ]*%s' % (CmntChrs, EndText))
95 # Check for no comment block, warn if we're not being lenient
H A DComments.py39 import re, sys namespace
44 bugre = re.compile(r'^(\d{2,7}) (.*)$')
63 bugnospcre = re.compile(r'^(\d{2,7})([^ ].*)')
64 ignorere = re.compile(r'^(' +
147 if not re.search(r'^' + re.escape(synopsis) +
H A DHdrChk.py70 import re, os, sys namespace
110 if self.lenient and re.search(r'^\s*//', line):
114 if not re.search(r'^\s*/\*', line):
117 while not re.search(r'\*/', line):
153 IDENT = re.compile(r'(%s)' % '|'.join(idents))
187 match = re.search(r'^#ifndef\s([a-zA-Z0-9_]+)$', line)
206 if not re.search(r'^_.*%s[_]?$' % guardname, guard):
212 if not re.search(r'#define\s%s$' % guard, line):
247 match = re.search(r'^#include(.*)$', line)
253 if not lenient and not re
[all...]
H A DDbLookups.py37 import re namespace
H A DSpellCheck.py27 import re, sys namespace
266 regex = re.compile(r'\b%s\b' % (misspelling), re.IGNORECASE)
271 regex = re.compile(r'\b%s\b' % (alternate), re.IGNORECASE)
276 regex = re.compile(r'\b%s\b' % (alternate))
/illumos-gate/usr/src/lib/libc/port/locale/
H A Drunetype.c45 const _RuneEntry *base, *re; local
53 re = base + (lim >> 1);
54 if (re->__min <= c && c <= re->__max) {
55 if (re->__types)
56 return (re->__types[c - re->__min]);
58 return (re->__map);
59 } else if (c > re->__max) {
60 base = re
[all...]
H A Dnextwctype.c47 const _RuneEntry *base, *re; local
71 re = base + (lim >> 1);
72 if (re->__min <= wc && wc <= re->__max)
74 else if (wc > re->__max) {
75 base = re + 1;
83 if (re->__min <= wc && wc <= re->__max) {
84 if (re->__types != NULL) {
85 for (; wc <= re
[all...]
H A Dtowlower.c52 const _RuneEntry *base, *re; local
63 re = base + (lim >> 1);
64 if (re->__min <= c && c <= re->__max) {
65 return (re->__map + c - re->__min);
66 } else if (c > re->__max) {
67 base = re + 1;
/illumos-gate/usr/src/tools/onbld/Scm/
H A DIgnore.py30 import re namespace
33 RE_SYNTAX = re.compile(r'^syntax:\s*(.*)\s*$')
61 ignore_list.append(re.compile('.*' + fnmatch.translate(l)))
63 ignore_list.append(re.compile(l))
/illumos-gate/usr/src/cmd/vi/port/
H A Dex_re.h47 * There are three regular expressions here, the previous (in re),
49 * It would be possible to get rid of "re" by making it a stack parameter
52 var struct regexp *re; /* Last re */ variable in typeref:struct:regexp
53 var struct regexp *scanre; /* Last scanning re */
54 var struct regexp *subre; /* Last substitute re */
/illumos-gate/usr/src/lib/libast/common/comp/
H A Dre_comp.c37 regex_t re; member in struct:__anon2722
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:__anon2724
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...]
/illumos-gate/usr/src/cmd/lp/lib/filters/
H A Dregex.c47 char * re,
51 match (re, value)
52 register char * re;
66 ret = advance(value, re);
46 match( char * re, char * value ) argument
/illumos-gate/usr/src/cmd/devfsadm/
H A Dieee1394_link.c81 devfsadm_enumerate_t re[] = {"^1394/hba([0-9]+)$", 1, MATCH_ALL}; local
96 if (devfsadm_enumerate_int(p_path, 0, &buf, re, 1)) {
H A Ddcam1394_link.c102 devfsadm_enumerate_t re[1]; local
120 re[0].re = restring0;
121 re[0].subexp = 1;
122 re[0].flags = MATCH_ALL;
137 if (devfsadm_enumerate_int(p_path, 0, &buf, re, 1)) {
/illumos-gate/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;
/illumos-gate/usr/src/cmd/bc/
H A Dbc.y58 %type <iptr> slist, re, fprefix, cargs, eora, cons, constant, lora
162 | _IF CRS BLEV '(' re ')' stat
167 | _WHILE CRS '(' re ')' stat BLEV
173 | fprefix CRS re ';' e ')' stat BLEV
231 re : e EQ e label
/illumos-gate/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;
/illumos-gate/usr/src/cmd/mandoc/
H A Ddbm.h29 regex_t *re; member in struct:dbm_match
/illumos-gate/usr/src/tools/smatch/src/Documentation/sphinx/
H A Dcdoc.py51 import re namespace
121 m = re.match(r"^///\s+(.+)$", l) # /// ...
146 m = re.match(r"^@([\w-]*)(:?\s*)(.*)", l)
198 l = re.sub(r"@(\w+)", "**\\1**", l)
221 if re.search(r":$", desc[i]) and re.search(r"\S", desc[i+1]):

Completed in 89 milliseconds

1234