Unit 'System' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#rtl]

LowerCase

Return lowercase version of a string.

Declaration

Source position: systemh.inc line 1309

function LowerCase(

  const s: shortstring

):shortstring; overload;

function LowerCase(

  c: AnsiChar

):AnsiChar; overload;

function LowerCase(

  const s: ansistring

):ansistring;

function LowerCase(

  const s: UnicodeString

):UnicodeString;

function LowerCase(

  c: UnicodeChar

):UnicodeChar;

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

Upcase

  

Convert a string to all uppercase.

Example

program Example73;

{ Program to demonstrate the Lowercase function. }

var c:char;

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

Documentation generated on: Oct 02 2024