commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (LANG-1351) StringUtils.equalsIgnoreSurroundingSpace
Date Wed, 30 Aug 2017 23:40:00 GMT

     [ https://issues.apache.org/jira/browse/LANG-1351?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sebb resolved LANG-1351.
------------------------
    Resolution: Won't Do

> StringUtils.equalsIgnoreSurroundingSpace
> ----------------------------------------
>
>                 Key: LANG-1351
>                 URL: https://issues.apache.org/jira/browse/LANG-1351
>             Project: Commons Lang
>          Issue Type: New Feature
>          Components: lang.*
>            Reporter: akilan i
>            Priority: Minor
>
> Convenience method of StringUtils.equals("abc ".trim()," abc".trim()).  Often we need
to trim before we do equals.
>  StringUtils. equalsIgnoreSurroundingSpace(null, null)   = true
>  StringUtils. equalsIgnoreSurroundingSpace(null, "abc")  = false
>  StringUtils. equalsIgnoreSurroundingSpace("abc", null)  = false
>  StringUtils. equalsIgnoreSurroundingSpace("abc", "abc") = true
>  StringUtils. equalsIgnoreSurroundingSpace("abc", "ABC") = true
>  StringUtils.equalsIgnoreSurroundingSpace("abc    ","    abc") = true



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message