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 UriBuilder.cs,1.10,1.11 Uri.c


From: Gopal.V <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/System UriBuilder.cs,1.10,1.11 Uri.cs,1.33,1.34
Date: Fri, 23 May 2003 08:01:17 -0400

Update of /cvsroot/dotgnu-pnet/pnetlib/System
In directory subversions:/tmp/cvs-serv17625/System

Modified Files:
        UriBuilder.cs Uri.cs 
Log Message:
Improve Uri classes using regular expressions


Index: UriBuilder.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/System/UriBuilder.cs,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -r1.10 -r1.11
*** UriBuilder.cs       18 Nov 2002 21:44:45 -0000      1.10
--- UriBuilder.cs       23 May 2003 12:01:15 -0000      1.11
***************
*** 194,199 ****
  
                String esc_path = Path;
!               if (Uri.needsEscaping(esc_path,false))
!                       esc_path = Uri.impl_EscapeString(esc_path);
                maybeuri.Append(esc_path);
  
--- 194,198 ----
  
                String esc_path = Path;
!               esc_path = Uri.EscapeStringInternal(esc_path,true,true);
                maybeuri.Append(esc_path);
  

Index: Uri.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/System/Uri.cs,v
retrieving revision 1.33
retrieving revision 1.34
diff -C2 -r1.33 -r1.34
*** Uri.cs      23 Apr 2003 06:28:49 -0000      1.33
--- Uri.cs      23 May 2003 12:01:15 -0000      1.34
***************
*** 1,9 ****
  /*
!  * Uri.cs - Implementation of "System.Uri".
   *
   * Copyright (C) 2002  Free Software Foundation, Inc.
!  * Copyright (C) 2002  Gerard Toonstra.
!  * Copyright (C) 2002  Rich Baumann.
!  *
   * Contributed by Stephen Compall <address@hidden>
   * Contributions by Gerard Toonstra <address@hidden>
--- 1,7 ----
[...1890 lines suppressed...]
        {
!               UriScheme entry=(UriScheme) schemes[name];
!               if((entry=(UriScheme)schemes[name])!=null)
                {
!                       return entry.port;
                }
!               return -1;
        }
  
!       internal static String DefaultDelimiterForScheme (String name)
        {
!               UriScheme entry;
!               if((entry=(UriScheme)schemes[name])!=null)
!               {
!                       return entry.delim;
!               }
!               return "://";
!       }       
! }
! }//namespace





reply via email to

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