Sign in Join
FPDoc Onlineexperiment

HasDelimitedItem function

In unit LazStringUtils

Determines if a value exists in a delimited list of values.

Declaration

pascal
function HasDelimitedItem(const List: string; Delimiter: char; 
 FindItem: string): Boolean

Arguments

List

Values checked for the specified item.

Delimiter

Delimiter used to separate items in the list.

FindItem

Value to locate in the list of items.

Function result

True when the specified item is found in the list.

Description

HasDelimitedItem is a Boolean function used to determine if the specified value exists in a delimited list of values.

List contains the item values examined in the routine.

Delimiter is the character used to separate the item values in List.

FindItem contains the value to locate in the List of items.

HasDelimitedItem calls FindNextDelimitedItem to get the return value for the method. The return value is True when FindNextDelimitedItem returns an non-empty string value.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.