20 #include <ripple/beast/utility/Zero.h>
21 #include <ripple/protocol/Serializer.h>
22 #include <ripple/protocol/SystemParameters.h>
23 #include <ripple/protocol/UintTypes.h>
36 "abcdefghijklmnopqrstuvwxyz"
37 "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
52 if (currency == beast::zero)
59 "FFFFFFFFFFFFFFFFFFFFFFFF000000FFFFFFFFFF");
61 if ((currency & sIsoBits).isZero())
84 currency = beast::zero;
94 currency = beast::zero;
101 return static_cast<unsigned char>(
102 ::toupper(static_cast<unsigned char>(c)));
123 static Currency const currency(beast::zero);
137 static Currency const currency(0x5852500000000000);
Currency const & badCurrency()
We deliberately disallow the currency that looks like "XRP" because too many people were using it ins...
static std::string const & systemCurrencyCode()
bool to_currency(Currency ¤cy, std::string const &code)
Tries to convert a string to a Currency, returns true on success.
Currency const & noCurrency()
A placeholder for empty currencies.
constexpr std::size_t isoCodeLength
T find_first_not_of(T... args)
Integers of any length that is a multiple of 32-bits.
constexpr std::size_t isoCodeOffset
base_uint< 160, detail::CurrencyTag > Currency
Currency is a hash representing a specific currency.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
constexpr std::string_view isoCharSet
std::string to_string(Manifest const &m)
Format the specified manifest to a string for debugging purposes.
std::string strHex(FwdIt begin, FwdIt end)
constexpr bool parseHex(std::string_view sv)
Parse a hex string into a base_uint.
Currency const & xrpCurrency()
XRP currency.