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

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

[Dotgnu-pnet-commits] pnetlib/runtime/System/IO Path.cs,1.17,1.18


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] pnetlib/runtime/System/IO Path.cs,1.17,1.18
Date: Fri, 10 Oct 2003 01:39:52 +0000

Update of /cvsroot/dotgnu-pnet/pnetlib/runtime/System/IO
In directory subversions:/tmp/cvs-serv25472/runtime/System/IO

Modified Files:
        Path.cs 
Log Message:


"Path.GetExtension" should return "." at the front of the extension.


Index: Path.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/runtime/System/IO/Path.cs,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** Path.cs     18 Aug 2003 06:42:46 -0000      1.17
--- Path.cs     10 Oct 2003 01:39:49 -0000      1.18
***************
*** 410,414 ****
                                        if(ch == '.')
                                        {
!                                               return path.Substring(posn + 1);
                                        }
                                        else 
if(IsDirectoryOrVolumeSeparator(ch))
--- 410,419 ----
                                        if(ch == '.')
                                        {
!                                               if((posn + 1) == path.Length)
!                                               {
!                                                       // Ends in a dot.
!                                                       return String.Empty;
!                                               }
!                                               return path.Substring(posn);
                                        }
                                        else 
if(IsDirectoryOrVolumeSeparator(ch))





reply via email to

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