1 #ifndef UTILITIES_XERCES_STRING_UTILS_H
2 #define UTILITIES_XERCES_STRING_UTILS_H
4 #include <xercesc/util/XercesDefs.hpp>
5 #include <xercesc/util/XMLString.hpp>
8 #ifdef XERCES_CPP_NAMESPACE_USE
9 XERCES_CPP_NAMESPACE_USE
17 template<
class CharType >
28 std::unique_ptr< CharType, void (*)(CharType*) >
m_array;
43 inline unsigned int toUInt(XMLCh
const* toTranscode) {
44 std::istringstream iss(
toString(toTranscode));
45 unsigned int returnValue;
50 inline bool toBool(XMLCh
const* toTranscode) {
52 if ((value ==
"true") || (value ==
"1"))
57 inline double toDouble(XMLCh
const* toTranscode) {
58 std::istringstream iss(
toString(toTranscode));
double toDouble(XMLCh const *toTranscode)
std::string toString(XMLCh const *toTranscode)
ZStr(CharType const *str)
ZStr< char > cStr(XMLCh const *str)
unsigned int toUInt(XMLCh const *toTranscode)
ZStr< XMLCh > uStr(char const *str)
CharType const * ptr() const
std::unique_ptr< CharType, void(*)(CharType *) > m_array
bool toBool(XMLCh const *toTranscode)