Chris@16: // ---------------------------------------------------------------------------- Chris@16: // Copyright (C) 2002-2006 Marcin Kalicinski Chris@16: // Chris@16: // Distributed under the Boost Software License, Version 1.0. Chris@16: // (See accompanying file LICENSE_1_0.txt or copy at Chris@16: // http://www.boost.org/LICENSE_1_0.txt) Chris@16: // Chris@16: // For more information, see www.boost.org Chris@16: // ---------------------------------------------------------------------------- Chris@16: #ifndef BOOST_PROPERTY_TREE_DETAIL_INFO_PARSER_CHCONV_HPP_INCLUDED Chris@16: #define BOOST_PROPERTY_TREE_DETAIL_INFO_PARSER_CHCONV_HPP_INCLUDED Chris@16: Chris@16: #include Chris@16: Chris@16: namespace boost { namespace property_tree { namespace info_parser Chris@16: { Chris@16: Chris@16: template Chris@16: std::basic_string convert_chtype(const ChSrc *text) Chris@16: { Chris@16: std::basic_string result; Chris@16: while (*text) Chris@16: { Chris@16: result += ChDest(*text); Chris@16: ++text; Chris@16: } Chris@16: return result; Chris@16: } Chris@16: Chris@16: } } } Chris@16: Chris@16: #endif