commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gregor B. Rosenauer (JIRA)" <>
Subject [jira] Commented: (LANG-405) StringUtils.truncate() to cut out middle part of a String
Date Sun, 03 Feb 2008 20:59:09 GMT


Gregor B. Rosenauer commented on LANG-405:

Henry, I understood your original comment and you are right that the documentation does not
explicitly mention this. However I remember this String function was indeed supported, and
in any way the reference was only ment to illustrate the feature I am suggesting here...,-)
FWIW, here is a screenshot to an example (it seems to just cut out the part exceeding the
total length from the middle), 3rd screenshot that shows the mail messages:
Internet Mail Services
(Aah, BeOS is still good for some inspiration:)

> StringUtils.truncate() to cut out middle part of a String
> ---------------------------------------------------------
>                 Key: LANG-405
>                 URL:
>             Project: Commons Lang
>          Issue Type: New Feature
>    Affects Versions: 2.2
>            Reporter: Gregor B. Rosenauer
>            Priority: Minor
> It would be handy to have a String method that cuts out the middle part of a String such
that as much as possible is kept from the start and end of the String, but the middle part
is replaced by an ellipsis "..."
> BeOS had a function like this, but it's poorly documented, missing examples:
> e.g.:
> A very long text with unimportant stuff in the middle but interesting start and end to
see if the text is complete.
> becomes:
> A very long see if the text is complete.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message