Unit 'utility' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#os4units]

ToUpper

Convert a character to upper case.

Declaration

Source position: utility.pas line 301

function ToUpper(

  c: Char

):LongWord;

Arguments

c

  

Character to be converted.

Function result

Upper case version of input character.

Description

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

ToLower

  

Convert a character to lower case.


Documentation generated on: 2021-07-30