Differences between revisions 1 and 2
Revision 1 as of 2015-02-27 01:28:22
Size: 611
Comment:
Revision 2 as of 2015-02-27 01:29:21
Size: 643
Comment:
Deletions are marked like this. Additions are marked like this.
Line 29: Line 29:

CategoryDyalogDotNetExamples

netUpperLowerCase

Overview

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 'Вторник'
ВТОРНИК

CategoryDyalogDotNetExamples

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