From af96789c14eb45eb874996a603eb8a1eab960244 Mon Sep 17 00:00:00 2001
From: William S Fulton
Normally, the name of a C declaration is used when that declaration is
@@ -1758,7 +1765,8 @@ This directive is still supported, but it is deprecated and should probably be a
directive is more powerful and better supports wrapping of raw header file information.
While writing %rename for specific declarations is simple enough,
@@ -1797,12 +1805,12 @@ can use the "lowercamelcase" extended format specifier like this:
Some functions can be parametrized, for example the "strip" one
strips the provided prefix from its argument. The prefix is specified as part
of the format string, following a colon after the function name:
+5.4.7.1 Simple renaming of specific identifiers
+
+5.4.7.1 Simple renaming of specific identifiers
+
5.4.7.2 Advanced renaming support
+5.4.7.2 Advanced renaming support
+
%rename("%(strip:[wx])s") ""; // wxHello -> Hello; FooBar -> FooBar
Below is the table summarizing all currently defined functions with an example @@ -1924,7 +1932,8 @@ are exactly equivalent and %rename can be used to selectively ignore multiple declarations using the previously described matching possibilities.
-As explained in the previous sections, it is possible to either rename @@ -1977,7 +1986,7 @@ more complicated matches making it possible to write
-%rename("%(lower)s", match$parentNode$name="SomeClass", %$isenum) "";
+%rename("%(lowercase)s", match$parentNode$name="SomeClass", %$isenum) "";
@@ -2193,7 +2202,7 @@ variation installs the callbacks as all upper case constants such as
/* Some callback functions */
-%callback("%(upper)s");
+%callback("%(uppercase)s");
int add(int,int);
int sub(int,int);
int mul(int,int);
@@ -2201,7 +2210,7 @@ int mul(int,int);
-A format string of "%(lower)s" converts all characters to lower case. +A format string of "%(lowercase)s" converts all characters to lower case. A string of "%(title)s" capitalizes the first character and converts the rest to lower case.
diff --git a/Source/Swig/misc.c b/Source/Swig/misc.c index 14470485e..b3c647546 100644 --- a/Source/Swig/misc.c +++ b/Source/Swig/misc.c @@ -1173,7 +1173,7 @@ String *replace_captures(const char *input, String *subst, int captures[]) /* ----------------------------------------------------------------------------- * Swig_string_regex() * - * Executes a regexp substitution. For example: + * Executes a regular expression substitution. For example: * * Printf(stderr,"gsl%(regex:/GSL_.*_/\\1/)s","GSL_Hello_") -> gslHello * ----------------------------------------------------------------------------- */