Differences between revisions 3 and 4
Revision 3 as of 2015-02-27 01:31:06
Size: 658
Comment:
Revision 4 as of 2015-03-09 15:18:00
Size: 635
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
<<TableOfContents>>

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

CategoryDyalogDotNetExamples

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