Sign in Join
FPDoc Onlineexperiment

TPascalCodeGenerator.PrettyPrint function

Member of TPascalCodeGeneratorpublicIn unit PasCodeGen

Format string with proper capitalization

Declaration

pascal
function PrettyPrint(const S: string): string

Arguments

S

Input string to format

Function result

Formatted string with proper capitalization

Description

PrettyPrint formats a string by capitalizing the first character and leaving the rest unchanged. If the input string is empty, it returns an empty string.

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