Nyquist / XLISP 2.0  -  Contents | Tutorials | Examples | Reference

char-upcase


Type:   -   function (subr)
Source:   -   xlstr.c

Syntax

(char-upcase char)
char - a character expression
returns - the upper case character

Description

The 'char-upcase' function converts the 'char' expression to upper case. The upper case equivalent of 'char' is returned. If the 'char' is not alphabetic [a-z or A-Z], the character is returned unchanged.

Examples

(char-upcase #\0)  => #\0
(char-upcase #\A)  => #\A
(char-upcase #\a)  => #\A
(char-upcase #\[)  => #\[
(char-upcase #\+)  => #\+

See also:

  Back to Top


Nyquist / XLISP 2.0  -  Contents | Tutorials | Examples | Reference