Ejemplo n.º 1
0
 static void Main(string[] args)
 {
     if (args.Length == 0)
     {
         System.Console.WriteLine("Example demangling:");
         System.Console.WriteLine(CxxDemangler.Demangle("_ZTVSt15_Sp_counted_ptrIPiLN9__gnu_cxx12_Lock_policyE2EE"));
         System.Console.WriteLine(CxxDemangler.Demangle("_ZTVSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE"));
         System.Console.WriteLine(CxxDemangler.Demangle("_ZTVSt23_Sp_counted_ptr_inplaceIiSaIiELN9__gnu_cxx12_Lock_policyE2EE"));
     }
     else
     {
         for (int i = 0; i < args.Length; i++)
         {
             System.Console.WriteLine(CxxDemangler.Demangle(args[i]));
         }
     }
 }
        private void Verify(string input, string expectedOutput)
        {
            string actualOutput = CxxDemangler.Demangle(input);

            Assert.AreEqual(expectedOutput, actualOutput);
        }