data++;
c = *data;
}
+ else if (data[1] == '\'')
+ {
+ data++;
+ c = *data;
+ }
else if (data[1] == 'n')
{
data++;
c = '\n';
}
+ else if (data[1] == '\\')
+ data++;
}
com_token[len++] = c;
}
// quoted string
for (data++;*data != '\'';data++)
{
- if (*data == '\\' && data[1] == '\'' )
- data++;
if (!*data || len >= (int)sizeof(com_token) - 1)
{
com_token[0] = 0;
*datapointer = NULL;
return false;
}
- com_token[len++] = *data;
+ c = *data;
+ if (*data == '\\')
+ {
+ if (data[1] == '"')
+ {
+ data++;
+ c = *data;
+ }
+ else if (data[1] == '\'')
+ {
+ data++;
+ c = *data;
+ }
+ else if (data[1] == 'n')
+ {
+ data++;
+ c = '\n';
+ }
+ else if (data[1] == '\\')
+ data++;
+ }
+ com_token[len++] = c;
}
com_token[len] = 0;
*datapointer = data+1;
*datapointer = NULL;
return false;
}
- com_token[len++] = *data;
+ c = *data;
+ if (*data == '\\')
+ {
+ if (data[1] == '"')
+ {
+ data++;
+ c = *data;
+ }
+ else if (data[1] == '\'')
+ {
+ data++;
+ c = *data;
+ }
+ else if (data[1] == 'n')
+ {
+ data++;
+ c = '\n';
+ }
+ else if (data[1] == '\\')
+ data++;
+ }
+ com_token[len++] = c;
}
com_token[len] = 0;
*datapointer = data;
data++;
c = *data;
}
+ else if (data[1] == '\'')
+ {
+ data++;
+ c = *data;
+ }
else if (data[1] == 'n')
{
data++;
c = '\n';
}
+ else if (data[1] == '\\')
+ data++;
}
com_token[len++] = c;
}
*datapointer = NULL;
return false;
}
- com_token[len++] = *data;
+ c = *data;
+ if (*data == '\\')
+ {
+ if (data[1] == '"')
+ {
+ data++;
+ c = *data;
+ }
+ else if (data[1] == '\'')
+ {
+ data++;
+ c = *data;
+ }
+ else if (data[1] == 'n')
+ {
+ data++;
+ c = '\n';
+ }
+ else if (data[1] == '\\')
+ data++;
+ }
+ com_token[len++] = c;
}
com_token[len] = 0;
*datapointer = data;