Mercurial > hg > octave-lyh
diff src/mappers.cc @ 2267:4028b7c79927
[project @ 1996-05-24 00:39:30 by jwe]
author | jwe |
---|---|
date | Fri, 24 May 1996 00:41:42 +0000 |
parents | c0ec4630bd31 |
children | 4f095783ee43 |
line wrap: on
line diff
--- a/src/mappers.cc +++ b/src/mappers.cc @@ -408,6 +408,24 @@ return isxdigit (c); } +int +xtoascii (int c) +{ + return toascii (c); +} + +int +xtolower (int c) +{ + return tolower (c); +} + +int +xtoupper (int c) +{ + return toupper (c); +} + void install_mapper_functions (void) { @@ -549,6 +567,15 @@ DEFUN_MAPPER (tanh, 0, tanh, 0, tanh, 0.0, 0.0, 0, "tanh (X): compute tanh (X) for each element of X"); + DEFUN_MAPPER (toascii, xtoascii, 0, 0, 0, 0.0, 0.0, 1, + "toascii (STRING): return ASCII representation of STRING in a matrix"); + + DEFUN_MAPPER (tolower, xtolower, 0, 0, 0, 0.0, 0.0, 2, + "tolower (STRING): convert upper case characters to lower case in STRING"); + + DEFUN_MAPPER (toupper, xtoupper, 0, 0, 0, 0.0, 0.0, 2, + "toupper (STRING): convert lower case characters to upper case in STRING"); + DEFALIAS (gammaln, lgamma); }