You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by ca...@apache.org on 2005/04/22 22:02:34 UTC

cvs commit: xml-xerces/c/src/xercesc/framework/psvi XSValue.cpp

cargilld    2005/04/22 13:02:34

  Modified:    c/src/xercesc/framework/psvi XSValue.cpp
  Log:
  Use isspace instead of isSpace as data is char not xmlch.
  
  Revision  Changes    Path
  1.23      +11 -4     xml-xerces/c/src/xercesc/framework/psvi/XSValue.cpp
  
  Index: XSValue.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/framework/psvi/XSValue.cpp,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- XSValue.cpp	5 Apr 2005 20:26:48 -0000	1.22
  +++ XSValue.cpp	22 Apr 2005 20:02:34 -0000	1.23
  @@ -16,6 +16,9 @@
   
   /*
    * $Log$
  + * Revision 1.23  2005/04/22 20:02:34  cargilld
  + * Use isspace instead of isSpace as data is char not xmlch.
  + *
    * Revision 1.22  2005/04/05 20:26:48  cargilld
    * Update XSValue to handle leading and trailing whitespace.
    *
  @@ -90,6 +93,10 @@
   
   #include <limits.h>
   #include <errno.h>
  +#include <string.h>
  +#include <ctype.h>
  +#include <math.h>
  +#include <float.h>
   
   #include <xercesc/framework/psvi/XSValue.hpp>
   
  @@ -1720,7 +1727,7 @@
                   (retVal.f_long > SHRT_MAX))
               {
                   status = st_FOCA0002;
  -                return 0;
  +                return false;
               }
               break;
           case XSValue::dt_byte:
  @@ -1728,7 +1735,7 @@
                   (retVal.f_long > SCHAR_MAX))
               {
                   status = st_FOCA0002;
  -                return 0;
  +                return false;
               }
               break;        
           case XSValue::dt_unsignedInt:
  @@ -1774,7 +1781,7 @@
       if ( (endptr - nptr) != strLen)
       {
           for (unsigned int i=endptr - nptr; i <strLen; i++) {
  -            if (!XMLPlatformUtils::fgTransService->isSpace(nptr[i])) {
  +            if (!isspace(nptr[i])) {
                   status = st_FOCA0002;
                   return false;
               }
  
  
  

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