Converts string to build mode identifier
Source position: fpmkunit.pp line 1689
function StringToMode( |
const S: string |
S |
|
String representation of build mode |
Build mode identifier from string
StringToMode converts a string representation of a build mode to its corresponding identifier enumeration. This function enables parsing of build mode names from configuration files and command-line parameters.
The function supports standard build mode names such as debug, release, and custom modes, providing error handling for invalid or unrecognized mode strings.