5 #include "pcheader.hpp"
10 std::string
strhelp_quote(const std::string
& str
, bool escape_only
=false);
12 inline VXHash
_hashstr(const char* s
, size_t l
)
14 VXHash h
= (VXHash
)l
; /* seed */
15 size_t step
= (l
>>5)|1; /* if string is too long, don't hash all its chars */
16 for (; l
>=step
; l
-=step
)
18 h
= h
^ ((h
<<5)+(h
>>2)+(unsigned short)*(s
++));