Only check for DOS super/subscript on RO return values

This commit is contained in:
2009-09-01 20:15:54 +00:00
parent f3bb9786f0
commit 8cd80b3832
2 changed files with 5 additions and 4 deletions

View File

@@ -167,7 +167,7 @@ namespace DataLoader
if (DoCaret) s2 = s2.Replace("^", @"\u916");
//s2 = s2.Replace("^", @"\u916");
s2 = ConvertDOSSuperAndSubScripts(s2);
//s2 = ConvertDOSSuperAndSubScripts(s2);
s2 = ConvertFortranFormatToScienctificNotation(s2);
@@ -229,7 +229,7 @@ namespace DataLoader
{
start++;
}
else if (str[cnt] == 'E' && cnt > tstr)
else if ((cnt < str.Length -1) && (str[cnt] == 'E') && (cnt > tstr))
{
nbytes = (cnt - tstr); // don't include the 'E'
outstr += str.Substring(tstr, nbytes);
@@ -286,7 +286,7 @@ namespace DataLoader
return rtn + cnt;
}
private static string ConvertDOSSuperAndSubScripts(string instr)
public static string ConvertDOSSuperAndSubScripts(string instr)
{
string outstr = "";
string tstr = instr;