Skip to content

StringToCPUOS

Parses string to extract CPU and OS information

Declaration

Source position: fpmkunit.pp line 1717

procedure StringToCPUOS(const S: string; var CPU: TCpu; var OS: TOS);

Arguments

Name Description
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.