[TEXT-41] WordUtils.abbreviate support - ASF Jira (original) (raw)

Log inSkip to main contentSkip to sidebar

ASF Jira

Uploaded image for project: 'Commons Text'

  1. Commons Text
  2. TEXT-41

XMLWordPrintableJSON

Details

Description

Commons Lang 2.x has method WordUtils.abbreviate(java.lang.String str, int lower, int upper, java.lang.String appendToEnd), which

  1. operates on words not Strings as StringUtils.abbreviate
  2. it allows to specify what shoud be appended to string (StringUtils.abbreviate always appends "...")

In 3.0 there is no such method, but it was very usefull. please add support for WordUtils.abbreviate

Attachments

Attachments

  1. LANG-766.patch
    13/Feb/12 22:18
    6 kB
    Felix Müller

relates to

Improvement - An improvement or enhancement to an existing feature or task. LANG-673 WordUtils.abbreviate() throws undocumented StringIndexOutOfBoundsException (ACTION: Method Removed)

links to

Activity

People

Votes:

2 Vote for this issue

Watchers:

5 Start watching this issue

Dates

Created:

10/Nov/11 13:36

Updated:

24/May/17 14:33

Resolved:

09/May/17 16:36