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

Diff for /pegasus/src/Pegasus/Common/String.cpp between version 1.2 and 1.3

version 1.2, 2001/02/11 05:42:33 version 1.3, 2001/02/11 17:19:30
Line 23 
Line 23 
 // Author: // Author:
 // //
 // $Log$ // $Log$
   // Revision 1.3  2001/02/11 17:19:30  mike
   // added reverseFind() method
   //
 // Revision 1.2  2001/02/11 05:42:33  mike // Revision 1.2  2001/02/11 05:42:33  mike
 // new // new
 // //
Line 295 
Line 298 
     return Uint32(-1);     return Uint32(-1);
 } }
  
   Uint32 String::reverseFind(Char16 c) const
   {
       const Char16* first = getData();
       const Char16* last = getData() + getLength();
   
       while (last != first)
       {
           if (*--last == c)
               return last - first;
       }
   
       return Uint32(-1);
   }
   
 int String::compare(const Char16* s1, const Char16* s2) int String::compare(const Char16* s1, const Char16* s2)
 { {
     while (*s1 && *s2)     while (*s1 && *s2)


Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2