dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnetlib/System/Text/RegularExpressions Chang


From: Gopal.V <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/System/Text/RegularExpressions ChangeLog,1.1,1.2 collections.cs,1.1,1.2 regex.cs,1.1,1.2
Date: Fri, 14 Feb 2003 12:21:34 -0500

Update of /cvsroot/dotgnu-pnet/pnetlib/System/Text/RegularExpressions
In directory subversions:/tmp/cvs-serv4144/System/Text/RegularExpressions

Modified Files:
        ChangeLog collections.cs regex.cs 
Log Message:
resync tree with original


Index: ChangeLog
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/System/Text/RegularExpressions/ChangeLog,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** ChangeLog   17 Dec 2002 15:50:12 -0000      1.1
--- ChangeLog   14 Feb 2003 17:21:32 -0000      1.2
***************
*** 1,2 ****
--- 1,10 ----
+ 2003-01-17  Gonzalo Paniagua Javier <address@hidden>
+ 
+       * collections.cs: fixed bug #30091.
+ 
+ 2002-12-20  Gonzalo Paniagua Javier <address@hidden>
+ 
+       * regex.cs: fixed little mistake (closes #35860).
+ 
  2002-11-12 Jackson Harper <address@hidden>
  

Index: collections.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/System/Text/RegularExpressions/collections.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** collections.cs      17 Dec 2002 15:50:12 -0000      1.1
--- collections.cs      14 Feb 2003 17:21:32 -0000      1.2
***************
*** 108,111 ****
--- 108,126 ----
                }
                
+               public Group this[string groupName] {
+                       get {
+                               foreach (object o in list) {
+                                       if (!(o is Match))
+                                               continue;
+ 
+                                       int index = ((Match) 
o).Regex.GroupNumberFromName (groupName);
+                                       if (index != -1)
+                                               return this [index];
+                               }
+ 
+                               return null;
+                       }
+               }
+               
                internal GroupCollection () {
                }

Index: regex.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/System/Text/RegularExpressions/regex.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** regex.cs    17 Dec 2002 15:50:12 -0000      1.1
--- regex.cs    14 Feb 2003 17:21:32 -0000      1.2
***************
*** 124,128 ****
  
                public static string[] Split (string input, string pattern, 
RegexOptions options) {
!                       Regex re = new Regex (input, options);
                        return re.Split (input);
                }
--- 124,128 ----
  
                public static string[] Split (string input, string pattern, 
RegexOptions options) {
!                       Regex re = new Regex (pattern, options);
                        return re.Split (input);
                }





reply via email to

[Prev in Thread] Current Thread [Next in Thread]