3000
     5ˆÖ�þd«7) ä�n1ˆ þßƒe–[ÞÙÀÛ     5// ----------------------------------------------------------------------------
// Copyright (C) 2015 Sebastian Redl
//
// 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_JSON_PARSER_READ_HPP
#define BOOST_PROPERTY_TREE_DETAIL_JSON_PARSER_READ_HPP

#include <boost/property_tree/json_parser/detail/parser.hpp>
#include <boost/property_tree/json_parser/detail/narrow_encoding.hpp>
#include <boost/property_tree/json_parser/detail/wide_encoding.hpp>
#include <boost/property_tree/json_parser/detail/standard_callbacks.hpp>

#include <boost/static_assert.hpp>
#include <boost/type_traits/is_same.hpp>

#include <istream>
#include <iterator>
#include <string>

namespace boost { namespace property_tree {
    namespace json_parser { namespace detail
{

    template <typename Iterator, typename Sentinel>
    class minirange
    {
    public:
        minirange(Iterator first, Sentinel last) : first(first), last(last) {}
        Iterator begin() const { return first; }
        Sentinel end() const { return last; }

    private:
        Iterator first;
        Sentinel last;
    };
    template <typename Iterator, typename Sentinel>
    minirange<Iterator, Sentinel> make_minirange(Iterator first, Sentinel last)
    {
        return minirange<Iterator, Sentinel>(first, last);
    }

    template <typename Iterator, typename Sentinel,
              typename Encoding, typename Callbacks>
    void read_json_internal(Iterator first, Sentinel last, Encoding& encoding,
        Callbacks& callbacks, const std::string& filename)
    {
        BOOST_STATIC_ASSERT_MSG((boost::is_same<
            typename std::iterator_traits<Iterator>::value_type,
            typename Encoding::external_char>::value),
            "Encoding is not capable of using the iterator's value type.");
        BOOST_STATIC_ASSERT_MSG((boost::is_same<
            typename Callbacks::char_type,
            typename Encoding::internal_char>::value),
            "Encoding is not capable of producing the needed character type.");

        detail::parser<Callbacks, Encoding, Iterator, Sentinel>
            parser(callbacks, encoding);
        parser.set_input(filename, make_minirange(first, last));
        parser.parse_value();
        parser.finish();
    }

    template <typename Ch> struct encoding;
    template <> struct encoding<char> : utf8_utf8_encoding {};
    template <> struct encoding<wchar_t> : wide_wide_encoding {};

    template <typename Ptree>
    void read_json_internal(
        std::basic_istream<typename Ptree::key_type::value_type> &stream,
        Ptree &pt, const std::string &filename)
    {
        typedef typename Ptree::key_type::value_type char_type;
        typedef standard_callbacks<Ptree> callbacks_type;
        typedef detail::encoding<char_type> encoding_type;
        typedef std::istreambuf_iterator<char_type> iterator;
        callbacks_type callbacks;
        encoding_type encoding;
        read_json_internal(iterator(stream), iterator(),
            encoding, callbacks, filename);
        pt.swap(callbacks.output());
    }

}}}}

#endif
     7ˆÔÓÞ524ÏÀÛ     7‹      µTÑnÚ0}ïWx~ØÜ²V¥Ž§Ž �¢™¦iÚƒ‰b5Ä‘mHÙ×Ï*²	Övc/¹Žsrî9××—¼‰&ýøët€>Æw#4ýüa4ì#ÜøÒíDqTÚž0c„3kË@UUíªÛVzñ2»Ì0VËÄ¶¹å˜^�í½@$Œ»ˆˆ•6tXpñˆTŠ@­¬‘\Pj•€y
Z)fc€‹5$Óô‚K0«¹Û´b	Önº]5•#‡=;™+¾Ù&õÏ“Àñì$³ù.Ïv©)±Z³\.Š[UbJär�ŒNB2Q…�yÎŠ‡öB¦±Ü†øÛ°?ùîp`³íß”0”i‘†ø}?ßLÂÓ1[
ì8æÎan11cÑRq™JÁO‚ïkð½üqš0ª1‘0‰–¥•ª8@ÁYlZMTnJæ¼¾s2ÝDÕþ\5XòK1¦·³Á8Ž†³º$|KqP÷WÇ…é”iQXI-«ôfï§&[ÌMyóôŠöjµ\dS„Zè(òWÅC¡ª¢éÒUð¨?gS÷h
üMQÇë\¶üNËó‘çõ‚k„N Ý}üô¯ÒS•s¡›ÊO�L©*¡]©ëxýç(ýËõ7Ûå°~Ö‡ßêzÈ¿êWÿÕÇ+Zh%Ö®×1­ã9ü¹‘^8`?&	ì¦0�zôÿv›æè]    7   9ˆl–ß=¿J
j"T% ýÁ?p/©‹Fÿ�þBûbY²Æë2¶8ä|€þàƒq§…ßØÁÜ R    9‹     Ü<ksÛ8’ßù+pšÌHJ,ÚR2[YÍ&»Žíœ]“Ø.ÛÉLÕj×¡HPâš¯¤=Ú�Ío¿î@‚)?’­»³ªâ�x4Ý