Reorganising further
This commit is contained in:
@@ -2,10 +2,16 @@
|
||||
// https://medium.com/@ryan_forrester_/using-switch-statements-with-strings-in-c-a-complete-guide-efa12f64a59d
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include <string>
|
||||
#include <string_view>
|
||||
|
||||
// This is called a polynomial rolling hash, prob going to collide
|
||||
namespace Helpers {
|
||||
std::string ReadFile(std::string Path);
|
||||
|
||||
// ===========
|
||||
// Hashing
|
||||
// ===========
|
||||
// This is called a polynomial rolling hash, prob going to collide
|
||||
constexpr uint64_t Pathhash(std::string_view s) {
|
||||
uint64_t res = 0;
|
||||
for (uint8_t c : s) {
|
||||
|
Reference in New Issue
Block a user