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

(str) String.trim() to trim only at the beginning or at the end

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      The java.lang.String API should provide an additional trim method with one parameter:

      public String trim(int where)

      for being able to trim Strings just only at the beginning or just only at the end. The parameter "where" should be one of the following constants: LEADING, TRAILING, BOTH.

      Actually there is only the trim() method, which returns a String with leading and trailing whitespace omitted.

      ###@###.### 2005-1-20 11:41:14 GMT

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jlaskey Jim Laskey
              Reporter:
              jloefflm Johann Löfflmann (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: