得到一个字符串的哈希Hash值
来源:互联网 发布:淘宝店铺售假扣24分 编辑:程序博客网 时间:2024/06/08 17:06
function StrHash(const SoureStr: string): Cardinal; const cLongBits = 32; cOneEight = 4; cThreeFourths = 24; cHighBits = $F0000000; var I: Integer; P: PChar; Temp: Cardinal; begin Result := 0; P := PChar(SoureStr); I := Length(SoureStr); while I > 0 do begin Result := (Result shl cOneEight) + Ord(P^); Temp := Result and cHighBits; if Temp <> 0 then Result := (Result xor (Temp shr cThreeFourths)) and (not cHighBits); Dec(I); Inc(P); end; end;end.
0 0
- 得到一个字符串的哈希Hash值
- 一个高效的字符串hash值算法
- 求一个字符串的hash值
- 输入一个字符串,得到一个long类型的值。如 “342” 得到 342
- 一个极好的hash map实现-字符串hash
- 一个非常好的字符串Hash函数
- 一个简单的字符串hash表
- 得到字符串日期的前一个月
- 字符串 hash 哈希比较
- 得到PHP一个字符串的最后一个字符
- 得到PHP一个字符串的最后一个字符
- PHP技巧:得到一个字符串的最后一个字符
- 去掉特定符号得到一个正常的数字字符串
- murmur:更快更好的哈希函数(字符串转64位hash值)
- murmur:更快更好的哈希函数(字符串转64位hash值)
- 常见的字符串Hash
- 经典的字符串hash
- 字符串的Hash
- oracle创建表空间
- iOS蓝牙Service定义对照表
- Linux学习(1):ls命令
- 【Android】新版Android Studio 2.0 Preview 4 下载链接 百度网盘
- 动态规划学习之最长上升子序列
- 得到一个字符串的哈希Hash值
- could not find java SE Runtime Environment/Error: could not find java.dll
- Matching Game based on JS
- 在Windows上调优DB2
- 窗口看门狗的真正作用
- Android studio中cannot reload avd list问题解决
- 【转载】大力推荐使用chrome浏览器
- 使用AFNetworking时遇到了 property synthesis 相关的 error
- linux下用qt写的的串口小程序