20#include <xrpl/basics/strHex.h>
21#include <xrpl/beast/utility/Zero.h>
22#include <xrpl/protocol/SystemParameters.h>
23#include <xrpl/protocol/UintTypes.h>
40 "abcdefghijklmnopqrstuvwxyz"
41 "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
56 if (currency == beast::zero)
63 "FFFFFFFFFFFFFFFFFFFFFFFF000000FFFFFFFFFF");
65 if ((currency & sIsoBits).isZero())
88 currency = beast::zero;
98 currency = beast::zero;
121 static Currency const currency(beast::zero);
135 static Currency const currency(0x5852500000000000);
constexpr bool parseHex(std::string_view sv)
Parse a hex string into a base_uint.
T find_first_not_of(T... args)
constexpr std::string_view isoCharSet
constexpr std::size_t isoCodeOffset
constexpr std::size_t isoCodeLength
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Currency const & badCurrency()
We deliberately disallow the currency that looks like "XRP" because too many people were using it ins...
Currency const & noCurrency()
A placeholder for empty currencies.
static std::string const & systemCurrencyCode()
std::string strHex(FwdIt begin, FwdIt end)
base_uint< 160, detail::CurrencyTag > Currency
Currency is a hash representing a specific currency.
Currency const & xrpCurrency()
XRP currency.
std::string to_string(base_uint< Bits, Tag > const &a)
bool to_currency(Currency &, std::string const &)
Tries to convert a string to a Currency, returns true on success.