aboutsummaryrefslogtreecommitdiff
path: root/src/support/xalan_string.cc
blob: b89f08bcf001691b9ffc7985dbfad1288654f183 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include "xalan_string.h"

namespace InputXSLT {

std::string toString(const xalan::XalanDOMString& text) {
	xalan::CharVectorType castHelper;
	text.transcode(castHelper);

	return std::string(
		castHelper.begin(),
		castHelper.end() - 1
	);
}

xalan::XalanDOMString toString(const std::string& text) {
	return xalan::XalanDOMString(text.data());
}

}