On 1 fév, 20:26, [email protected] wrote:
> Revision: 7517
> Author: [email protected]
> Date: Mon Feb  1 08:08:26 2010
> Log: Adding RegExp to public GWT (native version, pure Java version, tests)
>
> http://code.google.com/p/google-web-toolkit/source/detail?r=7517
>
> Added:
>   /trunk/user/src/com/google/gwt/regexp
>   /trunk/user/src/com/google/gwt/regexp/RegExp.gwt.xml
>   /trunk/user/src/com/google/gwt/regexp/shared
>   /trunk/user/src/com/google/gwt/regexp/shared/MatchResult.java
>   /trunk/user/src/com/google/gwt/regexp/shared/RegExp.java
>   /trunk/user/src/com/google/gwt/regexp/shared/SplitResult.java
>   /trunk/user/src/com/google/gwt/regexp/super
>   /trunk/user/src/com/google/gwt/regexp/super/com
>   /trunk/user/src/com/google/gwt/regexp/super/com/google
>   /trunk/user/src/com/google/gwt/regexp/super/com/google/gwt
>   /trunk/user/src/com/google/gwt/regexp/super/com/google/gwt/regexp
>   /trunk/user/src/com/google/gwt/regexp/super/com/google/gwt/regexp/shared
>
> /trunk/user/src/com/google/gwt/regexp/super/com/google/gwt/regexp/shared/Ma 
> tchResult.java
>
> /trunk/user/src/com/google/gwt/regexp/super/com/google/gwt/regexp/shared/Re 
> gExp.java
>
> /trunk/user/src/com/google/gwt/regexp/super/com/google/gwt/regexp/shared/Sp 
> litResult.java

Isn't translatable code generally going into /trunk/user/super, and
the subpackage being called "translatable" rather than "super"?

And all those excludes="**/super/**" or similar later on wouldn't be
needed.

But actually I'm concerned that this hasn't been discussed at all on
the list, and particularly that RegExp isn't a JSO so you cannot use
the more performant JS literal notation to initialize a RegExp:
   public native RegExp myRegExp() /*-{ return /foo.*bar/gi; }-*/;

A generator-based initialization had been proposed on the issue
tracker too:
   public interface MyRegExps extends RegExp {
      @RegExp("foo.*bar", "gi")
      RegExp myRegExp();
}

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors

Reply via email to