Lines Matching refs:r
9 end_pats = (r'This implementation just',
10 r'Synopsis of public',
11 r'The SPU must have',
12 r'This is a simple version',
13 r'This is a dummy',
14 r'stdio_ext\.h',
15 r'python script to',
16 r'libgen\.h',
17 r'Id:.*Exp',
18 r'sccs\.',
19 r'Tests gleaned',
20 r'tar\.h',
21 r'tzcalc_limits\.c',
22 r'dummy file',
23 r'Rearranged for general',
24 r'sincos',
25 r'POSIX',
26 r'Reentrant',
27 r'Copied',
28 r'These are',
29 r'creat',
30 r'ARM configuration',
31 r'Place holder',
32 r'local header',
33 r'GNU variant',
34 r'default reentrant',
35 r'A replacement',
36 r'The signgam',
37 r'dummy header',
38 r'Uniset',
39 r'wcsftime\.c',
40 r'month_lengths\.c',
41 r'Static instance',
42 r'Conversion is performed',
43 r'Common routine',
44 r'l64a')
46 end_pats_s = (r'FUNCTION',)
57 left_res = re.compile(r'^[^A-Za-z0-9]*(.*)')
58 right_res = re.compile(r'(.*)[ /*\t]$')
63 cpr_line = re.compile(r'copyright.*(20[0-2][0-9]|19[7-9][0-9])', re.I)
64 upper = re.compile(r'[A-Z]')
65 lower = re.compile(r'[a-z]')
66 modified = re.compile(r'Modified')
67 derived = re.compile(r'code is derived from software', re.I)
74 m = re.match(r'(.*<[^>]+>).*', line)
117 if re.match(r'^no support for.*', copyright):
121 if re.search(r'NetBSD', copyright):
123 if (re.search(r'Redistributions *(of)? *source +code', copyright) and
124 re.search(r'Redistributions +in +binary +form', copyright)):
125 if re.search(r'[tT]he +names? of', copyright):
129 if (re.search(r'University', copyright) and
130 re.search(r'California', copyright) and
131 re.search(r'Berkeley', copyright)):
133 if re.search(r'FreeBSD', copyright):
135 if (re.search(r'AGPL', copyright) or
136 re.search(r'Affero General Public License', copyright)):
137 if re.search(r'version 3', copyright):
140 if re.search(r'the GPL', copyright):
141 if re.search(r'version 2', copyright):
143 if re.search(r'version 3', copyright):
155 tog = re.compile(r'.*Open Group Base Specification', re.I | re.S)
156 m = re.compile(r'.*copyright.*', re.I | re.S)
191 …for lastcopy in re.finditer(r'copyright (\(c\))? *(19[7-9][0-9]|20[0-2][0-9])[^A-Z]*[A-Z][^\n]*', …
195 for para in re.finditer(r'\n\n', copyright, re.S):
199 for all in re.finditer(r'all rights reserved\.?', copyright, re.I | re.S):
203 para = re.search(r'\n\n', copyright, re.S)
204 all = re.search(r'all rights reserved\.?', copyright, re.I | re.S)
205 licensed = re.search(r'This ', copyright, re.I | re.S)
206 portions = re.search(r'Portions', copyright, re.I | re.S)
207 mod = re.search(r'modification', copyright, re.I | re.S)
208 perm = re.search(r'permission to', copyright, re.I | re.S)
209 public = re.search(r'public domain', copyright, re.I | re.S)
232 m = re.match(r'^[ \t]*\n[ \t]*\n*', copyright, re.I|re.S)
241 l = re.compile(r'^#[ \t]*(.*)$')
258 m = re.compile(r'.*copyright.*', re.I | re.S)
265 l = re.compile(r'^;;*[ \t]*(.*)$')
282 m = re.compile(r'.*copyright.*', re.I | re.S)
289 l = re.compile(r'^\.\\"[ \t]*(.*)$')
306 m = re.compile(r'.*copyright.*', re.I | re.S)
354 if re.match(r'.*\.t$', name):
356 if re.match(r'.*\.cct$', name):
358 if re.match(r'.*ChangeLog.*', name):
360 if re.match(r'.*COPYING.*', name):
362 if re.match(r'.*NEWS.*', name):
364 if re.match(r'.*MAINTAINERS', name):
366 if re.match(r'CODE_OF_CONDUCT.*', name):
368 if re.match(r'CONTRIBUTING.*', name):
371 … if re.match(r'.*\.[ch]$', name) or re.match(r'.*\.ld$', name) or re.match(r'.*\.[ch]\.in$', name):
373 elif re.match(r'.*\.[sS]$', name):
377 elif re.match(r'.*meson.*', name) or re.match(r'.*Makefile.*', name):
379 elif re.match(r'.*\.[123]$', name):
386 if re.search(r'troff', m):
388 elif re.search(r'C source', m):
390 elif (re.search(r'POSIX shell script', m) or
391 re.search(r'Bourne-Again shell script', m) or
392 re.search(r'Python script', m) or
393 re.search(r'Perl script', m) or
394 starts_with(r'#', name)):
405 if (file_contains(r'generated automatically', name) or
406 file_contains(r'automatically generated', name)):
462 for pat in (r'(.*)copyright(.*)',
463 r'(.*)©(.*)', r'(.*)\(c\)(.*)',
464 r'(.*) by (.*)',
465 r'(.*)all rights reserved\.?(.*)'):
470 if re.match(r'(19[89][0-9]|2[0-2][0-9][0-9]).*', line):