Sign in Join
FPDoc Onlineexperiment

TConditionalStrings.Find function

Member of TConditionalStringspublicIn unit fpMkUnit

Find conditional string matching criteria

Declaration

pascal
function Find(Value: string; aCPU: TCpu; aOS: TOS): TConditionalString

Arguments

Value

String value to search for

aCPU

CPU architecture to match

aOS

Operating system to match

Function result

Index of matching conditional string or -1 if not found

Description

Searches for a conditional string that matches the specified value and platform criteria (CPU and OS). Returns the index of the first matching item or -1 if no match is found.

Platform matching considers the CPU and OS sets to determine if the conditional string applies to the specified target platform.

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