3#include <xrpl/basics/Blob.h>
4#include <xrpl/basics/strHex.h>
6#include <boost/format.hpp>
7#include <boost/utility/string_view.hpp>
35concept SomeChar = std::same_as<std::remove_cvref_t<T>, int8_t> ||
36 std::same_as<std::remove_cvref_t<T>,
char> || std::same_as<std::remove_cvref_t<T>, uint8_t>;
41 for (
int i = 0; i < 10; ++i)
44 for (
int i = 0; i < 6; ++i)
61template <
class Iterator>
77 out.
push_back(
static_cast<unsigned char>(*c));
84 if (!cHigh.has_value())
89 if (!cLow.has_value())
92 out.
push_back(
static_cast<unsigned char>((*cHigh << 4) | *cLow));
95 return {std::move(out)};
std::optional< int > hexCharToInt(SomeChar auto hexChar)
constexpr std::array< std::optional< int >, 256 > const kDigitLookupTable
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::string trimWhitespace(std::string str)
std::optional< Blob > strUnHex(std::size_t strSize, Iterator begin, Iterator end)
std::optional< std::uint64_t > toUInt64(std::string const &s)
std::string sqlBlobLiteral(Blob const &blob)
Format arbitrary binary data as an SQLite "blob literal".
std::vector< unsigned char > Blob
Storage for linear binary data.
bool parseUrl(ParsedUrl &pUrl, std::string const &strUrl)
bool operator==(ParsedUrl const &other) const
std::optional< std::uint16_t > port