Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #15765
| From | L A Walsh <bash@tlinx.org> |
|---|---|
| Newsgroups | gnu.bash.bug |
| Subject | Re: Unicode range and enumeration support. |
| Date | 2019-12-20 16:35 -0800 |
| Message-ID | <mailman.1206.1576888517.1979.bug-bash@gnu.org> (permalink) |
| References | (7 earlier) <5DF4BDF0.6000402@tlinx.org> <20191216163906.GV851@eeg.ccf.org> <5DFA7AE2.2060504@tlinx.org> <20191218194651.GH851@eeg.ccf.org> <5DFD68B9.3050202@tlinx.org> |
On 2019/12/18 11:46, Greg Wooledge wrote:
> To put it another way: you can write code that determines whether
> an input character $c matches a glob or regex like [Z-a]. (Maybe.)
>
> But, you CANNOT write code to generate all of the characters from Z to a
>
This generates characters from decimal 8300 - 8400 (because that range
includes raised and lowered digits which have the number and value
properties equivalent to 0-9.
----
No? 8300, 8400 arbitrary code points that contain raised and lowered numbers
that have the number property (as does 0..9):
perl -we' use strict; use v5.16;
my $c;
for ($c=8300;$c<8400;++$c) {
my $o=chr $c;
printf "%s", $o if $o=~/\pN/; #match unicode property "is_num"
};printf "\n"'
⁰⁴⁵⁶⁷⁸⁹₀₁₂₃₄₅₆₇₈₉
Q.E.D.
Is that sufficient proof?
Back to gnu.bash.bug | Previous | Next | Find similar
Re: Unicode range and enumeration support. L A Walsh <bash@tlinx.org> - 2019-12-20 16:35 -0800
csiph-web