Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4071553

Add a setSubstring(int index, String substring) method to StringBuffer

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.1.3
    • core-libs
    • None
    • sparc
    • solaris_2.5.1



      Name: rlT66838 Date: 08/13/97


      Hello folks,

      I think a method StringBuffer.setSubstring()
      would be useful.

      public void setSubstring(int index, String substring)

      would replace the contents of the StringBuffer on
      which the method is called with the contents of
      the String argument, starting at the position
      indicated by the "index" argument.

      It would have to check for bounds and for
      current capacity.

      I find I often could use something like this.



      ======================================================================

            mmcclosksunw Michael Mccloskey (Inactive)
            rlewis Roger Lewis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: