Unit 'utility' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#morphunits]

CloneTagItems

Copy a tag list.

Declaration

Source position: utility.pas line 169

function CloneTagItems(

  TagList: PTagItem

):PTagItem;

Arguments

TagList

  

A tag list to clone. May be nil, in which case an empty tag list is returned.

Function result

Copy of the original tag list, or nil if there was not enough memory. This tag list must eventually by freed by calling FreeTagItems().

Description

Copies the essential contents of a tag list into a new tag list.

The cloning is such that calling FindTagItem() with a given tag on the original or cloned tag lists will always return the same tag value. That is, the ordering of the tags is maintained.

See also

AllocateTagItems

  

Allocate a tag list.

FreeTagItems

  

Free an allocated tag list.

RefreshTagItemClones

  

Rejuvenate a clone from the original.


Documentation generated on: 2021-07-30