Author: amassari
Date: Mon May 30 13:03:03 2011
New Revision: 1129152
URL: http://svn.apache.org/viewvc?rev=1129152&view=rev
Log:
Hexadecimal digits are in the range A-F only (XERCESC-1966)
Modified:
xerces/c/trunk/src/xercesc/util/XMLURL.cpp
Modified: xerces/c/trunk/src/xercesc/util/XMLURL.cpp
URL:
http://svn.apache.org/viewvc/xerces/c/trunk/src/xercesc/util/XMLURL.cpp?rev=1129152&r1=1129151&r2=1129152&view=diff
==============================================================================
--- xerces/c/trunk/src/xercesc/util/XMLURL.cpp (original)
+++ xerces/c/trunk/src/xercesc/util/XMLURL.cpp Mon May 30 13:03:03 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: [email protected]
For additional commands, e-mail: [email protected]