Unit 'fpmkunit' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#fcl]

StringToCPUOS

Parses string to extract CPU and OS information

Declaration

Source position: fpmkunit.pp line 1693

procedure StringToCPUOS(

  const S: string;

  var CPU: TCpu;

  var OS: TOS

);

Arguments

S

  

String containing CPU and OS information

CPU

  

Extracted CPU architecture identifier

OS

  

Extracted operating system identifier

Description

StringToCPUOS parses a combined string containing CPU architecture and operating system information, extracting the individual CPU and OS identifiers. This procedure handles target string parsing for build configuration.

The procedure processes target strings in various formats and populates the output parameters with the corresponding CPU architecture and operating system enumeration values.


Documentation generated on: Dec 15 2025