System.SysUtils.StrUpper

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function StrUpper(Str: PAnsiChar): PAnsiChar;
function StrUpper(Str: PWideChar): PWideChar;

C++

extern DELPHI_PACKAGE char * __fastcall StrUpper _DEPRECATED_ATTRIBUTE1("Moved to the AnsiStrings unit") (char * Str)/* overload */;

Properties

Type Visibility Source Unit Parent
function public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils System.SysUtils

Description

Warning: The ANSI version of StrUpper is deprecated. Please use the AnsiStrings unit.

Returns a string in uppercase.

StrUpper converts Str to uppercase and returns Str. StrUpper only returns a copy of Str if the type of the return variable forces a cast.

Note: If the source string contains international characters, use AnsiStrUpper instead. If the source string is an AnsiString (long string), use UpperCase (or AnsiUpperCase) instead.

See Also

Code Examples