TStringsHelper Helper

Definition

Delphi
type TStringsHelper = class helper(TClassHelperBase) for TStrings
Inheritance
TClassHelperBase
TStringsHelper

Properties

IsEmpty

Gets a value indicates whether the strings is empty.

Methods

AddOrUpdate(string, string)

Adds or updates a name-value pair.

AddStrings(array of string)

Add an array of string to the list.

ContainsName(string)

Determines whether the list contains the specified name entry.

ContainsObject(TObject)

Determines whether the list contains the specified object.

ContainsValue(string)

Determines whether the list contains the specified value entry.

ExecuteUpdate(TProc)

Executes a procedure during batch updating of the list.

ExtractNames(TStrings)

Extract all name entries and add them to the strings list.

ExtractValues(TStrings)

Extract all value entries and add them to the strings list.

GetNames

Returns a string array that contains all the name entries in the string list.

GetValueOrDefault<T>(string, T)

Gets the corresponding value of the name entry if there is such an entry and the value is not empty, otherwise, returns the default value specified by the default param.

GetValues

Returns a string array that contains all the value entries in the string list.

ToArray

Converts the string list to a dynamic string array.

TryFindName(string, Integer)

Try finding a name entry in the list.

TryFindObject(TObject, Integer)

Try finding an object in the list.

TryFindValue(string, Integer)

Try finding a value entry in the list.