[ 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]