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

Diff for /pegasus/src/Pegasus/Common/StringRep.h between version 1.12 and 1.13

version 1.12, 2009/12/15 11:39:34 version 1.13, 2013/05/16 10:12:19
Line 123 
Line 123 
 inline void _checkBounds(size_t index, size_t size) inline void _checkBounds(size_t index, size_t size)
 { {
     if (index > size)     if (index > size)
       {
         StringThrowOutOfBounds();         StringThrowOutOfBounds();
 } }
   }
  
 template<class P, class Q> template<class P, class Q>
 static void _copy(P* p, const Q* q, size_t n) static void _copy(P* p, const Q* q, size_t n)
Line 174 
Line 176 
     // Process leading 7-bit ASCII characters (to avoid UTF8 overhead later).     // Process leading 7-bit ASCII characters (to avoid UTF8 overhead later).
     // Use loop-unrolling.     // Use loop-unrolling.
  
     while (n >=8 && ((q[0]|q[1]|q[2]|q[3]|q[4]|q[5]|q[6]|q[7]) & 0x80) == 0)      while ( (n >=8) && ((q[0]|q[1]|q[2]|q[3]|q[4]|q[5]|q[6]|q[7]) & 0x80) == 0)
     {     {
         p[0] = q[0];         p[0] = q[0];
         p[1] = q[1];         p[1] = q[1];
Line 189 
Line 191 
         n -= 8;         n -= 8;
     }     }
  
     while (n >=4 && ((q[0]|q[1]|q[2]|q[3]) & 0x80) == 0)      while ((n >=4) && ((q[0]|q[1]|q[2]|q[3]) & 0x80) == 0)
     {     {
         p[0] = q[0];         p[0] = q[0];
         p[1] = q[1];         p[1] = q[1];


Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2