Lines Matching refs:re
3 import sys, re;
115 fileid = re.sub("[-.]", "_", "__FOREIGN_%s__" % outfile.upper());
142 for line in re.findall("#define[^\n]+", input):
145 match = re.search(regex, line);
154 output += re.sub(regex, replace, line) + "\n";
158 input = re.sub("#define[^\n]+\n", "", input);
159 input = re.compile("/\*(.*?)\*/", re.S).sub("", input)
160 input = re.compile("\n\s*\n", re.S).sub("\n", input);
165 match = re.search(regex, input, re.S)
175 match = re.search(regex, input, re.S)
196 output = re.sub("\\b%s\\b" % define, replace, output);
200 output = re.sub("\\b(union\s+%s)\\b" % union, "\\1_%s" % arch, output);
204 output = re.sub("\\b(struct\s+%s)\\b" % struct, "\\1_%s" % arch, output);
205 output = re.sub("\\b(%s)_t\\b" % struct, "\\1_%s_t" % arch, output);
211 output = re.sub("\\b%s\\b" % type, inttypes[arch][type], output);