mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Add 'hostid' to server_info
* Add json::Value conversion from beast::String * Update rippled-example.cfg
This commit is contained in:
@@ -377,6 +377,18 @@ Value::Value ( const std::string& value )
|
||||
value_.string_ = valueAllocator ()->duplicateStringValue ( value.c_str (),
|
||||
(unsigned int)value.length () );
|
||||
|
||||
}
|
||||
Value::Value (beast::String const& beastString)
|
||||
: type_ ( stringValue )
|
||||
, allocated_ ( true )
|
||||
, comments_ ( 0 )
|
||||
# ifdef JSON_VALUE_USE_INTERNAL_MAP
|
||||
, itemIsUsed_ ( 0 )
|
||||
#endif
|
||||
{
|
||||
value_.string_ = valueAllocator ()->duplicateStringValue ( beastString.toStdString ().c_str (),
|
||||
(unsigned int)beastString.length () );
|
||||
|
||||
}
|
||||
|
||||
Value::Value ( const StaticString& value )
|
||||
|
||||
@@ -193,6 +193,7 @@ public:
|
||||
*/
|
||||
Value ( const StaticString& value );
|
||||
Value ( const std::string& value );
|
||||
Value (beast::String const& beastString);
|
||||
# ifdef JSON_USE_CPPTL
|
||||
Value ( const CppTL::ConstString& value );
|
||||
# endif
|
||||
|
||||
Reference in New Issue
Block a user