mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
fix ESTRING search
This commit is contained in:
parent
5555eb195a
commit
80483f6dad
@ -74,19 +74,19 @@ def getStrings(filepath):
|
|||||||
content = file.read()
|
content = file.read()
|
||||||
|
|
||||||
srch = re.compile('[^E][CL]STRING\(([_a-zA-Z0-9]*)\)')
|
srch = re.compile('[^E][CL]STRING\(([_a-zA-Z0-9]*)\)')
|
||||||
modfuncs = srch.findall(content)
|
modStrings = srch.findall(content)
|
||||||
modfuncs = sorted(set(modfuncs))
|
modStrings = sorted(set(modStrings))
|
||||||
|
|
||||||
srch = re.compile('[^E][CL]STRING\(([_a-zA-Z0-9]*)\)')
|
srch = re.compile('E[CL]STRING\(([_a-zA-Z0-9]*),([_a-zA-Z0-9]*)\)')
|
||||||
exfuncs = srch.findall(content)
|
exStrings = srch.findall(content)
|
||||||
exfuncs = sorted(set(exfuncs))
|
exStrings = sorted(set(exStrings))
|
||||||
|
|
||||||
fileStrings = []
|
fileStrings = []
|
||||||
for func in modfuncs:
|
for localString in modStrings:
|
||||||
fileStrings.append("STR_ACE_{0}_{1}".format(selfmodule,func))
|
fileStrings.append("STR_ACE_{0}_{1}".format(selfmodule, localString))
|
||||||
|
|
||||||
# for exModule,func in exfuncs:
|
for (exModule, exString) in exStrings:
|
||||||
# fileStrings.append("STR_ACE_{0}_{1}".format(exModule, func))
|
fileStrings.append("STR_ACE_{0}_{1}".format(exModule, exString))
|
||||||
|
|
||||||
return fileStrings
|
return fileStrings
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user