/[AnywhereTS-MSSQL]/trunk/SvnVersionHelper/Program.cs
ViewVC logotype

Diff of /trunk/SvnVersionHelper/Program.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/SvnVersionHelper/Program.cs	2012/07/16 16:34:11	198
+++ trunk/SvnVersionHelper/Program.cs	2012/07/16 17:02:21	199
@@ -30,14 +30,16 @@
                 while (!sr.EndOfStream)
                 {
                     string line = sr.ReadLine();
-                    if (line.ToLower().Contains("private const string Minor = ".ToLower()))
+                    if (line.ToLower().Contains("private const string Minor = ".ToLower()) ||
+                        line.ToLower().Contains("Private Const Minor As String = ".ToLower()))
                     {
                         Console.WriteLine("########## found ########## Minor ###########");
                         Console.WriteLine("{0} (transformed to) ",line);
                         string line2 = line.Replace("private const string Minor = ", "").Trim().Replace(";", "");
-                        //Console.WriteLine(line2);
+                        line2 = line2.Replace("Private Const Minor As String = ", "").Trim();
+                        Console.WriteLine(line2);
 
-                        string[] shifts = line2.Split('|');
+                        string[] shifts = line2.Split(new string[]{"|","Or"}, StringSplitOptions.RemoveEmptyEntries);
                         List<int> shift_ors = new List<int>();
                         int final_value = 0;
                         foreach (string shift in shifts)
@@ -46,9 +48,9 @@
                             string t_shift = shift.Trim();
                             //Console.Write("shift: {0} = ", t_shift);
 
-                            if (t_shift.Contains("<<"))
+                            if (t_shift.Contains("<<") || t_shift.Contains("Or"))
                             {
-                                string[] shift_registers = t_shift.Split(new string[] { "<<" }, StringSplitOptions.RemoveEmptyEntries);
+                                string[] shift_registers = t_shift.Split(new string[] { "<<", "Or" }, StringSplitOptions.RemoveEmptyEntries);
                                 //foreach (string shift_register in shift_registers)
                                 //{
                                 //    string t_shift_reg = shift_register.Trim();

 

  ViewVC Help
Powered by ViewVC 1.1.22