commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjamin Bentmann (JIRA)" <j...@apache.org>
Subject [jira] Commented: (LANG-432) Fix case-insensitive string handling
Date Sun, 11 May 2008 08:11:55 GMT

    [ https://issues.apache.org/jira/browse/LANG-432?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12595895#action_12595895
] 

Benjamin Bentmann commented on LANG-432:
----------------------------------------

The proposed changes to {{StringUtils.containsIgnoreCase()}} aim at establishing the following
assertion:
{noformat}
str1.equalsIgnoreCase(str2)    ==>  StringUtils.containsIgnoreCase(str1, str2)
{noformat}
or more completely
{noformat}
StringUtils.containsIgnoreCase(str1, str2) 
iff. there exists k >= 0 such that
str1.substring(k, k + str2.length()).equalsIgnoreCase(str2)
{noformat}


> Fix case-insensitive string handling
> ------------------------------------
>
>                 Key: LANG-432
>                 URL: https://issues.apache.org/jira/browse/LANG-432
>             Project: Commons Lang
>          Issue Type: Bug
>    Affects Versions: 2.4
>            Reporter: Benjamin Bentmann
>             Fix For: 3.0
>
>         Attachments: LANG-432.patch
>
>
> {{String.to*Case()}} is locale-sensitive, this is usually not intended for case-insensitive
comparisions. Please see [Common Bug #3|http://www.nabble.com/Re%3A-Common-Bugs-p14931921s177.html]
for details.

-- 
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