in reply to bitwise string operator question

"a" ^ " " flips case. "a" | " " sets lower case. "a" & ~" " sets upper case. "a" & " " sets to space. urgs!

Replies are listed 'Best First'.
Re: Re: bitwise string operator question
by jmm (Initiate) on Aug 08, 2003 at 15:15 UTC
    Where "a" is used, it means any letter, upper or lower case (like you usually use x in algebra). The first three are correct, but the fourth is only true for lowercase letters - for upper case letters the result of anding with space is null rather than space.