Changed rename rules to include functions and change Enums to only capitalize the first letter.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@8474 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Charlie Savage 2006-01-17 04:54:48 +00:00
commit b5d900d9b9

View file

@ -19,11 +19,12 @@
a constant by SWIG see naming.i in the Ruby test suite. */
%rename("%(uppercase)s", %$ismember, %$isvariable,%$isimmutable,%$isstatic,%$hasvalue,%$hasconsttype) "";
/* Enums are mapped to constants and thus should be UPPER_CASE */
%rename("%(uppercase)s", %$isenumitem) "";
/* Enums are mapped to constants but we all we do is make sure the
first letter is uppercase */
%rename("%(firstuppercase)s", %$isenumitem) "";
/* Method names should be lower_case_with_underscores */
%rename("%(undercase)s", %$isfunction, %$ismember, %$not %$ismemberget, %$not %$ismemberset) "";
%rename("%(undercase)s", %$isfunction, %$not %$ismemberget, %$not %$ismemberset) "";
#endif
/* ------------------------------------------------------------