88#include " univalue.h"
99#include " univalue_escapes.h"
1010
11- using namespace std ;
12-
13- static string json_escape (const string& inS)
11+ static std::string json_escape (const std::string& inS)
1412{
15- string outS;
13+ std:: string outS;
1614 outS.reserve (inS.size () * 2 );
1715
1816 for (unsigned int i = 0 ; i < inS.size (); i++) {
@@ -28,10 +26,10 @@ static string json_escape(const string& inS)
2826 return outS;
2927}
3028
31- string UniValue::write (unsigned int prettyIndent,
32- unsigned int indentLevel) const
29+ std:: string UniValue::write (unsigned int prettyIndent,
30+ unsigned int indentLevel) const
3331{
34- string s;
32+ std:: string s;
3533 s.reserve (1024 );
3634
3735 unsigned int modIndent = indentLevel;
@@ -62,12 +60,12 @@ string UniValue::write(unsigned int prettyIndent,
6260 return s;
6361}
6462
65- static void indentStr (unsigned int prettyIndent, unsigned int indentLevel, string& s)
63+ static void indentStr (unsigned int prettyIndent, unsigned int indentLevel, std:: string& s)
6664{
6765 s.append (prettyIndent * indentLevel, ' ' );
6866}
6967
70- void UniValue::writeArray (unsigned int prettyIndent, unsigned int indentLevel, string& s) const
68+ void UniValue::writeArray (unsigned int prettyIndent, unsigned int indentLevel, std:: string& s) const
7169{
7270 s += " [" ;
7371 if (prettyIndent)
@@ -89,7 +87,7 @@ void UniValue::writeArray(unsigned int prettyIndent, unsigned int indentLevel, s
8987 s += " ]" ;
9088}
9189
92- void UniValue::writeObject (unsigned int prettyIndent, unsigned int indentLevel, string& s) const
90+ void UniValue::writeObject (unsigned int prettyIndent, unsigned int indentLevel, std:: string& s) const
9391{
9492 s += " {" ;
9593 if (prettyIndent)
0 commit comments