(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.56 and 1.57

version 1.56, 2002/08/27 01:36:32 version 1.57, 2002/08/27 17:42:27
Line 145 
Line 145 
     Uint32 size() const;     Uint32 size() const;
  
     /** getData Returns a pointer to the first character in the     /** getData Returns a pointer to the first character in the
         null-terminated string string of the String object.          null-terminated string of the String object.
         @return Pointer to the first character of the String object         @return Pointer to the first character of the String object
         <pre>         <pre>
             String t1 = "abc";             String t1 = "abc";
Line 183 
Line 183 
     char* allocateCString(Uint32 extraBytes = 0) const;     char* allocateCString(Uint32 extraBytes = 0) const;
  
     /** Returns the Ith character of the String object.     /** Returns the Ith character of the String object.
         @exception - Throws exception "OutofBounds" if the index          @exception IndexOutOfBoundsException if the index
         is outside the length of the string.          is outside the bounds of the string.
         <pre>         <pre>
             String t1 = "abc;             String t1 = "abc;
             Char16 c = t1[1];   // character b             Char16 c = t1[1];   // character b
Line 199 
Line 199 
     */     */
     const Char16 operator[](Uint32 i) const;     const Char16 operator[](Uint32 i) const;
  
     /** Append the given character to the string.      /** Append the given character to this String.
           @param c Character to append.
           @return This String
         <pre>         <pre>
              String s4 = "Hello";              String t1 = "abc";
             s4.append(Char16(0x0000))              t1 += Char16('d')
               assert(t1 == "abcd");
         </pre>         </pre>
     */     */
     String& append(const Char16& c);     String& append(const Char16& c);
  
     /// Append n characters from str to this String object.      /// Append n characters from str to this String.
     String& append(const Char16* str, Uint32 n);     String& append(const Char16* str, Uint32 n);
  
     /// Append the characters of str to this String object.      /** Append the given String to this String.
     String& append(const String& str);          @param str String to append.
   
     /** Overload operator += appends the parameter String to this String.  
         @param String to append.  
         @return This String         @return This String
         <pre>         <pre>
         String test = "abc";         String test = "abc";
         test += "def";          test.append("def");
         assert(test == "abcdef");         assert(test == "abcdef");
         </pre>         </pre>
     */     */
     String& operator+=(const String& str);      String& append(const String& str);
   
     /** Append the character given by c to this String object.  
         @param c Single character to be appended  
         @return String with appended character  
     */  
     String& operator+=(Char16 c);  
   
     /** Append the character given by c to this string.  
         <pre>  
             String t1 = "abc";  
             t1 += 'd'  
             assert(t1 == "abcd");  
         </pre>  
     */  
     String& operator+=(char c);  
  
     /** Remove size characters from the string starting at the given     /** Remove size characters from the string starting at the given
         position. If size is PEG_NOT_FOUND, then all characters after pos are         position. If size is PEG_NOT_FOUND, then all characters after pos are


Legend:
Removed from v.1.56  
changed lines
  Added in v.1.57

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2