This commit is contained in:
@ -69,4 +69,10 @@ std::string get_string_from_url(const std::string& url);
|
||||
// replace or append a block of text to a file, matching first and last lines if replacing.
|
||||
bool file_replace_or_add_segment(std::string filepath, std::string segment);
|
||||
|
||||
|
||||
constexpr unsigned int switchhash(const char *s, int off = 0)
|
||||
{
|
||||
return !s[off] ? 5381 : (switchhash(s, off + 1) * 33) ^ s[off];
|
||||
}
|
||||
|
||||
} // namespace dropshell
|
Reference in New Issue
Block a user