示例#1
0
        public static void TestParse()
        {
            string content =
                "[root] -> Hello.\n" +
                "[root] -> Hi [nickname as name]!\n" +
                "  Do you mind if I call you '[=name]'?\n" +
                "# Add more nicknames if required.\n" +
                "[nickname] -> mate\n" +
                "[nickname] -> buddy\n";

            var lines = LineSplitter.getLines(content, "internal");

            Console.WriteLine(lines.Count);
            foreach (var line in lines)
            {
                Console.WriteLine(line.ToString());
            }
        }