ex93.pp 471 B

123456789101112131415161718192021
  1. Program Example93;
  2. { Program to demonstrate the Hash function. }
  3. {$Mode Delphi}
  4. ResourceString
  5. First = 'First string';
  6. Second = 'Second String';
  7. Var I,J : Longint;
  8. begin
  9. For I:=0 to ResourceStringTableCount-1 do
  10. For J:=0 to ResourceStringCount(i)-1 do
  11. If Hash(GetResourceStringDefaultValue(I,J))
  12. <>GetResourceStringHash(I,J) then
  13. Writeln ('Hash mismatch at ',I,',',J)
  14. else
  15. Writeln ('Hash (',I,',',J,') matches.');
  16. end.