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

UpperCase

Return an uppercase version of a string.

Declaration

Source position: sysstrh.inc line 73

function UpperCase(

  const s: ansistring

):ansistring; overload;

function UpperCase(

  const s: ansistring;

  LocaleOptions: TLocaleOptions

):ansistring; overload;

function UpperCase(

  const s: UnicodeString

):UnicodeString; overload;

Description

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

Errors

None.

See also

AnsiLowerCase

  

Return a lowercase version of a string.

LowerCase

  

Return a lowercase version of a string.

AnsiUpperCase

  

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

Example

Program Example87;

{ This program demonstrates the UpperCase function }

Uses sysutils;

Begin
  Writeln (UpperCase('this will come OUT ALL uPpErCaSe !'));
End.

Documentation generated on: Nov 23 2024