mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-11 09:11:00 +00:00
Move strhash to string_utils.h
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
using std::string;
|
||||
@@ -35,6 +36,8 @@ std::wstring strlower(const std::wstring& str);
|
||||
std::string strupper(const std::string& str);
|
||||
std::wstring strupper(const std::wstring& str);
|
||||
|
||||
uint32_t strhash(const char *str, uint32_t existingHash = 5381);
|
||||
|
||||
template<class strType> strType basename(const strType &path)
|
||||
{
|
||||
strType base = path;
|
||||
|
||||
Reference in New Issue
Block a user