17 if( c >=
'a' && c <=
'z' )
19 if( c >=
'1' && c <=
'5' )
27 for ( ; i < str.size() && i < 12; ++i) {
37 if (i < str.size() && i == 12)
50 void set( std::string_view str );
56 explicit name( std::string_view str ) {
set( str ); }
58 constexpr name() =
default;
77 constexpr explicit operator bool()
const {
return value != 0; }
89 inline namespace literals {
91# pragma clang diagnostic push
92# pragma clang diagnostic ignored "-Wgnu-string-literal-operator-template"
94 template <
typename T,
T... Str>
95 inline constexpr name operator""_n() {
96 constexpr const char buf[] = {Str...};
100# pragma clang diagnostic pop
107 template<>
struct hash<
sysio::chain::name> :
private hash<uint64_t> {
111 return hash<uint64_t>::operator()(
name.to_uint64_t());
stores null, int64, uint64, double, bool, string, std::vector<variant>, and variant_object's.
void from_variant(const fc::variant &v, sysio::chain::chain_id_type &cid)
void to_variant(const sysio::chain::shared_public_key &var, fc::variant &vo)
constexpr uint64_t string_to_uint64_t(std::string_view str)
constexpr name string_to_name(std::string_view str)
constexpr uint64_t char_to_symbol(char c)
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
#define T(meth, val, expected)
#define FC_REFLECT(TYPE, MEMBERS)
Specializes fc::reflector for TYPE.
unsigned __int64 uint64_t
defines visit functions for T Unless this is specialized, visit() will not be defined for T.
sysio::chain::name argument_type
size_t operator()(const argument_type &name) const noexcept
Immutable except for fc::from_variant.
constexpr bool good() const
constexpr name(uint64_t v)
friend constexpr bool operator<=(const name &a, const name &b)
friend constexpr bool operator<(const name &a, const name &b)
friend constexpr bool operator==(const name &a, const name &b)
name(std::string_view str)
friend constexpr bool operator>(const name &a, const name &b)
friend std::ostream & operator<<(std::ostream &out, const name &n)
constexpr bool empty() const
constexpr uint64_t to_uint64_t() const
std::string to_string() const
friend constexpr bool operator!=(const name &a, const name &b)
friend constexpr bool operator>=(const name &a, const name &b)