Is it possible to take a letter, say, "A" and change it to a symbol, but can still be turned on Is it back to its original form (case-sensitive)? For example:
public zero doIt (string input) {// do magic work // display result} * input = a * result = ^ $ $ < / Code>
string ORIGINAL_CHARS = "ABCD"; String MAGICAL_CHARS = "$ # @%"; Public Zero DoMagic (string input) {string output = input; (I & gt; MAGICAL_CHARS.Length) {continue;} output = output.reply (ORIGINAL_CHARS [i], magical_ars [i] for i (i.I.I.I.I = 0; I & lt; ORIGINAL_CHARS.Length; i ++) );} Return output;} Public Zero UndoMagic (string input) {string output = input; (for int i = 0; i & lt; MAGICAL_CHARS.Length; i ++) (if (i> ORIGINAL_CHARS.Length ) {Continue;} Output = Output. Replay (Magicic's ARS [I], Origin_ARS [I]);} Return Output;}
Comments
Post a Comment