mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
ADD: TStringHashListUtf8.Remove method
This commit is contained in:
parent
0d3d2e7990
commit
20a161d513
1 changed files with 10 additions and 0 deletions
|
|
@ -60,6 +60,7 @@ type
|
|||
function Add(const S: String): Integer;
|
||||
function Add(const S: String; ItemData: Pointer): Integer;
|
||||
procedure Clear;
|
||||
procedure Remove(Index: Integer);
|
||||
function Find(const S: String): Integer;
|
||||
function Find(const S: String; Data: Pointer): Integer;
|
||||
function Remove(const S: String): Integer;
|
||||
|
|
@ -162,6 +163,15 @@ begin
|
|||
fCount:= 0;
|
||||
end;
|
||||
|
||||
procedure TStringHashListUtf8.Remove(Index: Integer);
|
||||
begin
|
||||
if (Index >= 0) and (Index < FCount) then
|
||||
begin
|
||||
Dispose(fList[Index]);
|
||||
Delete(Index);
|
||||
end;
|
||||
end;
|
||||
|
||||
function TStringHashListUtf8.CompareString(const Low, Key: String): Boolean;
|
||||
var
|
||||
P: Pointer;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue