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

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Duplicate
    • Priority: P4
    • None
    • Affects Version/s: 1.1.3
    • Component/s: 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.



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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: