Hey, thanks for the reply. This makes perfect sense. eric
On Mar 5, 4:23 pm, John Tamplin <[email protected]> wrote: > On Fri, Mar 5, 2010 at 4:12 PM, Eric B. Ridge <[email protected]> wrote: > > > Why doesn't GWT's JRE support Character.isWhitespace()? It supports > > Character.isSpace(), but that's @deprecated by Sun in (at least) 1.5: > > >http://java.sun.com/javase/6/docs/api/java/lang/Character.html#isSpac...) > > The reason is that isWhitespace() explicitly supports Unicode characters, > while GWT's Character.is* methods are basically only accurate for US-ASCII. > The browsers do not provide the necessary pieces to do this correctly, so > we would have to include the Unicode Character Database to implement them > properly. > > I wrote an implementation of this last year that compressed the UCD to a few > hundred bytes per table (and any table not used would not have any cost), > but others were concerned about the size implications. I hope to get to > work on it again next quarter, but no guarantees. > > -- > John A. Tamplin > Software Engineer (GWT), Google -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
