private ParseHeaderFileToDecompileDictionaries ( string rbhFile, string>.Dictionary |
||
rbhFile | string | |
tempDict | string>.Dictionary | |
return | void |
private void ParseHeaderFileToDecompileDictionaries(string[] rbhFile, Dictionary<uint, string> tempDict)
{
foreach (string s in rbhFile)
{
if (s.StartsWith("#define"))
{
int temp = 0;
string[] rbhLine = s.Split(' ');
bool success = Int32.TryParse(rbhLine[2], out temp);
if (success)
{
try
{
tempDict.Add(UInt32.Parse(rbhLine[2]), rbhLine[1].ToUpper());
}
catch
{
}
}
else
{
try
{
tempDict.Add(UInt32.Parse(ToDecimal(rbhLine[2])), rbhLine[1].ToUpper());
}
catch
{
}
}
}
}
}
Form1::ParseHeaderFileToDecompileDictionaries ( string rbhFile, string>.Dictionary |