[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'sysutils' (#rtl)

AnsiUpperCase

Return an uppercase version of a string, taking into account special characters.

Declaration

Source position: sysstrh.inc line 77

function AnsiUpperCase(

  const s: String

):String;

Description

AnsiUpperCaseconverts the string Sto uppercase 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.

Remark: On linux, no language setting is taken in account yet.

Errors

None.

See also

AnsiStrUpper

  

Convert a null-terminated string to all-uppercase characters.

AnsiStrLower

  

Convert a null-terminated string to all-lowercase characters.

AnsiLowerCase

  

Return a lowercase version of a string.

Example

Program Example60;

{ This program demonstrates the AnsiUpperCase function }

Uses sysutils;

Procedure Testit (S : String);

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

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