Skip to content

LowerCase

Return a lowercase version of a string.

Declaration

Source position: sysstrh.inc line 74

  function LowerCase(const s: string) : string;  Overload;
  function LowerCase(const s: string; LocaleOptions: TLocaleOptions)
                     : string;  Overload;
  function LowerCase(const V: variant) : string;  Overload;
  function LowerCase(const s: UnicodeString) : UnicodeString;  Overload;

Description

LowerCase returns the lowercase equivalent of S. Ansi characters are not taken into account, only ASCII codes below 127 are converted. It is completely equivalent to the lowercase function of the system unit, and is provided for compatibility only.

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

Errors

None.

See also

Name Description
AnsiLowerCase Return a lowercase version of a string.
AnsiUpperCase Return an uppercase version of a string, taking into account special characters.
UpperCase Return an uppercase version of a string.

Example

Program Example77;
{ This program demonstrates the LowerCase function }
Uses sysutils;
Begin
  Writeln (LowerCase('THIS WILL COME out all LoWeRcAsE !'));
End.