summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-06-01 11:17:15 -0700
committerKaz Kylheku <kaz@kylheku.com>2021-06-01 11:17:15 -0700
commit00ae1477295136c8a3e81b5afae1b714de9822f8 (patch)
tree85939011ccc217a0ebc78b6baa8235bbd61287dd /txr.1
parentad0b7a7d38d77f0cb90e1509e2eb56a6cbb8db75 (diff)
downloadtxr-00ae1477295136c8a3e81b5afae1b714de9822f8.tar.gz
txr-00ae1477295136c8a3e81b5afae1b714de9822f8.tar.bz2
txr-00ae1477295136c8a3e81b5afae1b714de9822f8.zip
chr-iscntrl: recognize Unicode C0 and C1.
* lib.c (chr_iscntrl): Don't use iswcntrl; it fails to report 0x80-0x9F as control characters. A bit of hand-crafted logic does the job. * txr.1: Redocumented.
Diffstat (limited to 'txr.1')
-rw-r--r--txr.19
1 files changed, 6 insertions, 3 deletions
diff --git a/txr.1 b/txr.1
index 9de10070..de1e1912 100644
--- a/txr.1
+++ b/txr.1
@@ -24586,11 +24586,14 @@ function returns
.code t
if the character
.meta char
-is a character whose code
-ranges from 0 to 31, or is 127. In other words, any non-printable ASCII
-character. For other characters, it returns
+is a control character. For all other character, it returns
.codn nil .
+A control character is one which belongs to the Unicode C0 or C1 block.
+C0 consists of the the characters U+0000 through U+001F, plus the
+character U+007F. These are the original ASCII control characters.
+Block C1 consists of U+0080 through U+009F.
+
.coNP Functions @ chr-isdigit and @ chr-digit
.synb
.mets (chr-isdigit << char )