add initial regexp support based on the coptional rxspencer library. Active it using --with-rxspencer after installing the rxspencer library
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8470 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
526be12c1e
commit
dbe05fc50b
7 changed files with 347 additions and 48 deletions
|
|
@ -1,7 +1,7 @@
|
|||
%module rename_camel
|
||||
|
||||
%rename("%(utitle)s",%isfunction,%ismember) "";
|
||||
%rename("%(ctitle)s",%isvariable,%ismember) "";
|
||||
%rename("%(utitle)s",%$isfunction,%$ismember) "";
|
||||
%rename("%(ctitle)s",%$isvariable,%$ismember) "";
|
||||
|
||||
%inline {
|
||||
struct GeometryFactory
|
||||
|
|
@ -26,8 +26,6 @@
|
|||
%rename(SedCmd) camel_case_2;
|
||||
%rename("%(ctitle)s") camel_case_3;
|
||||
|
||||
%rename("%(title)s",match$parentNode$type="enum HelloEnum") "";
|
||||
%rename("%(ctitle)s",match$parentNode$type="enum ChaoEnum") "";
|
||||
|
||||
%rename("%(utitle)s") CamelCase_5;
|
||||
|
||||
|
|
@ -35,6 +33,7 @@
|
|||
|
||||
%rename(awk_cmd) "";
|
||||
|
||||
%rename("%(title)s",rxsmatch$parentNode$type="enum .*") "";
|
||||
|
||||
%inline
|
||||
{
|
||||
|
|
@ -60,4 +59,10 @@
|
|||
|
||||
}
|
||||
|
||||
%rename("%(lowercase)s",sourcefmt="%(rxspencer:[GSL_(.*)][@1])s",%$isfunction) "";
|
||||
%inline {
|
||||
void GSL_Hello() {}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue