|
1 | 1 | :Namespace APLTreeUtils |
2 | 2 |
|
3 | | -⍝ *** Version 6.0.1 ⋄ 2020-05-29 *** |
| 3 | +⍝ *** Version 6.1.0 ⋄ 2021-02-18 *** |
4 | 4 | ⍝ ## Overview |
5 | 5 | ⍝ Note that `APLTreeUtils` does not work with the Classic edition - it requires Unicode.\\ |
6 | 6 | ⍝ ## Version History |
| 7 | +⍝ * 6.1.0 |
| 8 | +⍝ `Uppercase` and `Lowercase` now prefer ⎕C over 819⌶ and can therefore accept all arrays under 18.0+ |
7 | 9 | ⍝ * 6.0.1 |
8 | 10 | ⍝ `WriteUtf8File` has been made more robust in case a race condition prevents it from accessing a file |
9 | 11 | ⍝ * 6.0.0 |
10 | 12 | ⍝ * Renamed: it's now APLTreeUtils.apln rather than APLTreeUtils.dyalog |
11 | 13 | ⍝ Kai Jaeger - APL Team Ltd.\\ |
12 | 14 | ⍝ Homepage: <https://github.com/aplteam/APLTreeUtils/> |
13 | 15 |
|
14 | | - ∇ array←Uppercase array |
15 | | - ⍝ Fast uppercasing that excepts scalars, vectors and matrices as well as vectors and |
16 | | - ⍝ matrices of text vectors.\\ |
17 | | - ⍝ Note that `Uppercase` converts lower case chars well beyond the ANSII character set. |
18 | | - array←1(819⌶)array |
| 16 | + ∇ array←Uppercase array;⎕IO;⎕ML |
| 17 | + ⍝ Fast uppercasing that accepts scalars, vectors and matrices as well as vectors and |
| 18 | + ⍝ matrices of text vectors. Accepts all arrays under 18.0+.\\ |
| 19 | + ⍝ Note that `Uppercase` converts lower case chars well beyond the ANSI character set. |
| 20 | + ⎕ML←⎕IO←1 |
| 21 | + :If 18≤2 1⊃'.'⎕VFI 2⊃'#'⎕WG'APLVersion' |
| 22 | + array←1 ⎕C array |
| 23 | + :Else |
| 24 | + array←1(819⌶)array |
| 25 | + :EndIf |
19 | 26 | ∇ |
20 | 27 |
|
21 | | - ∇ array←Lowercase array |
22 | | - ⍝ Fast lowercasing that excepts scalars, vectors and matrices as well as vectors and |
23 | | - ⍝ matrices of text vectors.\\ |
24 | | - ⍝ Note that `Lowercase` converts upper case chars well beyond the ANSII character set. |
25 | | - array←0(819⌶)array |
| 28 | + ∇ array←Lowercase array;⎕IO;⎕ML |
| 29 | + ⍝ Fast lowercasing that accepts scalars, vectors and matrices as well as vectors and |
| 30 | + ⍝ matrices of text vectors. Accepts all arrays under 18.0+.\\ |
| 31 | + ⍝ Note that `Lowercase` converts upper case chars well beyond the ANSI character set. |
| 32 | + :If 18≤2 1⊃'.'⎕VFI 2⊃'#'⎕WG'APLVersion' |
| 33 | + array←¯1 ⎕C array |
| 34 | + :Else |
| 35 | + array←0(819⌶)array |
| 36 | + :EndIf |
26 | 37 | ∇ |
27 | 38 |
|
28 | 39 | IsChar←{0 2∊⍨10|⎕dr ⍵} |
|
0 commit comments