Lines Matching refs:i
52 def extract_copyright_at(lines, i): argument
53 hash = lines[i].startswith("#")
56 start = i
65 while i < len(lines):
66 if "*/" in lines[i]:
68 if hash and len(lines[i]) == 0:
70 …if "\t@(#)" in lines[i] or "\tfrom: @(#)" in lines[i] or "From: @(#)" in lines[i] or "from OpenBSD…
72 if "\tcitrus Id: " in lines[i]:
74 …if "\t$Citrus: " in lines[i] or "\t$OpenBSD: " in lines[i] or " $FreeBSD: " in lines[i] or "\t$Net…
76 if "$FreeBSD$" in lines[i] or "$Citrus$" in lines[i]:
79 if "Original version ID:" in lines[i]:
81 i += 1
83 end = i
117 return i
146 i = 0
147 while i < len(lines):
148 if "Copyright" in lines[i] and not "@(#) Copyright" in lines[i]:
149 i = extract_copyright_at(lines, i)
151 i += 1