You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by am...@apache.org on 2011/05/30 15:04:16 UTC

svn commit: r1129153 - /xerces/c/branches/xerces-2/src/xercesc/util/XMLURL.cpp

Author: amassari
Date: Mon May 30 13:04:15 2011
New Revision: 1129153

URL: http://svn.apache.org/viewvc?rev=1129153&view=rev
Log:
Hexadecimal digits are in the range A-F only (XERCESC-1966)

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

Modified: xerces/c/branches/xerces-2/src/xercesc/util/XMLURL.cpp
URL: http://svn.apache.org/viewvc/xerces/c/branches/xerces-2/src/xercesc/util/XMLURL.cpp?rev=1129153&r1=1129152&r2=1129153&view=diff
==============================================================================
--- xerces/c/branches/xerces-2/src/xercesc/util/XMLURL.cpp (original)
+++ xerces/c/branches/xerces-2/src/xercesc/util/XMLURL.cpp Mon May 30 13:04:15 2011
@@ -117,8 +117,8 @@ static const XMLCh gListSix[]    = { chP
 static bool isHexDigit(const XMLCh toCheck)
 {
     if ((toCheck >= chDigit_0) && (toCheck <= chDigit_9)
-    ||  (toCheck >= chLatin_A) && (toCheck <= chLatin_Z)
-    ||  (toCheck >= chLatin_a) && (toCheck <= chLatin_z))
+    ||  (toCheck >= chLatin_A) && (toCheck <= chLatin_F)
+    ||  (toCheck >= chLatin_a) && (toCheck <= chLatin_f))
     {
         return true;
     }
@@ -130,7 +130,7 @@ static unsigned int xlatHexDigit(const X
     if ((toXlat >= chDigit_0) && (toXlat <= chDigit_9))
         return (unsigned int)(toXlat - chDigit_0);
 
-    if ((toXlat >= chLatin_A) && (toXlat <= chLatin_Z))
+    if ((toXlat >= chLatin_A) && (toXlat <= chLatin_F))
         return (unsigned int)(toXlat - chLatin_A) + 10;
 
     return (unsigned int)(toXlat - chLatin_a) + 10;



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