Contents | Prev | Next

7.2.70 The upcase function

Description

The upcase function returns the uppercase letter corresponding to the parameter passed to it. NOTE: If there is no uppercase letter corresponding to the parameter passed to it then the parameter is returned unchanged. The type of the value returned by this function is always char.

Parameter

The upcase function's only parameter is an expression of char type.

Example

    upcase('a')  returns  'A'
    upcase('A')  returns  'A'
    upcase('h')  returns  'H'
    upcase('1')  returns  '1'
    upcase('+')  returns  '+'
    upcase('_')  returns  '_'

Portability

Operating Systems: All
Standard Pascal: No

Contents | Prev | Next