Searched refs:to_prefix (Results 1 – 1 of 1) sorted by relevance
/third_party/littlefs/scripts/ |
D | prefix.py | 21 def subn(from_prefix, to_prefix, name): argument 22 name, count1 = re.subn('\\b'+from_prefix, to_prefix, name) 23 name, count2 = re.subn('\\b'+from_prefix.upper(), to_prefix.upper(), name) 25 '-D'+to_prefix.upper(), name) 28 def main(from_prefix, to_prefix=None, files=None): argument 29 if not to_prefix: 30 from_prefix, to_prefix = DEFAULT_PREFIX, from_prefix 38 newname, namecount = subn(from_prefix, to_prefix, oldname) 47 line, n = subn(from_prefix, to_prefix, line)
|