[Overview][Constants][Types][Procedures and functions][Index] Reference for unit 'LazStringUtils' (#lazutils)

HasDelimitedItem

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

Declaration

Source position: lazstringutils.pas line 84

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

FindNextDelimitedItem

  

Finds the next occurrence of a specific value in a delimited list.


Version 4.0 Generated 2025-05-03 Home