Ejemplo n.º 1
0
        public static void Main(string [] args)
        {
            TextWriter w = Console.Out;

            w.NewLine = "\n";

            w.WriteLine(@"/*
DO NOT MODIFY THIS FILE DIRECTLY.

This file is automatically generated by {0}.exe.
The source for this generator should be in Mono repository
(mcs/class/corlib/Mono.Globalization.Unicode directory).
*/

#ifndef __UNICODE_DATA_H
#define __UNICODE_DATA_H

#include <glib.h>

", Assembly.GetEntryAssembly().GetName().Name);
            var ud  = new UnicodeData5_1_0();
            var ucd = ud.ParseFile(args [0]);
            var ucg = new UnicodeDataCodeGeneratorC5_1_0(ud, w);

            ucg.GenerateStructures();
            w.WriteLine();
            ucg.GenerateUnicodeCategoryListC(ucd);
            w.WriteLine();
            ucg.GenerateSimpleCaseMappingListC(ucd);
            w.WriteLine();
            ucg.GenerateSimpleTitlecaseMappingListC(ucd);
            w.WriteLine(@"
#endif
");
        }
Ejemplo n.º 2
0
		public static void Main (string [] args)
		{
			TextWriter w = Console.Out;
			w.NewLine = "\n";

			w.WriteLine (@"/*
DO NOT MODIFY THIS FILE DIRECTLY.

This file is automatically generated by {0}.exe.
The source for this generator should be in Mono repository
(mcs/class/corlib/Mono.Globalization.Unicode directory).
*/

#ifndef __UNICODE_DATA_H
#define __UNICODE_DATA_H

#include <glib.h>

", Assembly.GetEntryAssembly ().GetName ().Name);
			var ud = new UnicodeData5_1_0 ();
			var ucd = ud.ParseFile (args [0]);
			var ucg = new UnicodeDataCodeGeneratorC5_1_0 (ud, w);
			ucg.GenerateStructures ();
			w.WriteLine ();
			ucg.GenerateUnicodeCategoryListC (ucd);
			w.WriteLine ();
			ucg.GenerateSimpleCaseMappingListC (ucd);
			w.WriteLine ();
			ucg.GenerateSimpleTitlecaseMappingListC (ucd);
			w.WriteLine (@"
#endif
");
		}