Esempio n. 1
0
        public static string Titaah_decode(string sentence)
        {
            string sequences = "";
            // Ne rien modifier au dessus de ce commentaire
            string tmp1 = "";

            sentence = sentence.Replace("ti", ". ");
            sentence = sentence.Replace("Ti", ". ");
            sentence = sentence.Replace("taah", "_ ");
            sentence = sentence.Replace("Taah", "_ ");
            sentence = sentence.Replace("!", "_ _ _ .");
            sentence = sentence.Replace(",", " / ");
            sentence = sentence.Replace("  /  ", " / ");
            sentence = sentence.Replace("  .", "   .");
            sentence = sentence.Replace("  _", "   _");

            tmp1 = TD4.Morse_decode(sentence);

            // Je voulais boucler pour catcher n'importe quel autre Maj Char mais manque de temps
            tmp1 = tmp1.Replace("W", "w");

            sequences = tmp1;
            // Ne rien modifier au dessous de ce commentaire
            return(sequences);
        }
Esempio n. 2
0
        public static string Titaah_decode(string sentence)
        {
            string sequences = "";

            // Ne rien modifier au dessus de ce commentaire

            sentence = sentence.Replace("ti", ". ");
            sentence = sentence.Replace("Ti", ". ");
            sentence = sentence.Replace("taah", "_ ");
            sentence = sentence.Replace("Taah", "_ ");
            sentence = sentence.Replace("!", "_ _ _ .");
            sentence = sentence.Replace(",", " / ");
            sentence = sentence.Replace("  /  ", " / ");
            sentence = sentence.Replace("  .", "   .");
            sentence = sentence.Replace("  _", "   _");

            sequences = TD4.Morse_decode(sentence);

            // Ne rien modifier au dessous de ce commentaire
            return(sequences);
        }