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

Diff for /pegasus/src/Pegasus/Common/String.h between version 1.89 and 1.89.6.2

version 1.89, 2005/05/06 19:49:09 version 1.89.6.2, 2005/10/11 01:13:01
Line 50 
Line 50 
 // lower case language; underscore; Uppercase Country // lower case language; underscore; Uppercase Country
 const char ENGLISH_US[] = "en_US"; const char ENGLISH_US[] = "en_US";
  
   
 PEGASUS_NAMESPACE_BEGIN PEGASUS_NAMESPACE_BEGIN
  
 class String; class String;
 class StringRep;  struct StringRep;
  
 /** The CString class provides access to an 8-bit String representation. /** The CString class provides access to an 8-bit String representation.
 */ */
Line 92 
Line 91 
  
     friend class String;     friend class String;
  
     void* _rep;      char* _rep;
 }; };
  
 /** /**
Line 125 
Line 124 
  
     /** Initialize with first <TT>n</TT> characters from <TT>str</TT>.     /** Initialize with first <TT>n</TT> characters from <TT>str</TT>.
     @param str Specifies the name of the String instance.     @param str Specifies the name of the String instance.
     @param n Specifies the Uint32 size to use for the length of the string object.      @param n Specifies Uint32 size to use for the length of the string object.
     @exception bad_alloc Thrown if there is insufficient memory.     @exception bad_alloc Thrown if there is insufficient memory.
     */     */
     String(const String& str, Uint32 n);     String(const String& str, Uint32 n);
Line 459 
Line 458 
     */     */
     static Boolean equalNoCase(const String& str1, const String& str2);     static Boolean equalNoCase(const String& str1, const String& str2);
  
   #ifdef PEGASUS_USE_EXPERIMENTAL_INTERFACES
   
       enum ASCII7Tag { ASCII7 };
   
       String(const String& s1, const String& s2);
   
       String(const String& s1, const char* s2);
   
       String(const char* s1, const String& s2);
   
       String(const char* str, ASCII7Tag tag);
   
       String(const char* str, size_t n, ASCII7Tag tag);
   
       String& operator=(const char* str);
   
       String& assignASCII7(const char* str);
   
       String& assignASCII7(const char* str, Uint32 n);
   
       Uint32 find(const char* s) const;
   
       static Boolean equal(const String& s1, const char* s2);
   
       static int compare(const String& s1, const char* s2);
   
       String& append(const char* str);
   
       String& append(const char* str, Uint32 size);
   
       static Boolean equalNoCase(const String& s1, const char* s2);
   
   #endif /* PEGASUS_USE_EXPERIMENTAL_INTERFACES */
   
 private: private:
  
     StringRep* _rep;     StringRep* _rep;
Line 549 
Line 582 
     const String& str1,     const String& str1,
     const String& str2);     const String& str2);
  
   #ifdef PEGASUS_USE_EXPERIMENTAL_INTERFACES
   
   PEGASUS_COMMON_LINKAGE Boolean operator==(const String& s1, const String& s2);
   
   PEGASUS_COMMON_LINKAGE Boolean operator==(const String& s1, const char* s2);
   
   PEGASUS_COMMON_LINKAGE Boolean operator==(const char* s1, const String& s2);
   
   PEGASUS_COMMON_LINKAGE Boolean operator!=(const String& s1, const String& s2);
   
   PEGASUS_COMMON_LINKAGE Boolean operator!=(const String& s1, const char* s2);
   
   PEGASUS_COMMON_LINKAGE Boolean operator!=(const char* s1, const String& s2);
   
   PEGASUS_COMMON_LINKAGE Boolean operator<(const String& s1, const String& s2);
   
   PEGASUS_COMMON_LINKAGE Boolean operator<(const String& s1, const char* s2);
   
   PEGASUS_COMMON_LINKAGE Boolean operator<(const char* s1, const String& s2);
   
   PEGASUS_COMMON_LINKAGE Boolean operator>(const String& s1, const String& s2);
   
   PEGASUS_COMMON_LINKAGE Boolean operator>(const String& s1, const char* s2);
   
   PEGASUS_COMMON_LINKAGE Boolean operator>(const char* s1, const String& s2);
   
   PEGASUS_COMMON_LINKAGE Boolean operator<=(const String& s1, const String& s2);
   
   PEGASUS_COMMON_LINKAGE Boolean operator<=(const String& s1, const char* s2);
   
   PEGASUS_COMMON_LINKAGE Boolean operator<=(const char* s1, const String& s2);
   
   PEGASUS_COMMON_LINKAGE Boolean operator>=(const String& s1, const String& s2);
   
   PEGASUS_COMMON_LINKAGE Boolean operator>=(const String& s1, const char* s2);
   
   PEGASUS_COMMON_LINKAGE Boolean operator>=(const char* s1, const String& s2);
   
   PEGASUS_COMMON_LINKAGE String operator+(const String& s1, const String& s2);
   
   PEGASUS_COMMON_LINKAGE String operator+(const String& s1, const char* s2);
   
   PEGASUS_COMMON_LINKAGE String operator+(const char* s1, const String& s2);
   
   #endif /* PEGASUS_USE_EXPERIMENTAL_INTERFACES */
   
 PEGASUS_NAMESPACE_END PEGASUS_NAMESPACE_END
  
   #if defined(PEGASUS_INTERNALONLY)
   # include "StringInline.h"
   #endif
   
 #endif /* Pegasus_String_h */ #endif /* Pegasus_String_h */


Legend:
Removed from v.1.89  
changed lines
  Added in v.1.89.6.2

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2