Upper and Lower Case Conversion
One of those pieces of "boiler-plate" requirements that goes into many
applications, here's a traditional lower-case converter
presented as a Dyalog d-fn...
lc←'abcdefghijklmnopqrstuvwxyzåäöàæéñøü' ⍝ (lower case alphabet)
uc←'ABCDEFGHIJKLMNOPQRSTUVWXYZÅÄÖÀÆÉÑØÜ' ⍝ (upper case alphabet)
⍝ ... of simple array.
The advent of Unicode means that the above isn't necessarily
universally useable, and an alternative uses Microsoft .NET (in the
same way that might be done from other languages)...
⍝ Lower-case conversion using .NET (from Morten
And, as a nicety when handling names we need something to handle the common prefixes...
Page created 23 March
- Conversion to upper case left as an exercise for the reader
- There is a more comprehensive "name handler" in Dyalog's <dfns> workspace
- Timing comparisons for <lcase> versus <ToLower> are educational...