Added logic to handle a different double quote character (this was supported in 16-bit)

This commit is contained in:
John Jenko 2013-11-04 20:08:25 +00:00
parent 0aa8af722a
commit 43178faf46

View File

@ -425,7 +425,7 @@ namespace XYPlots
char retval;
StringBuilder Lbuff = new StringBuilder();
retval = NextChar();
if (retval != '"')
if (retval != '"' && retval != '\x1C') // open double quote
MessageBox.Show("Double Quote not found", "String value syntax problem");
retval = NextChar();
while (retval != 0 && retval != '\n')
@ -433,6 +433,7 @@ namespace XYPlots
switch (retval)
{
case '"':
case '\x1D': // close double quote
retval = NextChar();
if (retval == ' ')
{
@ -476,7 +477,6 @@ namespace XYPlots
Buff = Buff.Replace("><", ">\r\n<");
// some data had cr/cr/nl, change to cr/nl
Buff = Buff.Replace("\r\r\n", "\r\n");
while ((ptr = Buff.IndexOf(">\r\n<", ptr)) > 0)
{
// blank out ">"