Commit f813fe4e authored by Wieland Morgenstern's avatar Wieland Morgenstern

support e+ float notation in pto parse

parent a6b4e54f
......@@ -538,8 +538,8 @@ Potential<ReaderInputDefinition> ReaderInputDefinition::parseFromPtoLine(
}
break;
default:
//[0-9.eE]
if (!(('0' <= *lp && *lp <= '9') || *lp == 'e' || *lp == 'E' || *lp == '.' || *lp == '-')) {
//[0-9.eE+-]
if (!(('0' <= *lp && *lp <= '9') || *lp == 'e' || *lp == 'E' || *lp == '.' || *lp == '-' || *lp == '+')) {
char c = *lp;
*lp = 0;
switch (state) {
......@@ -758,8 +758,8 @@ Potential<InputDefinition> InputDefinition::parseFromPtoLine(char* line,
}
break;
default:
//[0-9.eE]
if (!(('0' <= *lp && *lp <= '9') || *lp == 'e' || *lp == 'E' || *lp == '.' || *lp == '-')) {
//[0-9.eE+-]
if (!(('0' <= *lp && *lp <= '9') || *lp == 'e' || *lp == 'E' || *lp == '.' || *lp == '-' || *lp == '+')) {
char c = *lp;
*lp = 0;
switch (state) {
......@@ -1062,8 +1062,8 @@ Status PanoDefinition::readParams(char* line) {
}
break;
default:
//[0-9.eE]
if (!(('0' <= *lp && *lp <= '9') || *lp == 'e' || *lp == 'E' || *lp == '.' || *lp == '-')) {
//[0-9.eE+-]
if (!(('0' <= *lp && *lp <= '9') || *lp == 'e' || *lp == 'E' || *lp == '.' || *lp == '-' || *lp == '+')) {
char c = *lp;
*lp = 0;
switch (state) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment