diff options
Diffstat (limited to '')
-rw-r--r-- | src/StringUtils.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/StringUtils.cpp b/src/StringUtils.cpp index ca9d4b587..ec387437d 100644 --- a/src/StringUtils.cpp +++ b/src/StringUtils.cpp @@ -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); +} |