Skip to content

TStringHash

String hash list.

Declaration

Source position: inifiles.pp line 68

type

  TStringHash = class
  public
    constructor Create;
    destructor Destroy;
    procedure Add;
    procedure Clear;
    function Modify : Boolean;
    procedure Remove;
    function ValueOf : Integer;
    property AddReplacesExisting: Boolean; {rw}
  end;

Description

TStringHash is a Delphi compatibility object. It is not used in the TIniFile implementation. It implements a bucket list for Name=Value pairs, where Value is an integer. This enables quick lookup of values based on a name.

Properties

Member Visibility Description
AddReplacesExisting public Should Add replace existing values or not.

Methods

Member Visibility Description
Add public Add a new value to the hash.
Clear public Remove all values.
Create public Create a new instance of TStringHash.
Destroy public Free TStringHash instance.
Modify public Try to modify an existing value.
Remove public Remove a key from the hash.
ValueOf public Retrieve value of Key.

See also

Name Description
TIniFIle Ini file implementation.
TStringHash.Create Create a new instance of TStringHash.
TStringHash.ValueOf Retrieve value of Key.