示例#1
0
    public static void Main(string[] args)
    {
        /*
         * if(args.Length<1){
         *      System.Console.WriteLine("引数を入力して下さい。");
         *      return;
         * }
         * System.Console.WriteLine(CreateRange(args[0]));
         * //*/

        /*
         * if(args.Length<2){
         *      System.Console.WriteLine("引数を入力して下さい。");
         *      return;
         * }
         * MethodTrial.SwitchCase(str2char(args[0]),str2char(args[1]));
         * //*/

        System.IO.Stream       str = System.IO.File.OpenWrite("GeneralCategories.dat");
        System.IO.StreamWriter sw  = new System.IO.StreamWriter(str);
        for (int i = 0x0; i < 0x10000; i += 0x100)
        {
            System.Console.WriteLine(i.ToString("X4"));
            MethodTrial.SelectMethod(sw, (char)i, (char)(i + 0xFF));
        }
        sw.Close();
        str.Close();
    }
示例#2
0
    // 特定のカテゴリに対する範囲を出力します。
    public static string CreateRange(string category)
    {
        WriteIntRange w = new WriteIntRange();

        foreach (string[] dat in MethodTrial.enum_chars(delegate(string[] d){ return(d[2] == category); }))
        {
            w.Register(dat[0][0]);
        }

        return(w.ToString());
    }