Class TStringStringMap

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TStringStringMap = class(specialize TFPGMap<string,string>)

Description

String-to-string map. Note that in simple cases you can also use standard TStringList functionality (see it's properties Names, Values), but this is better if your key/values may be multiline.

Hierarchy

  • TFPGMap
  • TStringStringMap

Overview

Methods

Public procedure PutPreserve(const Name, Content: string);
Public function CreateCopy: TStringStringMap;
Public procedure Assign(const Source: TStringStringMap);

Description

Methods

Public procedure PutPreserve(const Name, Content: string);

Set given key value, trying to preserve previous key value too. This is useful for safely setting X3D META values.

Compared to normal PutKeyData, this behaves smarter if given Name is already set. If it's set with the same Content, we do nothing. If the Content is different, we move previous content to a Name + '-previous' key. This way previous content value is preserved once (but not more, to not grow the X3D file indefinitely).

Public function CreateCopy: TStringStringMap;

Create another TStringStringMap with exactly the same contents at the beginning.

Public procedure Assign(const Source: TStringStringMap);

Assign contents (all keys, values) of another TStringStringMap instance.


Generated by PasDoc 0.14.0.