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> 9 #ifdef XERCES_CPP_NAMESPACE_USE 18 template<
class CharType >
29 std::unique_ptr< CharType, void (*)(CharType*) >
m_array;
44 inline unsigned int toUInt(XMLCh
const* toTranscode) {
45 std::istringstream iss(
toString(toTranscode));
46 unsigned int returnValue;
51 inline bool toBool(XMLCh
const* toTranscode) {
53 if ((value ==
"true") || (value ==
"1"))
58 inline double toDouble(XMLCh
const* toTranscode) {
59 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)
Namespace of DDCMS conversion namespace.
CharType const * ptr() const
std::unique_ptr< CharType, void(*)(CharType *) > m_array
bool toBool(XMLCh const *toTranscode)