Changeset View
Changeset View
Standalone View
Standalone View
src/univalue/lib/univalue_get.cpp
// Copyright 2014 BitPay Inc. | // Copyright 2014 BitPay Inc. | ||||
// Copyright 2015 Bitcoin Core Developers | // Copyright 2015 Bitcoin Core Developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or https://opensource.org/licenses/mit-license.php. | // file COPYING or https://opensource.org/licenses/mit-license.php. | ||||
#include <stdint.h> | #include <stdint.h> | ||||
#include <errno.h> | #include <errno.h> | ||||
#include <string.h> | #include <string.h> | ||||
#include <stdlib.h> | #include <stdlib.h> | ||||
#include <stdexcept> | #include <stdexcept> | ||||
#include <vector> | #include <vector> | ||||
#include <limits> | #include <limits> | ||||
#include <string> | #include <string> | ||||
#include <sstream> | |||||
#include "univalue.h" | #include "univalue.h" | ||||
namespace | namespace | ||||
{ | { | ||||
static bool ParsePrechecks(const std::string& str) | static bool ParsePrechecks(const std::string& str) | ||||
{ | { | ||||
if (str.empty()) // No empty string allowed | if (str.empty()) // No empty string allowed | ||||
▲ Show 20 Lines • Show All 126 Lines • Show Last 20 Lines |