Skip to content

THashedStringList

String list with support for hash values.

Declaration

Source position: inifiles.pp line 85

type

  THashedStringList = class(TStringList)
  public
    destructor Destroy;
    function IndexOf(const S: string) : Integer; overload;
    function IndexOf(const S: string; aStart: Integer) : Integer; overload;
    function IndexOfName : Integer;
  end;

Description

THashedStringList is a TStringList descendent which creates hash values for the strings and names (in the case of a name-value pair) stored in it. The IndexOf and IndexOfName functions make use of these hash values to quickly locate a value.

Methods

Member Visibility Description
Destroy public Clean up instance.
IndexOf public Returns the index of a string in the list of strings.
IndexOfName public Return the index of a name in the list of name=value pairs.
See all Methods

See also

Name Description
IndexOf Returns the index of a string in the list of strings.
IndexOfName Return the index of a name in the list of name=value pairs.