/illumos-gate/usr/src/tools/onbld/Checks/ |
H A D | Keywords.py | 34 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 D | Mapfile.py | 41 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 D | CmtBlk.py | 32 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 D | Comments.py | 37 import re, sys namespace 41 bugre = re.compile(r'^(\d{2,7}) (.*)$') 60 bugnospcre = re.compile(r'^(\d{2,7})([^ ].*)') 61 ignorere = re.compile(r'^(' + 136 if not re.search(r'^' + re.escape(synopsis) +
|
H A D | Copyright.py | 31 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 D | DbLookups.py | 37 import re namespace
|
H A D | HdrChk.py | 70 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 D | SpellCheck.py | 26 import re, sys namespace 255 regex = re.compile(r'\b%s\b' % (misspelling), re.IGNORECASE) 260 regex = re.compile(r'\b%s\b' % (alternate), re.IGNORECASE)
|
/illumos-gate/usr/src/lib/libc/port/locale/ |
H A D | runetype.c | 45 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 D | nextwctype.c | 47 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 D | towlower.c | 52 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 D | Ignore.py | 30 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 D | ex_re.h | 47 * 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 D | re_comp.c | 37 regex_t re; member in struct:__anon2607 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 D | fnmatch.c | 57 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 D | regexp.c | 36 regex_t re; member in struct:__anon2609 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/devfsadm/ |
H A D | ieee1394_link.c | 81 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 D | dcam1394_link.c | 102 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/cmd/lp/lib/filters/ |
H A D | regex.c | 47 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/lib/libast/common/string/ |
H A D | strmatch.c | 80 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 D | bc.y | 58 %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/tools/ctf/dwarf/common/ |
H A D | dwarf_ranges.c | 90 struct ranges_entry * re = calloc(sizeof(struct ranges_entry),1); local 91 if(!re) { 103 READ_UNALIGNED(dbg,re->cur.dwr_addr1, 107 READ_UNALIGNED(dbg,re->cur.dwr_addr2 , 112 base = re; 113 last = re; 115 last->next = re; 116 last = re; 118 if(re->cur.dwr_addr1 == 0 && re [all...] |
/illumos-gate/usr/src/lib/libast/common/regex/ |
H A D | regcache.c | 32 #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/lib/libpp/common/ |
H A D | ppexpr.c | 114 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, 3, c); 134 regfree(&re);
|
/illumos-gate/usr/src/cmd/fm/fminject/common/ |
H A D | inj_cmds.c | 61 inj_randelem_t *re = inj_zalloc(sizeof (inj_randelem_t)); local 63 re->re_event = ev; 64 re->re_prob = prob; 66 return (re);
|