Changeset 175 for Generics/TemplateGenerics/Generic/GenericList.inc
- Timestamp:
- Mar 6, 2011, 6:44:23 PM (14 years ago)
- Location:
- Generics/TemplateGenerics/Generic
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Generics/TemplateGenerics/Generic
-
Property svn:ignore
set to
backup
-
Property svn:ignore
set to
-
Generics/TemplateGenerics/Generic/GenericList.inc
r129 r175 49 49 function Remove(Item: TGListItem): TGListIndex; 50 50 procedure Reverse; 51 procedure Replace(Index: TGListIndex; Source: TGList); 51 52 procedure Sort(Compare: TGListSortCompare); 52 53 procedure SetArray(Values: TGListItemArray); … … 71 72 72 73 { TGList } 74 75 procedure TGList.Replace(Index: TGListIndex; Source: TGList); 76 var 77 I: TGListIndex; 78 begin 79 I := 0; 80 while I < Source.Count do begin 81 Items[Index + I] := Source[I]; 82 I := I + 1; 83 end; 84 end; 73 85 74 86 function TGList.GetCapacity: TGListIndex;
Note:
See TracChangeset
for help on using the changeset viewer.