annotate DEPENDENCIES/generic/include/boost/property_tree/detail/info_parser_utils.hpp @ 125:34e428693f5d vext

Vext -> Repoint
author Chris Cannam
date Thu, 14 Jun 2018 11:15:39 +0100
parents 2665513ce2d3
children
rev   line source
Chris@16 1 // ----------------------------------------------------------------------------
Chris@16 2 // Copyright (C) 2002-2006 Marcin Kalicinski
Chris@16 3 //
Chris@16 4 // Distributed under the Boost Software License, Version 1.0.
Chris@16 5 // (See accompanying file LICENSE_1_0.txt or copy at
Chris@16 6 // http://www.boost.org/LICENSE_1_0.txt)
Chris@16 7 //
Chris@16 8 // For more information, see www.boost.org
Chris@16 9 // ----------------------------------------------------------------------------
Chris@16 10 #ifndef BOOST_PROPERTY_TREE_DETAIL_INFO_PARSER_CHCONV_HPP_INCLUDED
Chris@16 11 #define BOOST_PROPERTY_TREE_DETAIL_INFO_PARSER_CHCONV_HPP_INCLUDED
Chris@16 12
Chris@16 13 #include <string>
Chris@16 14
Chris@16 15 namespace boost { namespace property_tree { namespace info_parser
Chris@16 16 {
Chris@16 17
Chris@16 18 template<class ChDest, class ChSrc>
Chris@16 19 std::basic_string<ChDest> convert_chtype(const ChSrc *text)
Chris@16 20 {
Chris@16 21 std::basic_string<ChDest> result;
Chris@16 22 while (*text)
Chris@16 23 {
Chris@16 24 result += ChDest(*text);
Chris@16 25 ++text;
Chris@16 26 }
Chris@16 27 return result;
Chris@16 28 }
Chris@16 29
Chris@16 30 } } }
Chris@16 31
Chris@16 32 #endif