Changed how XYPlot data is handled for processing VCSummer data

This commit is contained in:
Rich 2013-06-11 18:48:58 +00:00
parent bf9a9bcc9e
commit 9c98f8bb48

View File

@ -331,7 +331,9 @@ namespace XYPlots
private int getint() private int getint()
{ {
int retval; int retval;
retval = Convert.ToInt32(NextPiece(), 10); string np = NextPiece();
np = Regex.Replace(np, "[^0-9]", "");
retval = Convert.ToInt32(np, 10);
return retval; return retval;
} }
// A 'special' isWhiteSpaceDelta, NextPieceDelta, and getdoubleDelta was added because Wolf Creek // A 'special' isWhiteSpaceDelta, NextPieceDelta, and getdoubleDelta was added because Wolf Creek
@ -459,6 +461,7 @@ namespace XYPlots
// some data only had carriage return, replace these with cr/nl so that following code // some data only had carriage return, replace these with cr/nl so that following code
// will work // will work
Buff = Buff.Replace(">\r<", ">\r\n<"); Buff = Buff.Replace(">\r<", ">\r\n<");
Buff = Buff.Replace("><", ">\r\n<");
// some data had cr/cr/nl, change to cr/nl // some data had cr/cr/nl, change to cr/nl
Buff = Buff.Replace("\r\r\n", "\r\n"); Buff = Buff.Replace("\r\r\n", "\r\n");