Re: [lang] StringUtils startsWith / endsWith methods

2007-04-17 Thread Niall Pemberton
I guess I'll hold off on commiting this for the time being - Stephen C. asked (on Jira ticket LANG-316) whether we should have a CaseInsenstiveStringUtils - and Stephen K's is also a good point (Collators were news to me). Niall On 4/17/07, Stephen Kestle [EMAIL PROTECTED] wrote: Yeah - ascii

Re: [lang] StringUtils startsWith / endsWith methods

2007-04-16 Thread Henri Yandell
Stephen Kestle had this view of case insensitivity: http://issues.apache.org/jira/browse/LANG-316 Given that I've a strong interest in multiple locales etc, I definitely see Stephen's point, but your example shows a good reason why the low ASCII chars do scale - domain names (at least until it

Re: [lang] StringUtils startsWith / endsWith methods

2007-04-16 Thread Stephen Kestle
Yeah - ascii still does scale in some cases. However, I imagine String.equalsIgnoreCase() is an exercise in legacy code conversion as well as speed. By all means, add ignoreCase for the shops that don't need/know better, but just make sure that Collator/Comparator use is an option, and is

[lang] StringUtils startsWith / endsWith methods

2007-04-15 Thread Niall Pemberton
I posted a patch for StringUtils to add a number of new methods to the following Jira ticket: http://issues.apache.org/jira/browse/LANG-326 Any objections to me committing this? Niall - To unsubscribe, e-mail: [EMAIL