diff options
author | peterbell10 <peterbell10@live.co.uk> | 2019-06-11 14:39:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-11 14:39:44 +0200 |
commit | 9dc1343bda0592f2d27bb216eb21fdec97f73945 (patch) | |
tree | 21124243b854cfbd37cdec70a20e4505deac9f3b /src/StringUtils.cpp | |
parent | Respect return value of cLuaWindow's OnClicked handler (#4322) (diff) | |
download | cuberite-9dc1343bda0592f2d27bb216eb21fdec97f73945.tar cuberite-9dc1343bda0592f2d27bb216eb21fdec97f73945.tar.gz cuberite-9dc1343bda0592f2d27bb216eb21fdec97f73945.tar.bz2 cuberite-9dc1343bda0592f2d27bb216eb21fdec97f73945.tar.lz cuberite-9dc1343bda0592f2d27bb216eb21fdec97f73945.tar.xz cuberite-9dc1343bda0592f2d27bb216eb21fdec97f73945.tar.zst cuberite-9dc1343bda0592f2d27bb216eb21fdec97f73945.zip |
Diffstat (limited to 'src/StringUtils.cpp')
-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); +} |