commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bjorn Townsend (JIRA)" <j...@apache.org>
Subject [jira] Commented: (LANG-269) Shouldn't Commons Lang's StringUtils have a "common" string method?
Date Tue, 13 Nov 2007 02:46:50 GMT

    [ https://issues.apache.org/jira/browse/LANG-269?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12542035
] 

Bjorn Townsend commented on LANG-269:
-------------------------------------

I've had a look over the patch and unit test for this -- I can't see anything Scott's missing.
I think this can be committed.

> Shouldn't Commons Lang's StringUtils have a "common" string method?
> -------------------------------------------------------------------
>
>                 Key: LANG-269
>                 URL: https://issues.apache.org/jira/browse/LANG-269
>             Project: Commons Lang
>          Issue Type: New Feature
>         Environment: generic
>            Reporter: Michael Dang
>             Fix For: 2.4
>
>         Attachments: StringUtils.patch, v2_StringUtils.java.patch, v2_StringUtilsTest.java.patch
>
>
> A method which accepts a string array and returns a string which is the common portion
of all the strings starting from the left, or more general form of that.
> This is very common operation.  For example, one may want to find the common directory
of a set of path strings.
> passing in:
> "/foo/f1.txt"
> "/foo/moo/f2.txt"
> "/foo/moo/f3.txt"
> should returns "/foo/"
> It is tedious to implement this in every project.  And I think Commons Lang StringUtils
should have some methods to help in this.

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


Mime
View raw message