Clio develop
The XRP Ledger API server.
Loading...
Searching...
No Matches
rpc::modifiers::ToNumber Struct Referencefinal

Convert input string to integer. More...

#include <Modifiers.hpp>

Static Public Member Functions

static MaybeError modify (boost::json::value &value, std::string_view key)
 Update the input string to integer if it can be converted to integer by stoi.
 

Detailed Description

Convert input string to integer.

Note: the conversion is only performed if the input value is a string.

Member Function Documentation

◆ modify()

static MaybeError rpc::modifiers::ToNumber::modify ( boost::json::value & value,
std::string_view key )
inlinestaticnodiscard

Update the input string to integer if it can be converted to integer by stoi.

Parameters
valueThe JSON value representing the outer object
keyThe key used to retrieve the modified value from the outer object
Returns
Possibly an error

The documentation for this struct was generated from the following file: