Sign in Join
FPDoc Onlineexperiment

LowerCase function

In unit System

Return lowercase version of a string.

Declaration

pascal
function LowerCase(const s: shortstring): shortstring; overload

Description

Lowercase returns the lowercase version of its argument C. If its argument is a string, then the complete string is converted to lowercase. The type of the returned value is the same as the type of the argument.

Lowercase does not change the number of characters (or bytes) in an ansistring.

Errors

None.

See also

Example: ex73

pascal
program Example73;

{ Program to demonstrate the Lowercase function. }

var c:char;

begin
  for c:='A' to 'Z' do
    write(lowercase(c));
  Writeln;
  Writeln(Lowercase('ABCDEFGHIJKLMNOPQRSTUVWXYZ'));
end.

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