mirror of
https://github.com/thunderbrewhq/squall.git
synced 2026-02-04 00:49:08 +00:00
feat(str): add SStrHash
This commit is contained in:
parent
a2959efef5
commit
0f453bd413
3 changed files with 150 additions and 0 deletions
|
|
@ -5,9 +5,13 @@
|
|||
#include <cstdint>
|
||||
#include <cstdlib>
|
||||
|
||||
|
||||
#define STORM_MAX_PATH 260
|
||||
#define STORM_MAX_STR 0x7FFFFFFF
|
||||
|
||||
#define SSTR_HASH_CASESENSITIVE 1
|
||||
|
||||
|
||||
char* SStrChr(char* string, char search);
|
||||
|
||||
const char* SStrChr(const char* string, char search);
|
||||
|
|
@ -24,6 +28,8 @@ size_t SStrCopy(char* dest, const char* source, size_t destsize = STORM_MAX_STR)
|
|||
|
||||
char* SStrDupA(const char* string, const char* filename, uint32_t linenumber);
|
||||
|
||||
uint32_t SStrHash(const char* string, uint32_t flags = 0, uint32_t seed = 0);
|
||||
|
||||
uint32_t SStrHashHT(const char* string);
|
||||
|
||||
size_t SStrLen(const char* string);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue