[Overview][Constants][Types][Procedures and functions][Index] Reference for unit 'utility' (#aros)


Convert a character to upper case.


Source position: utility.pas line 234

function ToUpper(

  c: LongWord





Character to be converted.

Function result

Upper case version of input character.


Converts a character to upper case, handling international character sets. Currently only works for ASCII characters. Would not be difficult to adapt for other character sets (Unicode for example).

Whenever locale.library is installed in a system, this function is replaced by language-specific code. This means that depending on which language the user has currently selected, a given character may return different results when passed to this function. This fact must be taken into consideration when using this function.

See also



Convert a character to lower case.

Documentation generated on: 2017-01-10