Sign in Join
FPDoc Onlineexperiment

TConditionalString.Match function

Member of TConditionalStringpublicIn unit fpMkUnit

Check if string matches given CPU and OS

Declaration

pascal
function Match(aCPU: TCpu; aOS: TOS): Boolean
function Match(const aValue: string; aCPU: TCpu; aOS: TOS): Boolean

Arguments

aCPU

CPU architecture to check against

aOS

Operating system to check against

aValue

Optional string value to match against

Function result

True if string matches the platform criteria

Description

Match evaluates whether this conditional string applies to the specified CPU architecture and operating system.

The method returns True if the string's conditions match the provided platform parameters.

This is the core functionality that enables platform-specific string selection in build configurations.

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