summaryrefslogtreecommitdiff
path: root/boost/property_tree/detail/xml_parser_utils.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/property_tree/detail/xml_parser_utils.hpp')
-rw-r--r--boost/property_tree/detail/xml_parser_utils.hpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/boost/property_tree/detail/xml_parser_utils.hpp b/boost/property_tree/detail/xml_parser_utils.hpp
index b4c502b5eb..fbbde0153e 100644
--- a/boost/property_tree/detail/xml_parser_utils.hpp
+++ b/boost/property_tree/detail/xml_parser_utils.hpp
@@ -23,8 +23,8 @@ namespace boost { namespace property_tree { namespace xml_parser
template<class Str>
Str condense(const Str &s)
{
- typedef typename Str::value_type Ch;
- Str r;
+ typedef typename Str::value_type Ch;
+ Str r;
std::locale loc;
bool space = false;
typename Str::const_iterator end = s.end();
@@ -70,19 +70,17 @@ namespace boost { namespace property_tree { namespace xml_parser
case Ch('&'): r += detail::widen<Str>("&amp;"); break;
case Ch('"'): r += detail::widen<Str>("&quot;"); break;
case Ch('\''): r += detail::widen<Str>("&apos;"); break;
- case Ch('\t'): r += detail::widen<Str>("&#9;"); break;
- case Ch('\n'): r += detail::widen<Str>("&#10;"); break;
default: r += *it; break;
}
}
}
return r;
}
-
+
template<class Str>
Str decode_char_entities(const Str &s)
{
- typedef typename Str::value_type Ch;
+ typedef typename Str::value_type Ch;
Str r;
typename Str::const_iterator end = s.end();
for (typename Str::const_iterator it = s.begin(); it != end; ++it)
@@ -107,7 +105,7 @@ namespace boost { namespace property_tree { namespace xml_parser
}
return r;
}
-
+
template<class Str>
const Str &xmldecl()
{