Skip to content

AnsiUpperCase

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

Declaration

Source position: sysstrh.inc line 90

  function AnsiUpperCase(const s: string) : string;

Description

AnsiUpperCase converts the string S to 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

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

Errors

None.

See also

Name Description
AnsiLowerCase Return a lowercase version of a string.
AnsiStrLower Convert a null-terminated string to all-lowercase characters.
AnsiStrUpper Convert a null-terminated string to all-uppercase characters.

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.