Skip to content
Snippets Groups Projects
Commit 57e1b20d authored by Tom Fischer's avatar Tom Fischer
Browse files

[BL] Impl. helper function containsKeyword.

parent d87fa07f
No related branches found
No related tags found
No related merge requests found
......@@ -59,6 +59,17 @@ getParenthesizedString(std::string const& in,
pos_curly_brace_close - (pos_curly_brace_open + 1)),
pos_curly_brace_open, pos_curly_brace_close);
}
std::string containsKeyword(std::string const& str, std::string const& keyword)
{
auto const position = str.find(keyword);
if (position != std::string::npos)
{
return str.substr(0, position);
}
return "";
}
std::string constructFileName(std::string const& prefix,
int const process_id,
int const timestep,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment