Sign in Join
FPDoc Onlineexperiment

TConditionalString class

In unit fpMkUnit

String value with CPU and OS conditions

Declaration

pascal
TConditionalString = class(TCollectionItem)

Inheritance

  1. TConditionalString
  2. TCollectionItem
  3. TPersistent
  4. TObject

Descends from it: TConditionalDestString TDependency TResourceFile

Description

TConditionalString represents a string value that can be conditionally applied based on target CPU architecture and operating system. This enables platform-specific configuration in build scripts.

The class provides matching functionality to determine if the string applies to a specific CPU/OS combination, making it the foundation for cross-platform build support.

See also

Properties

ValuepublicString value for this condition
OSespublicOperating systems for which this string applies
CPUspublicCPU architectures for which this string applies

Methods

AssignpublicAssign conditional string from another source
MatchpublicCheck if string matches given CPU and OS

Inherited

From TCollectionItem (13)

Changed Collection Create Destroy DisplayName GetDisplayName GetNamePath GetOwner ID Index SetCollection SetDisplayName SetIndex

From TPersistent (5)

AssignTo DefineProperties FPOAttachObserver FPODetachObserver FPONotifyObservers

From TObject (40)

AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName SafeCallException StringMessageTable SystemHasExtendedRTTI ToString UnitName

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