Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
9c60eb17
Commit
9c60eb17
authored
Mar 18, 2010
by
mattijs
Browse files
ENH: strip off comment lines
parent
9535bcf4
Changes
1
Hide whitespace changes
Inline
Side-by-side
applications/utilities/mesh/manipulation/setSet/setSet.C
View file @
9c60eb17
...
...
@@ -960,7 +960,14 @@ int main(int argc, char *argv[])
# endif
}
if
(
rawLine
.
empty
()
||
rawLine
[
0
]
==
'#'
)
// Strip off anything after #
string
::
size_type
i
=
rawLine
.
find_first_of
(
"#"
);
if
(
i
!=
string
::
npos
)
{
rawLine
=
rawLine
(
0
,
i
);
}
if
(
rawLine
.
empty
())
{
continue
;
}
...
...
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