Sign in Join
FPDoc Onlineexperiment

TPascalCodeGenerator.IsKeyWord function

Member of TPascalCodeGeneratorpublicIn unit PasCodeGen

Check if string is Pascal keyword

Declaration

pascal
function IsKeyWord(const S: string): Boolean; virtual

Arguments

S

String to check

Function result

True if string is a keyword

Description

IsKeyWord checks if the given string is a Pascal language keyword. It performs a case-insensitive comparison against a complete list of Pascal keywords including reserved words, operators and built-in identifiers.

See also

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