diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-12-23 06:58:09 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-12-23 06:58:09 -0800 |
commit | 5335d788dc601a50fc26319d39b21bdcaf1457b6 (patch) | |
tree | 76462febe097531a53d57a6db5848d0013bdab27 /txr.1 | |
parent | 7aacecd153ecfdd7b5c480dc419d4823e896ef1c (diff) | |
download | txr-5335d788dc601a50fc26319d39b21bdcaf1457b6.tar.gz txr-5335d788dc601a50fc26319d39b21bdcaf1457b6.tar.bz2 txr-5335d788dc601a50fc26319d39b21bdcaf1457b6.zip |
chr-isdigit and chr-isxdigit return value.
* lib.c (chr_isdigit, chr_isxdigit): Return the integer value
rather than the symbol t, which can be exploited to write
more compact scanning code.
* txr.1: Documented.
Diffstat (limited to 'txr.1')
-rw-r--r-- | txr.1 | 35 |
1 files changed, 22 insertions, 13 deletions
@@ -17646,11 +17646,11 @@ character. For other characters, it returns .mets (chr-isdigit << char ) .syne .desc -This function returns -.code t -if the character +If .meta char -is is an ASCII digit. +is is an ASCII digit character, +.code chr-isdigit +returns the integer value, 0 to 9, corresponding to that character. Otherwise, it returns .codn nil . @@ -17803,19 +17803,28 @@ is an ASCII upper case letter. Otherwise it returns .mets (chr-isxdigit << char ) .syne .desc -This function returns -.code t -if +If .meta char -is a hexadecimal digit. One of the ASCII -letters +is a hexadecimal digit character, +.code chr-isxdigit +returns its integer value 0 to 15. +Otherwise it returns +.codn nil . + +A hexadecimal digit is one of the ASCII +digit characters +.code 0 +through +.codn 9 , +or else one of the letters .code A through -.codn F , -or their lower-case equivalents, or an ASCII digit -.code 0 +.code F +or their lower-case equivalents +.code a through -.codn 9 . +.code f +denoting the values 10 to 15. .coNP Function @ chr-toupper .synb |