From 9dc1343bda0592f2d27bb216eb21fdec97f73945 Mon Sep 17 00:00:00 2001 From: peterbell10 Date: Tue, 11 Jun 2019 13:39:44 +0100 Subject: Ignore whitespace only lines in brewing and furnace recipes (#4332) --- src/StringUtils.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/StringUtils.h') diff --git a/src/StringUtils.h b/src/StringUtils.h index 3751d9946..5fb45a879 100644 --- a/src/StringUtils.h +++ b/src/StringUtils.h @@ -148,6 +148,9 @@ extern AString StringsConcat(const AStringVector & a_Strings, char a_Separator); /** Converts a string into a float. Returns false if the conversion fails. */ extern bool StringToFloat(const AString & a_String, float & a_Num); +/** Returns true if only whitespace characters are present in the string */ +bool IsOnlyWhitespace(const AString & a_String); + -- cgit v1.2.3