/usr/include/boost/property_tree/detail
NameSizeModeActions
exception_implementation.hpp21600644editdlrm
file_parser_error.hpp25090644editdlrm
info_parser_error.hpp10190644editdlrm
info_parser_read.hpp148530644editdlrm
info_parser_utils.hpp9300644editdlrm
info_parser_write.hpp53630644editdlrm
info_parser_writer_settings.hpp12290644editdlrm
ptree_implementation.hpp305250644editdlrm
ptree_utils.hpp31380644editdlrm
rapidxml.hpp1189790644editdlrm
xml_parser_error.hpp10140644editdlrm
xml_parser_flags.hpp10770644editdlrm
xml_parser_read_rapidxml.hpp55760644editdlrm
xml_parser_utils.hpp44590644editdlrm
xml_parser_write.hpp72590644editdlrm
xml_parser_writer_settings.hpp19840644editdlrm
Edit: /usr/include/boost/property_tree/detail/xml_parser_writer_settings.hpp (1984B)
// ---------------------------------------------------------------------------- // Copyright (C) 2002-2007 Marcin Kalicinski // Copyright (C) 2007 Alexey Baskakov // // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // // For more information, see www.boost.org // ---------------------------------------------------------------------------- #ifndef BOOST_PROPERTY_TREE_DETAIL_XML_PARSER_WRITER_SETTINGS_HPP_INCLUDED #define BOOST_PROPERTY_TREE_DETAIL_XML_PARSER_WRITER_SETTINGS_HPP_INCLUDED #include #include namespace boost { namespace property_tree { namespace xml_parser { // Naively convert narrow string to another character type template Str widen(const char *text) { typedef typename Str::value_type Ch; Str result; while (*text) { result += Ch(*text); ++text; } return result; } //! Xml writer settings. The default settings lead to no pretty printing. template class xml_writer_settings { typedef typename Str::value_type Ch; public: xml_writer_settings(Ch inchar = Ch(' '), typename Str::size_type incount = 0, const Str &enc = widen("utf-8")) : indent_char(inchar) , indent_count(incount) , encoding(enc) { } Ch indent_char; typename Str::size_type indent_count; Str encoding; }; template xml_writer_settings xml_writer_make_settings(typename Str::value_type indent_char = (typename Str::value_type)(' '), typename Str::size_type indent_count = 0, const Str &encoding = widen("utf-8")) { return xml_writer_settings(indent_char, indent_count, encoding); } } } } #endif