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( ...@@ -538,8 +538,8 @@ Potential<ReaderInputDefinition> ReaderInputDefinition::parseFromPtoLine(
} }
break; break;
default: default:
//[0-9.eE] //[0-9.eE+-]
if (!(('0' <= *lp && *lp <= '9') || *lp == 'e' || *lp == 'E' || *lp == '.' || *lp == '-')) { if (!(('0' <= *lp && *lp <= '9') || *lp == 'e' || *lp == 'E' || *lp == '.' || *lp == '-' || *lp == '+')) {
char c = *lp; char c = *lp;
*lp = 0; *lp = 0;
switch (state) { switch (state) {
...@@ -758,8 +758,8 @@ Potential<InputDefinition> InputDefinition::parseFromPtoLine(char* line, ...@@ -758,8 +758,8 @@ Potential<InputDefinition> InputDefinition::parseFromPtoLine(char* line,
} }
break; break;
default: default:
//[0-9.eE] //[0-9.eE+-]
if (!(('0' <= *lp && *lp <= '9') || *lp == 'e' || *lp == 'E' || *lp == '.' || *lp == '-')) { if (!(('0' <= *lp && *lp <= '9') || *lp == 'e' || *lp == 'E' || *lp == '.' || *lp == '-' || *lp == '+')) {
char c = *lp; char c = *lp;
*lp = 0; *lp = 0;
switch (state) { switch (state) {
...@@ -1062,8 +1062,8 @@ Status PanoDefinition::readParams(char* line) { ...@@ -1062,8 +1062,8 @@ Status PanoDefinition::readParams(char* line) {
} }
break; break;
default: default:
//[0-9.eE] //[0-9.eE+-]
if (!(('0' <= *lp && *lp <= '9') || *lp == 'e' || *lp == 'E' || *lp == '.' || *lp == '-')) { if (!(('0' <= *lp && *lp <= '9') || *lp == 'e' || *lp == 'E' || *lp == '.' || *lp == '-' || *lp == '+')) {
char c = *lp; char c = *lp;
*lp = 0; *lp = 0;
switch (state) { 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