3
remove_after_underscore = re.compile("_.*");
4
space_remove = re.compile(" ");
5
leading_space_remove = re.compile("^ *");
6
replace_arch = re.compile(", const char\* arch");
7
replace_bracket = re.compile(" {");
8
replace_volk = re.compile("volk");
10
def strip_trailing(tostrip, stripstr):
11
lindex = tostrip.rfind(stripstr)
12
tostrip = tostrip[0:lindex] + tostrip[lindex:len(tostrip)].replace(stripstr, "");