[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/IO Path.cs,1.10,1.11
From: |
Gopal.V <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/IO Path.cs,1.10,1.11 |
Date: |
Mon, 09 Dec 2002 06:42:22 -0500 |
Update of /cvsroot/dotgnu-pnet/pnetlib/runtime/System/IO
In directory subversions:/tmp/cvs-serv28992/runtime/System/IO
Modified Files:
Path.cs
Log Message:
Patch ID : 784, Qeygh . Checkin by gopal
Index: Path.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/runtime/System/IO/Path.cs,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -r1.10 -r1.11
*** Path.cs 22 Nov 2002 10:36:12 -0000 1.10
--- Path.cs 9 Dec 2002 11:42:20 -0000 1.11
***************
*** 119,124 ****
--- 119,138 ----
{
String fname=GetFileName(path);
+
+ if (fname == null) return null;
+
if(fname.IndexOf('.')==-1)return fname;
return fname.Substring(0,fname.LastIndexOf('.'));
+ }
+
+ public static String GetExtension(String path)
+ {
+ String fname = GetFileName( path );
+
+ if (fname == null) return null;
+
+ if (fname.IndexOf( '.' ) == -1) return String.Empty;
+
+ return fname.Substring( fname.LastIndexOf( '.' ) );
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/IO Path.cs,1.10,1.11,
Gopal.V <address@hidden> <=