상속: IPostProcessor
예제 #1
0
 public void PostProcessTest1()
 {
     ViePP target = new ViePP();
     string text = "ưon";
     string expected = "ươn";
     string actual;
     actual = target.PostProcess(text);
     Assert.AreEqual(expected, actual);
 }
예제 #2
0
        // ISO369-3 codes: http://www.sil.org/iso639-3/codes.asp
        public static IPostProcessor createProcessor(ISO639 code)
        {
            IPostProcessor processor;

            switch (code)
            {
                case ISO639.eng:
                    processor = new EngPP();
                    break;
                case ISO639.vie:
                    processor = new ViePP();
                    break;
                default:
                    throw new Exception(code.ToString());
            }

            return processor;
        }
예제 #3
0
        // ISO369-3 codes: http://www.sil.org/iso639-3/codes.asp


        public static IPostProcessor createProcessor(ISO639 code)
        {
            IPostProcessor processor;

            switch (code)
            {
            case ISO639.eng:
                processor = new EngPP();
                break;

            case ISO639.vie:
                processor = new ViePP();
                break;

            default:
                throw new Exception(code.ToString());
            }

            return(processor);
        }
예제 #4
0
 public void PostProcessTest2()
 {
     ViePP target = new ViePP();
     string text = "‘ê ‘ổ ‘ô";
     string expected = "ề ‘ổ ồ";
     string actual;
     actual = target.PostProcess(text);
     Assert.AreEqual(expected, actual);
 }