Differences between revisions 10 and 11
Revision 10 as of 2015-04-02 14:15:31
Size: 662
Comment:
Revision 11 as of 2015-04-02 14:18:48
Size: 603
Comment:
Deletions are marked like this. Additions are marked like this.
Line 27: Line 27:
CategoryDyalogExamplesDotNet CategoryDyalogDotNetExamples

netUpperLowerCase

LowerCase and UpperCase

The 2 functions ToLowercase and ToUppercase are used when dealing with Unicode characters:

 ToLowercase←{
     (0=1↑0⍴⍵):''
     ⎕USING←',mscorlib.dll'
     (⎕NEW System.String(⊂,⍵)).ToLowerInvariant
 }

 ToUppercase←{
     (0=1↑0⍴⍵):''
     ⎕USING←',mscorlib.dll'
     (⎕NEW System.String(⊂,⍵)).ToUpperInvariant
 }

      ToUppercase 'monday'
MONDAY

      ToUppercase¨ 'sunday' 'monday' 'tuesday'
 SUNDAY  MONDAY  TUESDAY

      ToUppercase 'Вторник'
ВТОРНИК

netUpperLowerCase (last edited 2015-04-14 20:18:23 by PierreGilbert)