Thursday, August 12, 2010

Re: String.matches() does not work with \p{ASCII}

On 12 août, 15:40, cokol <eplisc...@googlemail.com> wrote:
> and if you really want to check for ascii why dont u just check for
> the ascii code?

Such as "[\\u0000-\\u007F]*"

> try java.lang.Character to check or write in JSNI
> small for-each testing if decimal value of char is greater than 127 is
> faster than a regex evaluation

Are you sure? given that trimming blanks is faster with regexes
(str.replace(/^\s+/, "").replace(/\s+$/, "")), I tend to think that
regexes are really fast.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate