(file) Return to CommonUTF.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

Diff for /pegasus/src/Pegasus/Common/CommonUTF.cpp between version 1.25 and 1.26

version 1.25, 2009/12/15 11:39:33 version 1.26, 2010/06/06 17:04:16
Line 317 
Line 317 
  
 Boolean isUTF8Aux(const char *legal) Boolean isUTF8Aux(const char *legal)
 { {
     char numBytes = UTF_8_COUNT_TRAIL_BYTES(*legal)+1;      unsigned char numBytes = UTF_8_COUNT_TRAIL_BYTES(*legal)+1;
  
     // Validate that the string is long enough to hold all the expected bytes.     // Validate that the string is long enough to hold all the expected bytes.
     // Note that if legal[0] == 0, numBytes will be 1.     // Note that if legal[0] == 0, numBytes will be 1.
     for (char i=1; i<numBytes; i++)      for (unsigned char i=1; i<numBytes; i++)
     {     {
         if (legal[i] == 0)         if (legal[i] == 0)
         {         {


Legend:
Removed from v.1.25  
changed lines
  Added in v.1.26

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2