Lines Matching refs:line
152 for line in src:
153 if "<rules>" in line:
154 indent = GetIndent(line)
155 stripped = line.strip()
170 elif "</rules>" in line:
176 dest.write(GetIndent(line) + "]]></cr>\n")
185 if ("<reset" in line) or line.lstrip().startswith("<!--"):
189 if "<!--" in line and "-->" not in line:
191 if "-->" in line:
192 assert line.rstrip().endswith("-->")
196 if "<context>" in line:
201 if "<i>" in line:
202 line = line.replace("<i>", "").replace("<context>", "<i>")
203 elif "<t>" in line:
204 line = line.replace("<t>", "").replace("<context>", "<t>")
207 line = line.replace(xml, icu)
211 i = line.find("&#x")
213 limit = line.find(";", i + 3)
214 cp = line[i + 3:limit]
217 line = line[:i] + "\\u" + cp + line[limit + 1:]
228 comment_indent = GetIndent(line) # can be the empty string
233 if line.startswith(comment_indent):
234 if line[len(comment_indent)] in " \t":
236 line = comment_indent + "#" + line[len(comment_indent):]
239 line = comment_indent + "# " + line[len(comment_indent):]
242 line = line.lstrip()
243 if line:
244 line = comment_indent + "# " + line
246 line = comment_indent + "#\n"
252 line = partial + line.lstrip() + "\n"
256 partial = line.rstrip()
259 partial += line.strip()
263 if not partial: dest.write(line)