Sign in Join
FPDoc Onlineexperiment

StringToOS function

In unit fpMkUnit

Converts string to operating system identifier

Declaration

pascal
function StringToOS(const S: string): TOS

Arguments

S

String representation of operating system

Function result

Operating system identifier from string

Description

StringToOS converts a string representation of an operating system to its corresponding identifier enumeration. This function enables parsing of operating system names from configuration files and command-line parameters.

The function supports standard operating system names.

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