You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Capt. Cutlass (Jira)" <ji...@apache.org> on 2024/11/01 01:39:00 UTC

[jira] [Commented] (LANG-1589) Add StringUtils.startsWithIgnoreCase

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

Capt. Cutlass commented on LANG-1589:
-------------------------------------

Actually, the [StringUtils#startsWithIgnoreCase|https://commons.apache.org/proper/commons-lang/apidocs/org/apache/commons/lang3/StringUtils.html#startsWithIgnoreCase(java.lang.CharSequence,java.lang.CharSequence)] method has been part of Commons Lang since version 2.4, so the OP might have simply overlooked it.

{noformat}
StringUtils.startsWithIgnoreCase(null, null)      = true
StringUtils.startsWithIgnoreCase(null, "abc")     = false
StringUtils.startsWithIgnoreCase("abcdef", null)  = false
StringUtils.startsWithIgnoreCase("abcdef", "abc") = true
StringUtils.startsWithIgnoreCase("ABCDEF", "abc") = true
{noformat}

> Add StringUtils.startsWithIgnoreCase
> ------------------------------------
>
>                 Key: LANG-1589
>                 URL: https://issues.apache.org/jira/browse/LANG-1589
>             Project: Commons Lang
>          Issue Type: New Feature
>            Reporter: Jerome Wolff
>            Priority: Minor
>
> PR: [https://github.com/apache/commons-lang/pull/580]



--
This message was sent by Atlassian Jira
(v8.20.10#820010)