Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Aland, Sebastian
amdis
Commits
bd3f3bbe
Commit
bd3f3bbe
authored
Jun 03, 2011
by
Praetorius, Simon
Browse files
Initfile parser - small changes
parent
cce80ff0
Changes
1
Hide whitespace changes
Inline
Side-by-side
AMDiS/src/Initfile.h
View file @
bd3f3bbe
...
...
@@ -91,14 +91,14 @@ namespace AMDiS {
curDelim
=
checkDelim
(
val
,
delims
);
pos
=
val
.
find
(
delims
[
curDelim
],
oldPos
);
while
(
pos
!=
std
::
string
::
npos
)
{
std
::
string
curWord
=
val
.
substr
(
oldPos
,
pos
-
1
);
std
::
string
curWord
=
val
.
substr
(
oldPos
,
pos
-
oldPos
);
oldPos
=
pos
+
1
;
convert
(
curWord
,
swap
);
c
.
push_back
(
swap
);
pos
=
val
.
find
(
delims
[
curDelim
],
oldPos
);
}
//last entry
std
::
string
curWord
=
val
.
substr
(
oldPos
,
val
.
length
()
-
oldPos
-
1
);
std
::
string
curWord
=
val
.
substr
(
oldPos
,
val
.
length
()
-
1
-
oldPos
);
convert
(
curWord
,
swap
);
c
.
push_back
(
swap
);
}
catch
(
NoDelim
nd
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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