Ignore:
Timestamp:
Apr 27, 2004, 8:39:34 PM (22 years ago)
Author:
bird
Message:

GCC v3.3.3 sources.

Location:
branches/GNU/src/gcc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/GNU/src/gcc

    • Property svn:ignore
      •  

        old new  
        2626configure.vr
        2727configure.vrs
         28
        2829Makefile
        29 dir.info
        3030lost+found
        3131update.out
  • branches/GNU/src/gcc/libjava/java/lang/StringBuffer.java

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r1390 r1391  
    309309  }
    310310
    311   /** Get the specified array of characters.
    312    *  The characters will be copied into the array you pass in.
    313    *  @param srcOffset the index to start copying from in the
    314    *         <code>StringBuffer</code>.
    315    *  @param srcEnd the number of characters to copy.
    316    *  @param dst the array to copy into.
    317    *  @param dstOffset the index to start copying into <code>dst</code>.
    318    *  @exception NullPointerException if dst is null.
    319    *  @exception IndexOutOfBoundsException if any source or target
    320    *             indices are out of range.
    321    *  @see java.lang.System#arraycopy(java.lang.Object,int,java.lang.Object,int,int)
    322    */
    323   public synchronized void getChars (int srcOffset, int srcEnd,
    324                                      char[] dst, int dstOffset)
    325   {
    326     if (srcOffset < 0 || srcOffset > srcEnd)
    327       throw new StringIndexOutOfBoundsException (srcOffset);
     311  /**
     312   * Get the specified array of characters. <code>srcOffset - srcEnd</code>
     313   * characters will be copied into the array you pass in.
     314   *
     315   * @param srcOffset the index to start copying from (inclusive)
     316   * @param srcEnd the index to stop copying from (exclusive)
     317   * @param dst the array to copy into
     318   * @param dstOffset the index to start copying into
     319   * @throws NullPointerException if dst is null
     320   * @throws IndexOutOfBoundsException if any source or target indices are
     321   *         out of range (while unspecified, source problems cause a
     322   *         StringIndexOutOfBoundsException, and dest problems cause an
     323   *         ArrayIndexOutOfBoundsException)
     324   * @see System#arraycopy(Object, int, Object, int, int)
     325   */
     326  public synchronized void getChars(int srcOffset, int srcEnd,
     327                                    char[] dst, int dstOffset)
     328  {
    328329    int todo = srcEnd - srcOffset;
    329     if (srcEnd > count || dstOffset + todo > count)
    330       throw new StringIndexOutOfBoundsException (srcEnd);
     330    if (src)
     331      throw new StringIndexOutOfBoundsException);
    331332    System.arraycopy(value, srcOffset, dst, dstOffset, todo);
    332333  }
Note: See TracChangeset for help on using the changeset viewer.