-
+ CC2D7C2D1E7698EB1CD39DD6BA30A11F358F0F77F7C77263E4F6D4D08077C428EDC68CC840C13628DB90CB1B2382567B25FA53521B529EBE1BA02CCD82CE1A80
bitcoin/src/json/json_spirit_reader.cpp
(0 . 0)(1 . 168)
7272 // /****************************\
7273 // * EXPERIMENTAL BRANCH. *
7274 // * FOR LABORATORY USE ONLY. *
7275 // ********************************
7276 // ************
7277 // **************
7278 // ****************
7279 // **** **** ****
7280 // *** *** ***
7281 // *** *** ***
7282 // *** * * **
7283 // ******** ********
7284 // ******* ******
7285 // *** **
7286 // * ******* **
7287 // ** * * * * *
7288 // ** * * ***
7289 // **** * * * * ****
7290 // **** *** * * ** ***
7291 // **** ********* ******
7292 // ******* ***** *******
7293 // ********* ****** **
7294 // ** ****** ******
7295 // ** ******* **
7296 // ** ******* ***
7297 // **** ******** ************
7298 // ************ ************
7299 // ******** *******
7300 // ****** ****
7301 // *** ***
7302 // ********************************
7303 // Copyright John W. Wilkinson 2007 - 2009.
7304 // Distributed under the MIT License, see accompanying file LICENSE.txt
7305
7306 // json spirit version 4.03
7307
7308 #include "json_spirit_reader.h"
7309 #include "json_spirit_reader_template.h"
7310
7311 using namespace json_spirit;
7312
7313 bool json_spirit::read( const std::string& s, Value& value )
7314 {
7315 return read_string( s, value );
7316 }
7317
7318 void json_spirit::read_or_throw( const std::string& s, Value& value )
7319 {
7320 read_string_or_throw( s, value );
7321 }
7322
7323 bool json_spirit::read( std::istream& is, Value& value )
7324 {
7325 return read_stream( is, value );
7326 }
7327
7328 void json_spirit::read_or_throw( std::istream& is, Value& value )
7329 {
7330 read_stream_or_throw( is, value );
7331 }
7332
7333 bool json_spirit::read( std::string::const_iterator& begin, std::string::const_iterator end, Value& value )
7334 {
7335 return read_range( begin, end, value );
7336 }
7337
7338 void json_spirit::read_or_throw( std::string::const_iterator& begin, std::string::const_iterator end, Value& value )
7339 {
7340 begin = read_range_or_throw( begin, end, value );
7341 }
7342
7343 #ifndef BOOST_NO_STD_WSTRING
7344
7345 bool json_spirit::read( const std::wstring& s, wValue& value )
7346 {
7347 return read_string( s, value );
7348 }
7349
7350 void json_spirit::read_or_throw( const std::wstring& s, wValue& value )
7351 {
7352 read_string_or_throw( s, value );
7353 }
7354
7355 bool json_spirit::read( std::wistream& is, wValue& value )
7356 {
7357 return read_stream( is, value );
7358 }
7359
7360 void json_spirit::read_or_throw( std::wistream& is, wValue& value )
7361 {
7362 read_stream_or_throw( is, value );
7363 }
7364
7365 bool json_spirit::read( std::wstring::const_iterator& begin, std::wstring::const_iterator end, wValue& value )
7366 {
7367 return read_range( begin, end, value );
7368 }
7369
7370 void json_spirit::read_or_throw( std::wstring::const_iterator& begin, std::wstring::const_iterator end, wValue& value )
7371 {
7372 begin = read_range_or_throw( begin, end, value );
7373 }
7374
7375 #endif
7376
7377 bool json_spirit::read( const std::string& s, mValue& value )
7378 {
7379 return read_string( s, value );
7380 }
7381
7382 void json_spirit::read_or_throw( const std::string& s, mValue& value )
7383 {
7384 read_string_or_throw( s, value );
7385 }
7386
7387 bool json_spirit::read( std::istream& is, mValue& value )
7388 {
7389 return read_stream( is, value );
7390 }
7391
7392 void json_spirit::read_or_throw( std::istream& is, mValue& value )
7393 {
7394 read_stream_or_throw( is, value );
7395 }
7396
7397 bool json_spirit::read( std::string::const_iterator& begin, std::string::const_iterator end, mValue& value )
7398 {
7399 return read_range( begin, end, value );
7400 }
7401
7402 void json_spirit::read_or_throw( std::string::const_iterator& begin, std::string::const_iterator end, mValue& value )
7403 {
7404 begin = read_range_or_throw( begin, end, value );
7405 }
7406
7407 #ifndef BOOST_NO_STD_WSTRING
7408
7409 bool json_spirit::read( const std::wstring& s, wmValue& value )
7410 {
7411 return read_string( s, value );
7412 }
7413
7414 void json_spirit::read_or_throw( const std::wstring& s, wmValue& value )
7415 {
7416 read_string_or_throw( s, value );
7417 }
7418
7419 bool json_spirit::read( std::wistream& is, wmValue& value )
7420 {
7421 return read_stream( is, value );
7422 }
7423
7424 void json_spirit::read_or_throw( std::wistream& is, wmValue& value )
7425 {
7426 read_stream_or_throw( is, value );
7427 }
7428
7429 bool json_spirit::read( std::wstring::const_iterator& begin, std::wstring::const_iterator end, wmValue& value )
7430 {
7431 return read_range( begin, end, value );
7432 }
7433
7434 void json_spirit::read_or_throw( std::wstring::const_iterator& begin, std::wstring::const_iterator end, wmValue& value )
7435 {
7436 begin = read_range_or_throw( begin, end, value );
7437 }
7438
7439 #endif