aboutsummaryrefslogtreecommitdiff
path: root/src/support
diff options
context:
space:
mode:
authorAdrian Kummerländer2014-05-28 22:09:50 +0200
committerAdrian Kummerländer2014-05-28 22:09:50 +0200
commit52b60c1a8c23f11ab18fad06e0957490c7436e0a (patch)
tree300c1ccd387a2008ffab90e9b856f219528cb232 /src/support
parent5859cb6af4a5136a96971c47e41e6195007ef944 (diff)
downloadInputXSLT-52b60c1a8c23f11ab18fad06e0957490c7436e0a.tar
InputXSLT-52b60c1a8c23f11ab18fad06e0957490c7436e0a.tar.gz
InputXSLT-52b60c1a8c23f11ab18fad06e0957490c7436e0a.tar.bz2
InputXSLT-52b60c1a8c23f11ab18fad06e0957490c7436e0a.tar.lz
InputXSLT-52b60c1a8c23f11ab18fad06e0957490c7436e0a.tar.xz
InputXSLT-52b60c1a8c23f11ab18fad06e0957490c7436e0a.tar.zst
InputXSLT-52b60c1a8c23f11ab18fad06e0957490c7436e0a.zip
Moved input trimming into XObjectValue namespace
* std::string specialization of "get" template method * replaces FunctionTransform local input trimming implemented in 5859cb6
Diffstat (limited to 'src/support')
-rw-r--r--src/support/tuple/xobject_value.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/support/tuple/xobject_value.cc b/src/support/tuple/xobject_value.cc
index fac4d96..cdeb9c6 100644
--- a/src/support/tuple/xobject_value.cc
+++ b/src/support/tuple/xobject_value.cc
@@ -1,5 +1,7 @@
#include "xobject_value.h"
+#include <boost/algorithm/string.hpp>
+
#include <string>
#include "support/xalan_string.h"
@@ -10,7 +12,7 @@ namespace XObjectValue {
template <>
std::string get<std::string>(const xalan::XObjectPtr& ptr) {
- return toString(ptr->str());
+ return boost::trim_copy(toString(ptr->str()));
}
template <>