You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Benjamin Bentmann (JIRA)" <ji...@apache.org> on 2008/04/25 18:03:55 UTC

[jira] Created: (LANG-432) Fix case-insensitive string handling

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


[jira] Updated: (LANG-432) Fix case-insensitive string handling

Posted by "Henri Yandell (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LANG-432?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Henri Yandell updated LANG-432:
-------------------------------

    Fix Version/s: 3.0

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


[jira] Commented: (LANG-432) Fix case-insensitive string handling

Posted by "Benjamin Bentmann (JIRA)" <ji...@apache.org>.
    [ 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.


[jira] Commented: (LANG-432) Fix case-insensitive string handling

Posted by "Henri Yandell (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LANG-432?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12595891#action_12595891 ] 

Henri Yandell commented on LANG-432:
------------------------------------

SystemUtilsTest and StringEscapeUtils both fixed. Need to dig more into the StringUtils one to understand the nature of the change.

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


[jira] Updated: (LANG-432) Fix case-insensitive string handling

Posted by "Benjamin Bentmann (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LANG-432?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann updated LANG-432:
-----------------------------------

    Attachment: LANG-432.patch

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


[jira] Updated: (LANG-432) Fix case-insensitive string handling

Posted by "Niall Pemberton (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LANG-432?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Niall Pemberton updated LANG-432:
---------------------------------

    Fix Version/s:     (was: 3.0)
                   2.5

> Fix case-insensitive string handling
> ------------------------------------
>
>                 Key: LANG-432
>                 URL: https://issues.apache.org/jira/browse/LANG-432
>             Project: Commons Lang
>          Issue Type: Bug
>          Components: lang.*
>    Affects Versions: 2.4
>            Reporter: Benjamin Bentmann
>             Fix For: 2.5
>
>         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.


[jira] Closed: (LANG-432) Fix case-insensitive string handling

Posted by "Henri Yandell (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LANG-432?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Henri Yandell closed LANG-432.
------------------------------

    Resolution: Fixed

Apologies for the long delay in applying the rest of the patch. Looks good and it's gone in as:

svn ci -m "Applying the final part of Benjamin Bentmann's patch to LANG-432, improving our handling of case-insens
itive Strings"
Sending        src/java/org/apache/commons/lang/StringUtils.java
Sending        src/test/org/apache/commons/lang/StringUtilsEqualsIndexOfTest.java
Transmitting file data ..
Committed revision 828317.

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