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

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

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment