(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.111.2.4 and 1.111.2.5

version 1.111.2.4, 2005/09/29 02:22:39 version 1.111.2.5, 2005/09/29 13:40:32
Line 471 
Line 471 
  
 Uint32 StringRep::length(const Uint16* str) Uint32 StringRep::length(const Uint16* str)
 { {
     // ATTN: We could unroll this but it is infrequently called.      // Note: We could unroll this but it is rarely called.
  
     const Uint16* end = (Uint16*)str;     const Uint16* end = (Uint16*)str;
  
Line 717 
Line 717 
  
 String String::subString(Uint32 index, Uint32 n) const String String::subString(Uint32 index, Uint32 n) const
 { {
     // ATTN: this implementation is very permissive but used for      // Note: this implementation is very permissive but used for
     // backwards compatibility.     // backwards compatibility.
  
     if (index < _rep->size)     if (index < _rep->size)
Line 785 
Line 785 
 { {
     _check_null_pointer(s);     _check_null_pointer(s);
  
     // ATTN: implement faster version of this that doesn't create a string      // Note: could optimize away creation of temporary, but this is rarely
     // object.      // called.
     return find(String(s));     return find(String(s));
 } }
  
Line 1031 
Line 1031 
 #else /* PEGASUS_STRING_ENABLE_ICU */ #else /* PEGASUS_STRING_ENABLE_ICU */
  
     // ATTN: optimize this!     // ATTN: optimize this!
   
     return String::equalNoCase(s1, String(s2));     return String::equalNoCase(s1, String(s2));
  
 #endif /* PEGASUS_STRING_ENABLE_ICU */ #endif /* PEGASUS_STRING_ENABLE_ICU */
Line 1061 
Line 1062 
  
 #else /* PEGASUS_STRING_NO_UTF8 */ #else /* PEGASUS_STRING_NO_UTF8 */
  
     // ATTN: optimize this!  
     return String::equal(s1, String(s2));     return String::equal(s1, String(s2));
  
 #endif /* PEGASUS_STRING_NO_UTF8 */ #endif /* PEGASUS_STRING_NO_UTF8 */


Legend:
Removed from v.1.111.2.4  
changed lines
  Added in v.1.111.2.5

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2