QtLingo
1
QtLingo is an Application to make Qt Computer Translations easier
efl_hash.h
Go to the documentation of this file.
1
#ifndef __EFL_HASH_h__
2
#define __EFL_HASH_h__
3
7
typedef
unsigned
long
hash_t
;
8
12
inline
hash_t
efl_hash
(
const
wchar_t
* s)
13
{
14
const
wchar_t
*name = (
const
wchar_t
*) (
wchar_t
*) s;
15
unsigned
long
h = 0;
16
while
(*name != L
'\0'
)
17
{
18
unsigned
long
g;
19
h = (h << 4) + (
hash_t
)(*name++);
20
if
((g = (h & 0xF0000000UL))!=0) { h ^= (g >> 24); }
21
h &= ~g;
22
}
23
return
h;
24
}
25
#endif
// __EFL_HASH_h__
26
hash_t
unsigned long hash_t
type of efl_hash.
Definition:
efl_hash.h:7
efl_hash
hash_t efl_hash(const wchar_t *s)
do some fancy bitwanking on the string. efl_hash
Definition:
efl_hash.h:12
src
third-party
ts_tool
efl_hash.h
Generated by
1.9.2