summaryrefslogtreecommitdiff
path: root/src/core/common/Utils.cpp
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-02-22 22:59:18 +0100
committerAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-02-22 22:59:18 +0100
commit6d59aa6bff5ee69ca8afaaf34227a33f0fb9d145 (patch)
treea4e985bf0cd808e14d45a92e3627b9c3e2812ea4 /src/core/common/Utils.cpp
parent255362d5f815ca0e04e18518bb3629d241af5117 (diff)
Moved implementation of collapse to Utils, providing same interface for collapse and trim
Diffstat (limited to 'src/core/common/Utils.cpp')
-rw-r--r--src/core/common/Utils.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/core/common/Utils.cpp b/src/core/common/Utils.cpp
index f8b53c6..a77951e 100644
--- a/src/core/common/Utils.cpp
+++ b/src/core/common/Utils.cpp
@@ -21,7 +21,6 @@
#include <string>
#include "Utils.hpp"
-#include "WhitespaceHandler.hpp"
namespace ousia {
@@ -115,13 +114,6 @@ std::string Utils::trim(const std::string &s)
return s.substr(bounds.first, bounds.second - bounds.first);
}
-std::string Utils::collapse(const std::string &s)
-{
- CollapsingWhitespaceHandler h;
- appendToWhitespaceHandler(h, s, 0);
- return h.toString();
-}
-
bool Utils::startsWith(const std::string &s, const std::string &prefix)
{
return prefix.size() <= s.size() && s.substr(0, prefix.size()) == prefix;