Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
stitchEm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Franco (nextime) Lanza
stitchEm
Commits
f813fe4e
Commit
f813fe4e
authored
4 years ago
by
Wieland Morgenstern
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
support e+ float notation in pto parse
parent
a6b4e54f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
ptoParse.cpp
lib/src/core/defs/ptoParse.cpp
+6
-6
No files found.
lib/src/core/defs/ptoParse.cpp
View file @
f813fe4e
...
@@ -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
)
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment