mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-02 17:50:16 +02:00
* adapted to syscodepages.inc for the fixed HashName
This commit is contained in:
parent
1d32a575e7
commit
4fecfe3df3
@ -64,10 +64,11 @@ end;
|
||||
|
||||
Function HashName(Name: PAnsiChar): LongWord;
|
||||
Var
|
||||
thehash,g,I : LongWord;
|
||||
thehash,g : LongWord;
|
||||
I : SizeInt;
|
||||
begin
|
||||
thehash:=0;
|
||||
For I:=1 to Length(Name) do { 0 terminated }
|
||||
For I:=0 to StrLen(Name)-1 do { 0 terminated }
|
||||
begin
|
||||
thehash:=thehash shl 4;
|
||||
inc(theHash,Ord(UpCase(Name[i])));
|
||||
|
Loading…
Reference in New Issue
Block a user