(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.16 and 1.17

version 1.16, 2005/05/10 18:09:47 version 1.17, 2005/10/31 16:45:25
Line 141 
Line 141 
     Uint8* tgt = *tgtHead;     Uint8* tgt = *tgtHead;
     while (src < srcEnd)     while (src < srcEnd)
     {     {
           if (*src < 128)
           {
               if (tgt == tgtEnd)
               {
                   returnCode = -1;
                   break;
               }
   
               *tgt++ = *src++;
               continue;
           }
   
     Uint32 tempchar;     Uint32 tempchar;
     Uint16 numberOfBytes = 0;     Uint16 numberOfBytes = 0;
     const Uint16* oldsrc = src;     const Uint16* oldsrc = src;
Line 291 
Line 303 
     return returnCode;     return returnCode;
 } }
  
 Boolean isUTF8(const char *legal)  Boolean isUTF8Aux(const char *legal)
 { {
     char numBytes = UTF_8_COUNT_TRAIL_BYTES(*legal)+1;     char numBytes = UTF_8_COUNT_TRAIL_BYTES(*legal)+1;
  


Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2