Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-469

Commons-lang StringUtils head, tail and indexOfNth (with patch)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.5
    • lang.*
    • None

    Description

      Hello commons developers,
      I would like to propose the addition of these four methods to StringUtils class:

      public static String head(final String str, int lines)
      public static String tail(String str, int lines)
      public static int indexOfNth(String str, String searchStr, int occurrence)
      public static int lastIndexOfNth(String str, String searchStr, int occurrence)

      Attachments

        1. StringUtils_head_tail_indexofnth.diff
          10 kB
          Kalecser Pasquali Kurtz
        2. LANG-469.patch
          5 kB
          Henri Yandell

        Activity

          People

            Unassigned Unassigned
            kalecser Kalecser Pasquali Kurtz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: