Skip to content

Commit c43e9fc

Browse files
authored
Merge pull request #2 from abrudz/patch-1
Prefer ⎕C over 819⌶
2 parents 033a71c + 1c5b4bb commit c43e9fc

File tree

1 file changed

+22
-11
lines changed

1 file changed

+22
-11
lines changed

APLSource/APLTreeUtils.apln

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,39 @@
11
:Namespace APLTreeUtils
22

3-
⍝ *** Version 6.0.12020-05-29 ***
3+
⍝ *** Version 6.1.02021-02-18 ***
44
⍝ ## Overview
55
⍝ Note that `APLTreeUtils` does not work with the Classic edition - it requires Unicode.\\
66
⍝ ## Version History
7+
⍝ * 6.1.0
8+
⍝ `Uppercase` and `Lowercase` now prefer ⎕C over 819⌶ and can therefore accept all arrays under 18.0+
79
⍝ * 6.0.1
810
⍝ `WriteUtf8File` has been made more robust in case a race condition prevents it from accessing a file
911
⍝ * 6.0.0
1012
⍝ * Renamed: it's now APLTreeUtils.apln rather than APLTreeUtils.dyalog
1113
⍝ Kai Jaeger - APL Team Ltd.\\
1214
⍝ Homepage: <https://github.com/aplteam/APLTreeUtils/>
1315

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
1926
2027

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
2637
2738

2839
IsChar←{0 2∊⍨10|⎕dr ⍵}

0 commit comments

Comments
 (0)