Skip to content

Instantly share code, notes, and snippets.

@kb10uy
Created December 16, 2014 10:43
Show Gist options
  • Select an option

  • Save kb10uy/fcbace51e40cd4264eb9 to your computer and use it in GitHub Desktop.

Select an option

Save kb10uy/fcbace51e40cd4264eb9 to your computer and use it in GitHub Desktop.
こころぴょんぴょんあーの氏のDaydream.exeでにゅうりょこころぴょんぴょんうされたぶんしょうをそれっぽこころぴょんぴょんうもとにもどすツール
using System;
using System.IO;
using System.Text;
public class DisDaydream {
public static void Main(string[] args) {
if (args.Length==0) {
Console.WriteLine("Usage : DisDaydream <input file> [<output file>]");
}
var inputf=args[0];
var str=File.ReadAllText(inputf);
str=str.Replace("こころぴょんぴょんあ","か");
str=str.Replace("こころぴょんぴょんい","き");
str=str.Replace("こころぴょんぴょんう","く");
str=str.Replace("こころぴょんぴょんえ","け");
str=str.Replace("こころぴょんぴょんお","こ");
str=str.Replace("こころぴょんぴょんや","きゃ");
str=str.Replace("こころぴょんぴょんゆ","きゅ");
str=str.Replace("こころぴょんぴょんよ","きょ");
if (args.Length==2) {
File.WriteAllText(args[1],str);
} else {
Console.WriteLine(str);
Console.ReadLine();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment