Euphoria
Classes | Namespaces | Macros | Functions
hash.string.h File Reference
#include "base/ints.h"
#include <string_view>
#include <string>
#include <unordered_map>

Go to the source code of this file.

Classes

struct  eu::Hsh
 Hash of a non-owning string. More...
 
struct  eu::HshO
 Hash of an owning string. More...
 

Namespaces

namespace  eu
 
namespace  std
 

Macros

#define USE_HASH_TEXT   1
 
#define OP(op)
 

Functions

constexpr u64 eu::hash64 (const std::string_view str, u64 hash=0xcbf29ce484222325)
 fnv-1a hash.
 
 eu::OP (==) OP(!
 
std::string eu::string_from (const HshO &h)
 

Macro Definition Documentation

◆ OP

#define OP (   op)
Value:
constexpr bool operator op(const Hsh& lhs, const Hsh& rhs)\
{ return lhs.hash op rhs.hash; }\
constexpr bool operator op(const HshO& lhs, const Hsh& rhs)\
{ return lhs.hash op rhs.hash; }\
constexpr bool operator op(const Hsh& lhs, const HshO& rhs)\
{ return lhs.hash op rhs.hash; }\
constexpr bool operator op(const HshO& lhs, const HshO& rhs)\
{ return lhs.hash op rhs.hash; }

Definition at line 89 of file hash.string.h.

◆ USE_HASH_TEXT

#define USE_HASH_TEXT   1

Definition at line 11 of file hash.string.h.