Sign in Join
FPDoc Onlineexperiment

AnsiLowerCase function

In unit sysutils

Return a lowercase version of a string.

Declaration

pascal
function AnsiLowerCase(const s: string): string

Description

AnsiLowerCase converts the string S to lowercase characters and returns the resulting string. It takes into account the operating system language settings when doing this, so special characters are converted correctly as well.

A widestring manager must be installed in order for this function to work correctly with various character sets.

Errors

None.

See also

Example: ex53

pascal
Program Example53;

{ This program demonstrates the AnsiLowerCase function }

Uses sysutils;

Procedure Testit (S : String);

begin
 Writeln (S,' -> ',AnsiLowerCase(S))
end;

Begin
  Testit('AN UPPERCASE STRING');
  Testit('Some mixed STring');
  Testit('a lowercase string');
End.

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