You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Tyler MacLeod <ma...@gmail.com> on 2011/03/04 15:47:05 UTC
[lang] Whitespace method.
Java 5 introduces a new Space predicate to the Character class called
isSpaceChar (http://download.oracle.com/javase/6/docs/api/java/lang/Character.html#isSpaceChar(int)).
It was introduced to correct some false negatives with isWhitespace
such as with a non-breaking space.
I would recommend replacing the isWhitespace usage in both StringUtils
and WordUtils.
- Tyler
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org
RE: [lang] Whitespace method.
Posted by Gary Gregory <GG...@seagullsoftware.com>.
If you'd like to get the ball rolling on that, feel free to create a JIRA ticket and attach a patch ;)
Gary Gregory
Senior Software Engineer
Rocket Software
3340 Peachtree Road, Suite 820 • Atlanta, GA 30326 • USA
Tel: +1.404.760.1560
Email: ggregory@seagullsoftware.com
Web: seagull.rocketsoftware.com
> -----Original Message-----
> From: Tyler MacLeod [mailto:macleod.tyler@gmail.com]
> Sent: Friday, March 04, 2011 09:47
> To: user@commons.apache.org
> Subject: [lang] Whitespace method.
>
> Java 5 introduces a new Space predicate to the Character class called
> isSpaceChar
> (http://download.oracle.com/javase/6/docs/api/java/lang/Character.html#isSp
> aceChar(int)).
> It was introduced to correct some false negatives with isWhitespace
> such as with a non-breaking space.
>
> I would recommend replacing the isWhitespace usage in both StringUtils
> and WordUtils.
>
> - Tyler
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> For additional commands, e-mail: user-help@commons.apache.org