summaryrefslogtreecommitdiffstats
path: root/src/StringUtils.h
diff options
context:
space:
mode:
authorpeterbell10 <peterbell10@live.co.uk>2019-06-11 14:39:44 +0200
committerGitHub <noreply@github.com>2019-06-11 14:39:44 +0200
commit9dc1343bda0592f2d27bb216eb21fdec97f73945 (patch)
tree21124243b854cfbd37cdec70a20e4505deac9f3b /src/StringUtils.h
parentRespect return value of cLuaWindow's OnClicked handler (#4322) (diff)
downloadcuberite-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 '')
-rw-r--r--src/StringUtils.h3
1 files changed, 3 insertions, 0 deletions
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);
+