Advertisement
Guest User

Untitled

a guest
Apr 16th, 2014
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. %rename("%(regex:/^([A-Z][a-z]+)+_(.*)/\2/)s", %$isenumitem) "";
  2.  
  3. %module FfeFooJava
  4. %{
  5. #include "foo.h"
  6. }
  7. // some typemaps here that use some C++ classes and C structures having suffix FFE
  8. //.....
  9.  
  10. %include "foo.h"
  11.  
  12. %rename("%(regex:/^(FFE_)(.*)/\2/)s") "";
  13.  
  14. %(regex:/SWIG_p_f_p_([A-Za-z\d_]+)/PointerOn\1/)
  15.  
  16. SWIG_p_f_p_([A-Za-z\d_]+)
  17. ^ ^
  18. | |
  19. | |
  20. | |
  21. Generated prefix |
  22. |
  23. Character class allowing upper/lower cased letters,
  24. underscores, and digits inside class names.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement