ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/AnywhereTS-MSSQL/trunk/SvnVersionHelper/Program.cs
(Generate patch)

Comparing trunk/SvnVersionHelper/Program.cs (file contents):
Revision 198 by william, Mon Jul 16 16:27:03 2012 UTC vs.
Revision 199 by william, Mon Jul 16 17:02:21 2012 UTC

# Line 30 | Line 30 | namespace SvnVersionHelper
30                  while (!sr.EndOfStream)
31                  {
32                      string line = sr.ReadLine();
33 <                    if (line.ToLower().Contains("private const string Minor = ".ToLower()))
33 >                    if (line.ToLower().Contains("private const string Minor = ".ToLower()) ||
34 >                        line.ToLower().Contains("Private Const Minor As String = ".ToLower()))
35                      {
36                          Console.WriteLine("########## found ########## Minor ###########");
37                          Console.WriteLine("{0} (transformed to) ",line);
38                          string line2 = line.Replace("private const string Minor = ", "").Trim().Replace(";", "");
39 <                        //Console.WriteLine(line2);
39 >                        line2 = line2.Replace("Private Const Minor As String = ", "").Trim();
40 >                        Console.WriteLine(line2);
41  
42 <                        string[] shifts = line2.Split('|');
42 >                        string[] shifts = line2.Split(new string[]{"|","Or"}, StringSplitOptions.RemoveEmptyEntries);
43                          List<int> shift_ors = new List<int>();
44                          int final_value = 0;
45                          foreach (string shift in shifts)
# Line 46 | Line 48 | namespace SvnVersionHelper
48                              string t_shift = shift.Trim();
49                              //Console.Write("shift: {0} = ", t_shift);
50  
51 <                            if (t_shift.Contains("<<"))
51 >                            if (t_shift.Contains("<<") || t_shift.Contains("Or"))
52                              {
53 <                                string[] shift_registers = t_shift.Split(new string[] { "<<" }, StringSplitOptions.RemoveEmptyEntries);
53 >                                string[] shift_registers = t_shift.Split(new string[] { "<<", "Or" }, StringSplitOptions.RemoveEmptyEntries);
54                                  //foreach (string shift_register in shift_registers)
55                                  //{
56                                  //    string t_shift_reg = shift_register.Trim();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines