1
0

Ignore whitespace only lines in brewing and furnace recipes (#4332)

This commit is contained in:
peterbell10
2019-06-11 13:39:44 +01:00
committed by GitHub
parent 52e6543ba5
commit 9dc1343bda
4 changed files with 19 additions and 9 deletions

View File

@@ -1071,3 +1071,11 @@ bool StringToFloat(const AString & a_String, float & a_Num)
return true;
}
bool IsOnlyWhitespace(const AString & a_String)
{
return std::all_of(a_String.cbegin(), a_String.cend(), isspace);
}