3#include <xrpl/basics/Blob.h>
4#include <xrpl/basics/strHex.h>
6#include <boost/format.hpp>
7#include <boost/utility/string_view.hpp>
29template <
class Iterator>
39 for (
int i = 0; i < 10; ++i)
42 for (
int i = 0; i < 6; ++i)
59 int c = digitLookupTable[*iter++];
69 int cHigh = digitLookupTable[*iter++];
74 int cLow = digitLookupTable[*iter++];
79 out.push_back(
static_cast<unsigned char>((cHigh << 4) | cLow));
82 return {std::move(
out)};
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
bool isProperlyFormedTomlDomain(std::string_view domain)
Determines if the given string looks like a TOML-file hosting domain.
std::optional< std::uint64_t > to_uint64(std::string const &s)
std::optional< Blob > strUnHex(std::size_t strSize, Iterator begin, Iterator end)
bool parseUrl(parsedURL &pUrl, std::string const &strUrl)
std::vector< unsigned char > Blob
Storage for linear binary data.
std::optional< Blob > strViewUnHex(std::string_view strSrc)
std::string sqlBlobLiteral(Blob const &blob)
Format arbitrary binary data as an SQLite "blob literal".
std::string trim_whitespace(std::string str)
std::optional< std::uint16_t > port
bool operator==(parsedURL const &other) const