Lines Matching refs:i
51 def extract_copyright_at(lines, i): argument
52 hash = lines[i].startswith("#")
55 start = i
64 while i < len(lines):
65 if "*/" in lines[i]:
67 if hash and len(lines[i]) == 0:
69 …if "\t@(#)" in lines[i] or "\tfrom: @(#)" in lines[i] or "From: @(#)" in lines[i] or "from OpenBSD…
71 if "\tcitrus Id: " in lines[i]:
73 …if "\t$Citrus: " in lines[i] or "\t$OpenBSD: " in lines[i] or " $FreeBSD: " in lines[i] or "\t$Net…
75 if "$FreeBSD$" in lines[i] or "$Citrus$" in lines[i]:
78 if "Original version ID:" in lines[i]:
80 i += 1
82 end = i
118 return i
147 i = 0
148 while i < len(lines):
149 if "Copyright" in lines[i] and not "@(#) Copyright" in lines[i]:
150 i = extract_copyright_at(lines, i)
152 i += 1