LANG-581 - Javadoc bug in org.apache.commons.lang.StringUtils.removeEndIgnoreCase()
Add some case-insensitive examples git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@899242 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a7b7e11461
commit
491a1d6e88
|
@ -3473,13 +3473,15 @@ public class StringUtils {
|
|||
* A <code>null</code> search string will return the source string.</p>
|
||||
*
|
||||
* <pre>
|
||||
* StringUtils.removeEnd(null, *) = null
|
||||
* StringUtils.removeEnd("", *) = ""
|
||||
* StringUtils.removeEnd(*, null) = *
|
||||
* StringUtils.removeEnd("www.domain.com", ".com.") = "www.domain.com"
|
||||
* StringUtils.removeEnd("www.domain.com", ".com") = "www.domain"
|
||||
* StringUtils.removeEnd("www.domain.com", "domain") = "www.domain.com"
|
||||
* StringUtils.removeEnd("abc", "") = "abc"
|
||||
* StringUtils.removeEndEndIgnoreCase(null, *) = null
|
||||
* StringUtils.removeEndEndIgnoreCase("", *) = ""
|
||||
* StringUtils.removeEndEndIgnoreCase(*, null) = *
|
||||
* StringUtils.removeEndEndIgnoreCase("www.domain.com", ".com.") = "www.domain.com"
|
||||
* StringUtils.removeEndEndIgnoreCase("www.domain.com", ".com") = "www.domain"
|
||||
* StringUtils.removeEndEndIgnoreCase("www.domain.com", "domain") = "www.domain.com"
|
||||
* StringUtils.removeEndEndIgnoreCase("abc", "") = "abc"
|
||||
* StringUtils.removeEndIgnoreCase("www.domain.com", ".COM") = "www.domain")
|
||||
* StringUtils.removeEndIgnoreCase("www.domain.COM", ".com") = "www.domain")
|
||||
* </pre>
|
||||
*
|
||||
* @param str the source String to search, may be null
|
||||
|
|
Loading…
Reference in New Issue