Skip to content

TConditionalString.Match

Check if string matches given CPU and OS

Declaration

Source position: fpmkunit.pp line 472

public 
function Match(aCPU: TCpu; aOS: TOS) : Boolean;

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

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.