commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen Kestle (JIRA)" <j...@apache.org>
Subject [jira] Commented: (LANG-326) StringUtils: startsWith / endsWith / startsWithIgnoreCase / endsWithIgnoreCase / removeStartIgnoreCase / removeEndIgnoreCase methods
Date Thu, 28 Jun 2007 22:20:07 GMT

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

Stephen Kestle commented on LANG-326:
-------------------------------------

I'm fine with it - at a later point these methods could be re-plumbed to use collators, and
other methods added (I'll probably do it when I actually start using collators for real).

As a side question, how much do we care about speed and [premature?] optimization? if I were
to "upgrade" and overload these methods, would it be a problem to create Collator objects
for the existing defaults and use a modified algorithm to do the evaluation?  I'd presume
the str.regionMatches() would be faster by a few picos, but I prefer brevity, as well as indication
of the "correct" (international) way.

> StringUtils: startsWith / endsWith / startsWithIgnoreCase / endsWithIgnoreCase / removeStartIgnoreCase
/ removeEndIgnoreCase methods
> ------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: LANG-326
>                 URL: https://issues.apache.org/jira/browse/LANG-326
>             Project: Commons Lang
>          Issue Type: New Feature
>    Affects Versions: 2.3
>            Reporter: Niall Pemberton
>            Priority: Minor
>             Fix For: 3.0
>
>         Attachments: LANG-326-Start-End-With-2.patch
>
>
> I'd like the following new start/end methods for StringUtils:
>   startsWith - handles nulls
>   endsWith - handles nulls
>   startsWithIgnoreCase - handles nulls, case insensitive
>   endsWithIgnoreCase - handles nulls, case insensitive
>   removeStartIgnoreCase - handles nulls, case insensitive
>   removeEndIgnoreCase - handles nulls, case insensitive

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message