You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by ga...@apache.org on 2007/08/21 10:31:47 UTC

svn commit: r568018 - in /xerces/c/branches/xerces-2.7/src/xercesc/util: XMLURL.cpp XMLURL.hpp

Author: gareth
Date: Tue Aug 21 01:31:47 2007
New Revision: 568018

URL: http://svn.apache.org/viewvc?rev=568018&view=rev
Log:
add https scheme. Thanks to Boris Kolpackov

Modified:
    xerces/c/branches/xerces-2.7/src/xercesc/util/XMLURL.cpp
    xerces/c/branches/xerces-2.7/src/xercesc/util/XMLURL.hpp

Modified: xerces/c/branches/xerces-2.7/src/xercesc/util/XMLURL.cpp
URL: http://svn.apache.org/viewvc/xerces/c/branches/xerces-2.7/src/xercesc/util/XMLURL.cpp?rev=568018&r1=568017&r2=568018&view=diff
==============================================================================
--- xerces/c/branches/xerces-2.7/src/xercesc/util/XMLURL.cpp (original)
+++ xerces/c/branches/xerces-2.7/src/xercesc/util/XMLURL.cpp Tue Aug 21 01:31:47 2007
@@ -87,15 +87,21 @@
         chLatin_h, chLatin_t, chLatin_t, chLatin_p, chNull
 };
 
+static const XMLCh gHTTPSString[] =
+{
+        chLatin_h, chLatin_t, chLatin_t, chLatin_p, chLatin_s, chNull
+};
+
 static ProtoEntry gProtoList[XMLURL::Protocols_Count] =
 {
         { XMLURL::File     , gFileString    , 0  }
     ,   { XMLURL::HTTP     , gHTTPString    , 80 }
     ,   { XMLURL::FTP      , gFTPString     , 21 }
+    ,   { XMLURL::HTTPS    , gHTTPSString   , 443 }
 };
 
 // !!! Keep these up to date with list above!
-static const unsigned int gMaxProtoLen = 4;
+static const unsigned int gMaxProtoLen = 5;
 
 static const XMLCh gListOne[]    = { chColon, chForwardSlash, chNull };
 static const XMLCh gListTwo[]    = { chAt, chNull };

Modified: xerces/c/branches/xerces-2.7/src/xercesc/util/XMLURL.hpp
URL: http://svn.apache.org/viewvc/xerces/c/branches/xerces-2.7/src/xercesc/util/XMLURL.hpp?rev=568018&r1=568017&r2=568018&view=diff
==============================================================================
--- xerces/c/branches/xerces-2.7/src/xercesc/util/XMLURL.hpp (original)
+++ xerces/c/branches/xerces-2.7/src/xercesc/util/XMLURL.hpp Tue Aug 21 01:31:47 2007
@@ -45,6 +45,7 @@
         File
         , HTTP
         , FTP
+        , HTTPS
 
         , Protocols_Count
         , Unknown



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org