Changeset View
Changeset View
Standalone View
Standalone View
src/univalue/lib/univalue_write.cpp
// Copyright 2014 BitPay Inc. | // Copyright 2014 BitPay Inc. | ||||
// 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 <iomanip> | #include <iomanip> | ||||
#include <sstream> | |||||
#include <stdio.h> | #include <stdio.h> | ||||
#include "univalue.h" | #include "univalue.h" | ||||
#include "univalue_escapes.h" | #include "univalue_escapes.h" | ||||
static std::string json_escape(const std::string& inS) | static std::string json_escape(const std::string& inS) | ||||
{ | { | ||||
std::string outS; | std::string outS; | ||||
outS.reserve(inS.size() * 2); | outS.reserve(inS.size() * 2); | ||||
▲ Show 20 Lines • Show All 99 Lines • Show Last 20 Lines |