toggleCASE by teebee(pooq)

a=io.read"*a"c=0 for i=1,#a do b=a:byte(i)c=b==10 and 0 or c if 64<b and b<91 then b=b+32 c=32-c end io.write(a.char(b-c))end

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page