From 850f33ac0ca6543de60929d781a85cb2a1702671 Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Sun, 25 Jan 2015 18:49:04 +0100 Subject: Formating --- src/core/common/Utils.hpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/core/common/Utils.hpp b/src/core/common/Utils.hpp index f6f5225..564c5e6 100644 --- a/src/core/common/Utils.hpp +++ b/src/core/common/Utils.hpp @@ -73,10 +73,7 @@ public: /** * Returns true if the given character is a whitespace character. */ - static bool isLinebreak(const char c) - { - return (c == '\n') || (c == '\r'); - } + static bool isLinebreak(const char c) { return (c == '\n') || (c == '\r'); } /** * Removes whitespace at the beginning and the end of the given string. @@ -93,11 +90,12 @@ public: * @param s is the container that should be trimmed. * @param f is a function that returns true for values that should be * removed. - * @return start and end index. Note that "end" points at the character beyond - * the end, thus "end" minus "start" + * @return start and end index. Note that "end" points at the character + * beyond the end, thus "end" minus "start" */ template - static std::pair trim(const T &s, Filter f) { + static std::pair trim(const T &s, Filter f) + { size_t start = 0; for (size_t i = 0; i < s.size(); i++) { if (!f(s[i])) { -- cgit v1.2.3