diff options
author | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-02-14 23:43:32 +0100 |
---|---|---|
committer | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-02-14 23:43:32 +0100 |
commit | ce4fd84a714d80859aa01bbca32a81302b93c4d7 (patch) | |
tree | 4de6d48f7c1fe0455bca9e3d4b81f69117397bcd /src/core/common/Utils.cpp | |
parent | c771577b9c7c7a3c1b019139ed132101add73cf9 (diff) |
Moved code for handling whitespaces to own header, including the "WhitespaceMode" enum
Diffstat (limited to 'src/core/common/Utils.cpp')
-rw-r--r-- | src/core/common/Utils.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/core/common/Utils.cpp b/src/core/common/Utils.cpp index 563fe2a..4005143 100644 --- a/src/core/common/Utils.cpp +++ b/src/core/common/Utils.cpp @@ -18,19 +18,12 @@ #include <algorithm> #include <cctype> -#include <limits> #include <string> #include "Utils.hpp" namespace ousia { -std::string Utils::trim(const std::string &s) -{ - std::pair<size_t, size_t> bounds = trim(s, Utils::isWhitespace); - return s.substr(bounds.first, bounds.second - bounds.first); -} - bool Utils::isIdentifier(const std::string &name) { bool first = true; |