Here's how you can work on boxed text: tolower L:0 ;:'This is a TEST' toupper L:0 ;:'This is another test.'
Files require a little more code... Thanks, -- Raul On Mon, Feb 23, 2015 at 3:51 PM, Frank Hamilton <[email protected]> wrote: > There's probably very good utilities for this, but these are some simple > alternatives to that might be useful. > > text=: 'God in Heaven, who makes near what is far, knows that we know what > our power is.' > > > > i0=: a. i. text > > i1=: i0 e. 97+i.26 > > (i0-32*i1){a. > > > > i0=: a. i. text > > i1=: (i0 >: 97) *. (i0 <: 97+26) > > (i0-32*i1){a. > > > > i0=: a. i. text > > a. {~ i0 - 32 * (i0 >: 97) *. (i0 <: 97+26) > > > > c1=: (]-32* (97+i.26) e.~ ]) > > convert=: a. {~ c1@ (a. i. ]) f. > > > > But these only convert from lower to upper, and only work on text, not > boxed text or files. > > On Sun, Feb 22, 2015 at 5:52 AM, Chernin, Nadav <[email protected]> > wrote: > >> Hi, >> I just started to learn J and I try to resolve some problems >> One of them is to convert text from lower case to upper case >> Please help me, because I can't find in all J sources that I have >> something that describe how to do this >> >> Thanks >> >> Nadav Chernin >> ATE Engineer >> >> Golan Building, Hagolan street & Hanegev street >> Airport City, Israel 70151 >> Corning Optical Communications Wireless LTD >> >> Office: (972) 8.9183.914 I Mobile: (972) 50.4172213 >> [email protected]<mailto:[email protected]> >> >> ---------------------------------------------------------------------- >> For information about J forums see http://www.jsoftware.com/forums.htm >> > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
