summaryrefslogtreecommitdiff
path: root/src/core/common/Utils.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/common/Utils.hpp')
-rw-r--r--src/core/common/Utils.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/common/Utils.hpp b/src/core/common/Utils.hpp
index a88c716..fa3788a 100644
--- a/src/core/common/Utils.hpp
+++ b/src/core/common/Utils.hpp
@@ -71,6 +71,14 @@ public:
}
/**
+ * Returns true if the given string has a non-whitespace character.
+ *
+ * @param s is the string that should be checked.
+ * @return true if the string contains a non-whitespace character.
+ */
+ static bool hasNonWhitepaceChar(const std::string &s);
+
+ /**
* Returns true if the given character is a whitespace character.
*/
static bool isLinebreak(const char c) { return (c == '\n') || (c == '\r'); }